Re: [xsl] Function position()

Subject: Re: [xsl] Function position()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Feb 2001 14:21:01 GMT

  <xsl:template match"Paragraph">
   <xsl:value-of select="Text"/>
   <xsl:apply-template  select="StretchText"/>

That doesn't seem to match your tre ediagram that had multiple text and
stretchtext children of Paragraph.
The obove will give you th echaracters from (only) the first Text,
followed by the result of applying all the StretchTexts (even if they
came before the Text in the source).

Why not

  <xsl:template match"Paragraph">

which will process both kinds of children in document order?

  <xsl:template match"StretchText">
   <xsl:value-of select="position()"/>        ---> THIS doesn't work in my case.

use <xsl:number/> possibly with level="multiple" depending on exactly
what it is you are counting.


 XSL-List info and archive:

Current Thread