W3C home > Mailing lists > Public > www-rdf-comments@w3.org > July to September 1999

Re: Order in attribute-list?

From: Ralph R. Swick <swick@w3.org>
Date: Thu, 15 Jul 1999 15:31:46 -0400
Message-Id: <>
To: Karsten Tolle <tolle@csi.forth.gr>
Cc: www-rdf-comments@w3.org
>So, is it a syntactic feature inherited from XML not to care about the 
>order of attributes?

yes -- though citing an authoritative source for the XML part of
this answer was harder than I expected.

It turns out that this may be SGML lore.  The XML specification
http://www.w3.org/TR/1998/REC-xml-19980210 is silent on the
question of whether order of attributes is or is not significant.
One of the expected results of the XML Information Set specification
is to state where order is and is not significant.

The latest XML Information Set working draft
http://www.w3.org/TR/1999/WD-xml-infoset-19990517 does in fact say:

  2.2.1. Elements: Required Properties

    An element information item must have the following properties
    available in some form:
    4.An unordered set of attribute information items, one for each
      of the attributes (specified or defaulted) for this element.

(Of course, the XML Information Set specification also says that
the list of children element information items *is* ordered, and
RDF discards this order information).

-Ralph R. Swick
Received on Thursday, 15 July 1999 15:34:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:15:12 UTC