W3C

Edit comment LC-2177 for Efficient Extensible Interchange Working Group

Quick access to

Previous: LC-2187 Next: LC-2191

Comment LC-2177
:
Commenter: FABLET Youenn <Youenn.Fablet@crf.canon.fr>

or
Resolution status:

6) Is it conformant to not follow the attribute order in the case of a schema-informed grammar encoded element in deviation mode?
As stated in section 6, it seems not conformant.
In some cases, grammars can support attributes in no particular order, such as the example below (correct me if I got something wrong).
<xs:complexType name="test">
<xs:attribute name="name" type="xs:string"/>
<xs:anyAttribute namespace="#any"/>
</xs:complexType>
<xs:element name="test" type="test"/>

While the benefit of ordering the attributes at the grammar level and the general compression benefit for encoders to follow the given order are obvious, I do not see compelling reasons of including this constraint in the format itself.
At the encoder side, the encoder may decide to order attributes or not.
If encoding fails due to bad ordering (in strict mode) or if the compression ratio is bad, the encoder can always decide to order the attributes.
At the decoder side, the decoder is only following the grammars so it does not really care about the ordering.
There is even a drawback as this is one (major ?) difference between schema-informed and schema-less processing.
Am I missing something obvious?
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 2177.html,v 1.1 2017/08/11 06:44:21 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org