The following comment has been added to this issue:

     Author: Brian Minchau
    Created: Wed, 8 Sep 2004 4:02 PM
       Body:
Ed,
the order of attributes in a serialized XML document is not guaranteed. The standards 
don't specify any ordering.  I'm afraid we aren't going to sort them.

Sorting is a delecate issue.  Different languages that use the same alphabet can have 
a different sort order for the same letters.

Sorting them would have a performance impact. 

If you want to compare two serialized XML documents to see if they are "the same", 
please consider parsing each into a DOM and recursively traversing both DOMs in order 
to compare.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XALANJ-1940?page=comments#action_52988

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1940

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1940
    Summary: Default order of output/serialized attribute inconsistent.
       Type: Improvement

     Status: Unassigned
   Priority: Major

    Project: XalanJ2

   Assignee: 
   Reporter: Ed Knoll

    Created: Wed, 8 Sep 2004 2:02 PM
    Updated: Wed, 8 Sep 2004 4:02 PM
Environment: Sun/Solaris 2.8; JDK 1.4; Xalan-J 2.6

Description:
We are creating an XML file from another XML file.  During this process we will add 
attriubtes to some of the input elements.  If we execute this transformation using 
org.apache.xalan.xslt.Process directly, our (generated) attributes come out in one 
order.  If we execute this process with a Java program which uses Transformer, DOM and 
Serializer classes directly, we get a different attribute order.

This has no effect on downstream processing.  However, from a regression testing 
perspective where we are comparing new test results to old this does become a (minor) 
issue.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to