Subject: Re: [xsl] recursion with xsl:apply-templates From: Volker Witzel <volker.witzel@xxxxxxxxxxxx> Date: Wed, 27 Aug 2003 15:10:06 +0200 |
<xsl:template match="/transformation"> <xsl:apply-templates/> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="*[@index]"> <xsl:copy> <xsl:copy-of select="@*[not(name()='index')]"/> <xsl:variable name="p" select="count(preceding::*[@index])+1"/> <xsl:copy-of select="/transformation/id_list/id[$p]"/> <xsl:copy-of select="child::node()"/> </xsl:copy> </xsl:template> <xsl:template match="id_list"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] recursion with xsl:apply-, Michael Kay | Thread | RE: [xsl] recursion with xsl:apply-, Andrew Welch |
Re: [xsl] XML/XSL BreadCrumb Trail, Dimitre Novatchev | Date | RE: [xsl] URL rewriting with sessio, Michael Kay |
Month |