The following comment has been added to this issue:
Author: Joe Kesselman
Created: Thu, 9 Sep 2004 8:06 AM
Body:
BTW, the reason you get different orders for different document sources is that when
working with a DOM, we currently pick up whatever order the DOM used (except for
namespace declarations, which get pulled out into a separate category since XPath
distinguishes Namespace Nodes from Attribute Nodes) ... whereas if our internal
SAX2DTM model is used, I think we currently pick up whatever order the SAX parser
presented (modulo the same exception).
Note that this means that changing your DOM implementation will probably change the
order Yet Again.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XALANJ-1940?page=comments#action_52996
---------------------------------------------------------------------
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: Resolved
Priority: Major
Resolution: WON'T FIX
Project: XalanJ2
Assignee:
Reporter: Ed Knoll
Created: Wed, 8 Sep 2004 2:02 PM
Updated: Thu, 9 Sep 2004 8:06 AM
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]