RE: [xsl] Sorting the complete xml file

Subject: RE: [xsl] Sorting the complete xml file
From: Xuan Ngo <xuanngo2001@xxxxxxxxx>
Date: Thu, 8 Dec 2005 06:59:49 -0800 (PST)
> You mean, you want to see if they differ only in the order of the elements.
No. I want everything( elements, attributes, etc ) to be sorted.

A possible Sorted Example would be:
<root>	<!-- Sort by element name -->

	<!-- Sort by attribute name-->
	<child_A attribute1="childA">A_Child</child_A>
						<!-- Sort by attribute value-->
	<child_A attribute2="childA">A_Child</child_A>
	<child_A attribute2="childG">P_Child</child_A>
	<child_A attribute2="childX">A_Child</child_A>
		<!-- Sort by value of elements -->
	<child_B attribute="childG">A_Child</child_A>
	<child_B attribute="childG">P_Child</child_A>
	<child_B attribute="childX">A_Child</child_A>
	...Apply the same principle to nested childs and element with multiple attributes. I hope that it
is clear.

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Current Thread