[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How to sort attribute?


Subject: Re: [xsl] How to sort attribute?
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 15 Aug 2005 05:53:04 +0100

>>>>> "John" == John Li <johnli121@xxxxxxx> writes:

    John> "... ... is canonical in the sense that within each child
    John> element of the root, the attributes are sorted
    John> lexicographically, and then those elements are sorted
    John> lexicographically with respect to the element names and
    John> attribute values."

    John> If xerces or xalan cannot do it, that will be a big trouble
    John> for me.

If you want Canonical XML, then it's not the parser (xerces) that need concern
you, but the serializer.
You will need to write your own XSLT serializer - I don't know whether
or not xalan supports this.
In such a case, there is no need for a sort step at all.
-- 
Colin Adams
Preston Lancashire


Current Thread
Keywords