Thks for rapid responce, Scott.
 
A pitty, though that I can't switch that off. Looking at it, cocoon's build file has sorted attributes, so I'm sure you are right. The thing is, I'm working on a GUI, and I think it matters for clarity that the ex. build file says:  -name, -depends, -if, -unless and not in sorted appearance:  -depends, -if, -name, -unless. I can't rearrange them, as it should be the author's privilege to decide what comes first and what comes last.
 
This is (nearly) as annoying as Crimsons removing of '\n' s and '\t' s in long attribute values. Why could they just not ignore them, and not remove them? For a machine it won't matter, for man it does. I'm sure the good Stefano Mazzocchi would like me to see the name fo the target first, in his build file for cocoon, as he has put so much effort in it, for me to understand :-)
 
Best regards to all
 
Endre Furnes
Notion
----- Original Message -----
Sent: Wednesday, November 07, 2001 5:18 PM
Subject: Re: sorting attributes

According to the XML standard, attribute order is not guaranteed and is implementation dependent.  So, (and I'm guessing here), I doubt there is a way to turn it off in Xerces.  They probably sort it in order to do a fast binary search lookup by attribute name, so the sorting is a side-effect of that implementation.
 
Scott
 
----- Original Message -----
Sent: Wednesday, November 07, 2001 10:28 AM
Subject: sorting attributes

Hi all. I'm a newbee to xerces. Has just replaced the crimson with xerces, and access it via jaxp interface.
 
The reason why I replaced the parser, was that crimson removed '\n' and '\t' from the attribute values. (I'll do that myself). Also some annoyment in relative versus absolute dtd pointing in crimson. Xerces is fine in both respects. However, Xerces "sorts" the attributes according to name? Crimson did not. Been looking all over for a way to switch that off, but does not find a way.
 
Anyone give be a hint?
 
Thks and best regards
 
Endre Furnes

Reply via email to