xsl-list
[Top] [All Lists]

(unknown)

2003-09-09 09:27:27
In-reply-to: <5295(_dot_)1063122940(_at_)www25(_dot_)gmx(_dot_)net> (message 
from marcel salathe on
        Tue, 9 Sep 2003 17:55:40 +0200 (MEST))
Subject: Re: [xsl] sorting AND copying of XML via XSL
FCC: ~/Mail/sent
References:  <5295(_dot_)1063122940(_at_)www25(_dot_)gmx(_dot_)net>
--text follows this line--

<xsl:template match="foo">
<foo>
<xsl:for-each select="bar">
<xsl:sort select="@id" datatype="number"/>
<bar>
<xsl:copy-of select="@*"/>
<xsl:for-each select="item">
<xsl:sort select="@id" datatype="number"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:for-each>
</foo>
</xsl:template>

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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