[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: generic sorting problem

Subject: Re: generic sorting problem
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 06 Sep 2005 21:56:09 +0200
problem of generic trademarks
Hi,

Tempore 21:21:50, die 09/06/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit peter willard donisthorpe <paytur@xxxxxxxxxxx>:

I need to sort the children of the root element by _their_ first child.

I suggest you try this for a starters:


<xsl:template match="/*">
	<xsl:copy>
		<xsl:copy-of select="@*"/>
		<xsl:for-each select="*">
			<xsl:sort select="*[1]"/>
			<xsl:copy-of select="."/>
		</xsl:for-each>
	</xsl:copy>
</xsl:template>

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
B+NN= N?N/N4N1 OON9 N?ON4N-N= N?N/N4N1B;  - N#O	N:ON1ON7O

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.