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"/> </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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Function position(), Jeni Tennison | Thread | RE: [xsl] Function position(), Michael Kay |
Re: [xsl] Can sets have order?, David Carlisle | Date | Re: [xsl] Computed HTML Attribute V, RSuiter |
Month |