|
Subject: RE: [xsl] XSL to Sort XML Doc return XML Doc ? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 1 Jun 2001 08:57:01 +0100 |
<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] 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL and Date, Pedro Pastor | Thread | RE: [xsl] Set of distinct values, Michael Kay |
| RE: [xsl] XSL and Date, Michael Kay | Date | RE: [xsl] Set of distinct values, Michael Kay |
| Month |