|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Grouping elements using XSLT
Please change the code to:
<xsl:template match="/author">
<authors>
<xsl:for-each select="FirstName">
<author>
<authorFName><xsl:value-of select="." /></authorFName>
<authorLName><xsl:value-of
select="following-sibling::LastName[1]" /></authorLName>
</author>
</xsl:for-each>
</authors>
</xsl:template>Regards, Mukul On 7/5/06, Chad Chelius <cchelius@xxxxxxxxxxxxxxx> wrote: Makul, This worked! One other question though. As I'm doing this, how would I change the name of the <FirstName> and <LastName> elements to say <authorFName> and <authorLName> etc?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






