[xsl] level of the next node

Subject: [xsl] level of the next node
From: "Silvia Liberto" <SLiberto@xxxxxx>
Date: Fri, 9 Dec 2005 18:13:49 +0100 (MET)
Hi,

i have several w:p siblings and i want to get the level of each one.
so in this template i created "level" and in the next template "next_level".
The variable next_level dosen4t contain the number of the next level. Can
someone give me a tip where the problem is?

thanks
Silvia Liberto


<xsl:template match="w:p" mode="sect-begin">
<xsl:variable name="level"
select="number(substring(w:pPr/w:pStyle/@val,13))"/>
...
</xsl:template>

<xsl:template match="w:p" mode="next_sect">
<xsl:variable name="next_level"
select="number(substring(following-sibling::w:p[node()][1]/w:pPr/w:pStyle/@w:val,13))"/>
...

</xsl:template>

-- 
GMX DSL-Flatrate 1 Jahr kostenlos* + WLAN-Router ab 0,- Euro*
Bis 31.12.2005 einsteigen! Infos unter: http://www.gmx.net/de/go/dsl

Current Thread