- From: santhanakrishnan <santhana@huawei.com>
- Date: Thu, 10 Apr 2008 15:03:29 +0530
- To: public-exi@w3.org
- Message-id: <000301c89aed$f2fb9600$4a18120a@china.huawei.com>
Hi John Consider the following two forms of declaring an element in the schema Form1 <xs:simpleType name="tSIP_URL" final="list restriction"> <xs:restriction base="xs:anyURI"/> </xs:simpleType> <xs:element name="MyElement" type="tSIP_URL"/> Form2 <xs:element name="MyElement" type="xs:anyURI"/> As per the EXI specification for the Form1 I would create a Type and TypeEmpty grammar for the tSIP_URL type and MyElement grammar have Type grammar start symbol as RHS. Given below will be the grammar tSIP_URL 0 : CH [schema-valid value ] Type i, 1 tSIP_URL 1 : EE tSIP_URLEmpty 0 : EE MyElement 0: tSIP_URL 0 For Form2 no grammar would be created for MyElement. Just a particle term grammar would be created ParticleMyElement 0 : SE(MyElement) ParticleMyElement 1 ParticleMyElement 1 : EE Is my understanding correct till here? As per the specification we have to Evaluate the element contents using the SE(MyElement) grammar. But we have not created any grammar for MyElement in the Form2. So, how the contents of the MyElement can be encoded in this case? Even in the Schema informed grammar example given in the specification the final grammar has productions of the form SE("description") Term_description1,1 But no grammars defined for "description" element content as such. Please clarify my doubts regarding this Regards Santhanakrishnan
Received on Thursday, 10 April 2008 10:19:19 UTC