|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL to Sort XML Doc return XML Doc ?
<xsl:template match="records">
<xsl:copy>
<xsl:for-each select="*"><xsl:sort select="."/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:copy>
</xsl:template>
Mike Kay
Software AG
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Hasselback,
> Matt
> Sent: 31 May 2001 19:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: XSL to Sort XML Doc return XML Doc ?
>
>
> Hello...
>
> I'm aiming to sort an xml document, and return the same xml
> document, in
> its sorted transformation. Is there an easy way to go about
> doing this?
>
> Example:
>
> <records>
> <record>B</record>
> <record>H</record>
> <record>A</record>
> <record>D</record>
> <record>C</record>
> <record>G</record>
> <record>F</record>
> <record>E</record>
> </records>
>
> return:
>
> <records>
> <record>A</record>
> <record>B</record>
> <record>C</record>
> <record>D</record>
> <record>E</record>
> <record>F</record>
> <record>G</record>
> <record>H</record>
> </records>
>
> Thanks for any help ...
> -Matt
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








