Subject: Re: [xsl] XPath problem with getting all ancestors From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 23 Oct 2009 14:13:28 +0200 |
<xsl:template match="article"> <xsl:variable name="v1"> <xsl:copy-of select="content/node()"/> </xsl:variable>
<para> <note id="1">text</note> </para>
<xsl:template match="note"> The note at /article/content/para/note reads: ancestors="<xsl:value-of select="count(ancestor::*)"/>" preceding="<xsl:value-of select="count(preceding::*)"/>" contentNum="<xsl:value-of select="count(preceding::content)"/>" numberTest="<xsl:number level="any" count="content"/>" </xsl:template>
The note at /article/content/para/note reads: ancestors="1" preceding="0" contentNum="0" numberTest=""
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath problem with gettin, Jostein Austvik Jaco | Thread | Re: [xsl] XPath problem with gettin, ac |
Re: [xsl] XPath problem with gettin, Jostein Austvik Jaco | Date | Re: [xsl] XPath problem with gettin, ac |
Month |