|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Function position()
<xsl:template match"Paragraph"> <xsl:value-of select="Text"/> <xsl:apply-template select="StretchText"/> </xsl:template> 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"> <xsl:apply-templates/> </xsl:template> 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. </xsl:template> use <xsl:number/> possibly with level="multiple" depending on exactly what it is you are counting. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








