xsl-list
[Top] [All Lists]

Multi-level Sort

2005-02-07 10:27:31

I was hoping someone might be able to help me with a sort problem.  I
would like to sort on a presorted node in the same stylesheet.

I would like to sort this:

<document>
        <brands>
                <brand>Brand F</brand>
                <brand>Brand E</brand>
        </brands>
</document>
<document>
        <brands>
                <brand>Brand B</brand>
                <brand>Brand A</brand>
        </brands>
</document>
<document>
        <brands>
                <brand>Brand C</brand>
                <brand>Brand D</brand>
        </brands>
</document>


Into this:

<document>
        <brands>
                <brand>Brand A</brand>
                <brand>Brand B</brand>
        </brands>
</document>
<document>
        <brands>
                <brand>Brand C</brand>
                <brand>Brand D</brand>
        </brands>
</document>
<document>
        <brands>
                <brand>Brand E</brand>
                <brand>Brand F</brand>
        </brands>
</document>


Any ideas would be greatly appreciated.



--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>