xsl-list
[Top] [All Lists]

Re: [xsl] Transform some attributes into HTML span elements with delimiters (specific format)

2010-05-27 03:29:14
Thanks for the quick response!


<xsl:template match="InspectionReportInput" name="customer">
<span id="{name(@firstName)}">{(_at_)firstName}</span>&#xA0;<span 
id="{name(@lastName)}">{(_at_)lastName}</span>, <span 
id="{name(@city)}">{(_at_)city}</span>
</xsl:template>

I call it like this.
<xsl:call-template name="customer"/>

and its output is:
<span xmlns="" id="">{(_at_)firstName}</span>&nbsp;<span xmlns=""
id="">{(_at_)lastName}</span>, <span xmlns="" id="">{(_at_)city}</span>

Any ideas?

Thanks,
Phil

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--