RE: [xsl] level of the next node

Subject: RE: [xsl] level of the next node
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 10 Dec 2005 15:42:51 -0000
The val attribute is not in a namespace, you should select it with @val
rather than @w:val.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Silvia Liberto [mailto:SLiberto@xxxxxx]
> Sent: 09 December 2005 17:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] level of the next node
>
> >   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:p
> Pr/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