[EXI] Schema-informed Element and Type Grammars

Hello,
 
The section 8.5.4 Schema-informed Element and Type Grammars describes how to build EXI schema-informed grammar from W3C XML Schema. Relax NG or other schema languages have different constructs (e.g. interleave or value based choices) that may not be expressed in XML Schema terms, but they can be expressed in EXI grammar terms.
 
The whole 8.5.4 looks like example rather than specification; and has to be moved into appendix or separate document. The section that explains EXI grammar terms may contain explanation of schema-valid values. Also, it will be better to express EXI options schema in EXI grammar terms in addition to the XML schema to illuminate variations in implementations. 
 
Creating grammar based on “strict” option state is more like creation of two independent schemas. Instead using of this option, it is better to use two different schemaIDs, e.g. urn:my-schema-strict and urn:my-schema-loose.  The spec is already saying “…The parties involved in the exchange are free to agree on the scheme of schemaID field that is appropriate for their use to uniquely identify the schema information.”
 
Thanks.

Received on Wednesday, 1 October 2008 18:17:58 UTC