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

Re: level of the next node

Subject: Re: level of the next node
From: "Silvia Liberto" <SLiberto@xxxxxx>
Date: Fri, 9 Dec 2005 18:34:47 +0100 (MET)
xml word w sect
>   The variable next_level dosen4t contain the number of the next level.
> Can
>   someone give me a tip where the problem is?
> 
> presumably
>
select="number(substring(following-sibling::w:p[node()][1]/w:pPr/w:pStyle/@w:val,13))"
> doesn't select what you expected it to select. 
> 
> Since you have given no indication of what your input document looks
> like, it's not possible to give any advice on how to change it.
> 
> David

yes sorry, my input document looks like this:
<w:body>
  <w:sect>

      <w:p>
		<w:pPr><w:pStyle val="Ueberschrift1"></w:pStyle></w:pPr>
		<w:r><w:t>Titel 1</w:t></w:r>
     </w:p>
     
     <w:p>
		<w:pPr><w:pStyle val="Ueberschrift2"></w:pStyle></w:pPr>
		<w:r><w:t>Titel 1.1</w:t></w:r>
     </w:p>

  </w:sect>
</w:body>


and i want that the variable "level" contains 1 from val="Ueberschrift1" and
the variable "next_level" should contain 2 from val="Ueberschrift2".

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f|r GMX Partner: http://www.gmx.net/de/go/partner

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.