[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: Datatypes
Here are some more examples of current syntax compared to new proposed syntax: Current: <grammar xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"> <start> <element name="foo"> <data type="xsd:int"/> </element> </start> </grammar> Proposed: <grammar datatypeNamespace="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="foo"> <data type="int"/> </element> </start> </grammar> Current: <grammar xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:trex="http://www.thaiopensource.com/trex"> <start> <element name="foo"> <xsd:restriction trex:role="datatype" baseType="xsd:int"> <xsd:minInclusive value="0"/> <xsd:maxInclusive value="100"/> </xsd:restriction> </element> </start> </grammar> Proposed: <grammar datatypeNamespace="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="foo"> <data> <setParams type="int"> <param name="minInclusive">0</param> <param name="maxInclusive">100</param> </setParams> </data> </element> </start> </grammar> Current: <attribute name="id"> <data type="xsd:id"/> </attribute> Proposed: <attribute name="id"> <data type="NMTOKEN" key="id"/> </attribute> Current: <attribute name="ref"> <data type="xsd:IDREF"/> </attribute> Proposed: <attribute name="ref"> <data type="NMTOKEN" key="id"/> </attribute> Current: <attribute name="combine"> <choice> <string>replace</string> <string>choice</string> <string>group</string> </choice> </attribute> Proposed: <attribute name="combine"> <data> <enum type="normalizeString"> <value>replace</value> <value>choice</value> <value>group</value> </enum> </data> </attribute> Current: <attribute name="foo"> <xsd:restriction trex:role="datatype" baseType="xsd:int"> <xsd:enumeration value="1"></xsd:enumeration> <xsd:enumeration value="5"></xsd:enumaration> </xsd:restriction> </attribute> Proposed: <attribute name="foo"> <data> <enum type="int"> <value>1</value> <value>5</value> </enum> </data> </attribute> James
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC