xsl-list
[Top] [All Lists]

Re: [xsl] Data sequence

2010-10-22 03:01:26

<xsl:for-each select="author">
<xsl:sort select="number(seq)"/>
<xsl:copy-of select="."/>
</xsl:for-each>

Michael Kay
Saxonica

Hi Team,
Is there any quick idea about how to sequence the authors in the output
file.

Input
<article>
<author seq="1">author 1</author>
<author seq="3">author 3</author>
<author seq="2">author 2</author>
</article>

Desired output
<article>
<au seq="1">author 1</author>
<au seq="2">author 2</author>
<author seq="3">author 3</author>
</article>

Thanks in advance
...JSR


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>