xsl-list
[Top] [All Lists]

RE: Sorting the complete xml file

2005-12-08 07:59:49
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.
</root>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--