Subject: Re: [xsl] nearly FAQ .. (numbering of elements) From: Christian Beutenmueller <beutenmueller@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 26 Jan 2004 16:58:28 +0100 |
Thats an really elegant solution. And with a +1 it does exactly what I want.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))"/>
Christian --
"A truly outstanding programmer can find bugs buried in a 6 megabyte core dump without using a hex calculator" [http://www.pbm.com/~lindahl/real.programmers.html]
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] nearly FAQ .. (numbering , Andrew Welch | Thread | [xsl] Dereferencing not working in , Andrew Maclean |
[xsl] Re: nearly FAQ .. (numbering , Stephane Bortzmeyer | Date | Re: [xsl] copying attributes to all, Terence Mac Goff |
Month |