Mukul Gandhi wrote:
Hi,
I think, I would have done this as following:
<xsl:template match="InspectionReportInput">
<span id="firstName"><xsl:value-of select="@firstName"
/></span> <span id="lastName"><xsl:value-of select="@lastName"
/><xs:text>, </xsl:text><xsl:value-of select="@city" />
</xsl:template>
I am always surprised to see that many people try very hard to
be "more concise", even when that ends up less readable. Why not
simply that?:
<!--
Format an inspection report element by using the
appropriate SPAN elements and text separators.
-->
<xsl:template match="InspectionReportInput">
<span id="firstName">
<xsl:value-of select="@firstName"/>
</span>
<xsl:text> </xsl:text>
<span id="lastName">
<xsl:value-of select="@lastName"/>
</span>
<xs:text>, </xsl:text>
<span id="city">
<xsl:value-of select="@city"/>
</span>
</xsl:template>
Regards,
--
Florent Georges
http://fgeorges.org/
--~------------------------------------------------------------------
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>
--~--