[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

level of the next node

Subject: level of the next node
From: "Silvia Liberto" <SLiberto@xxxxxx>
Date: Fri, 9 Dec 2005 18:13:49 +0100 (MET)
get node level
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.