Subject: Re: [xsl] Add order of nodes From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Wed, 09 Feb 2005 13:01:42 +0100 |
Yes indeed.<doc> <fragment>...</fragment> <fragment>...</fragment> <fragment>...</fragment> ... </doc>
I need a <xsl:template match="fragment"> that produces this output:
<doc> <fragment pos="1">...</fragment> <fragment pos="2">...</fragment> <fragment pos="3">...</fragment> ... </doc>
Can I use position() for that?
(in conjunction with this template) <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) "Et ipsa scientia potestas est" - Francis Bacon , Meditationes sacrae
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Add order of nodes, Robert Soesemann | Thread | Re: [xsl] Add order of nodes, David Carlisle |
Re: [xsl] Interation and Variables, David Carlisle | Date | RE: [xsl] Add order of nodes, Robert Soesemann |
Month |