[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] nearly FAQ .. (numbering of elements)


Subject: RE: [xsl] nearly FAQ .. (numbering of elements)
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 15:19:35 -0000

> Ok here is my Problem:
> I have an xml file, which looks like that:
> <my-foo>
> 	<text1></text1>
> 	
> 	<question>[..]</question>
> 	<question>[..]</question>
> </my-foo>
> 
> Now I need in my output (an xsl:fo with some special extensions) 
> something like:
> 
> Q1 [..]
> Q2 [..]

What about:

<xsl:text/>Q<xsl:number/>

Or:

<xsl:value-of select="concat('Q',count(preceding-sibling::question))"/>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords