xsl-list
[Top] [All Lists]

level of the next node

2005-12-09 10:13:49
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 dosen´t 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--