xsl-list
[Top] [All Lists]

Re: level of the next node

2005-12-09 10:34:47
  The variable next_level dosen´t 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

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>