Subject: Re: [xsl] Filtering child text nodes by node name From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Fri, 23 Feb 2007 13:21:57 +0530 |
<xsl:template match="title> <xsl:element name="topic-title"> <xsl:for-each select=".//text()[not(ancestor::indexterm)]"> <xsl:value-of select="."/> </xsl:for-each> </xsl:element> </xsl:template>
<topic-title> <xsl:for-each select=".//text()[not(ancestor::indexterm)]"> <xsl:value-of select="."/> </xsl:for-each> </topic-title>
xsl:element is usually used, when the element name is constructed dynamically (sometimes based on some calculation).
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Filtering child text node, Anderson, Paul | Thread | [xsl] How to include attributes wit, Chad Chelius |
Re: [xsl] Re: xsl-list Digest 21 Fe, Jay Bryant | Date | RE: [xsl] Splitting Excel XML table, Scott Lynch |
Month |