RE: [xsl] Determining if an optional attribute is present

Subject: RE: [xsl] Determining if an optional attribute is present
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 17 Oct 2006 19:44:06 +0100
> What I got:
> 
> <Method revision="4" objectID="85e29107-4686-4846-86b3-2280ab4157c9"
> version="1"/>
> 
> What I would like to have in an idea world:
> 
> <Method objectID="85e29107-4686-4846-86b3-2280ab4157c9" version="1"
> revision="4" />
> 
> Is that possible or must I be a little less anual on this one;)

No, in XML attributes are unordered and it's completely unpredictable what
order the serializer will choose to use. It may even vary from one day to
the next, for example if the system is using a hash table with hashing based
on physical memory addresses.

Michael Kay
http://www.saxonica.com/

Current Thread