W3C home > Mailing lists > Public > public-exi@w3.org > May 2008

RE: [EXI] Clarification required regarding use of types

From: santhanakrishnan <santhana@huawei.com>
Date: Thu, 01 May 2008 11:40:18 +0530
To: john.schneider@agiledelta.com, public-exi@w3.org
Message-id: <000301c8ab52$0860d1d0$4a18120a@china.huawei.com>
Hi John

       Thank you very much for your clarification. Can you please let me
know the grammar for the Simple types or otherwise the alterations required
in section to accommodate the simple types into EXI grammars.


Thanks in advance



From: public-exi-request@w3.org [mailto:public-exi-request@w3.org] On Behalf
Of John Schneider
Sent: Thursday, April 10, 2008 9:40 PM
To: santhana@huawei.com; public-exi@w3.org
Subject: RE: [EXI] Clarification required regarding use of types




Good catch! EXI includes support for all the data types defined in the XML
Schema language. It creates grammars for each of these, including the
xs:anyURI type used below. The grammars for the simple types defined by the
XML Schema Language are created in accordance to section [1]. 


We will add text to the next version of the specification to clarify this.
Thank you for your very thorough review of the draft specification!






[1] http://www.w3.org/TR/exi/#simpleTypeGrammars



From: public-exi-request@w3.org [mailto:public-exi-request@w3.org] On Behalf
Of santhanakrishnan
Sent: Thursday, April 10, 2008 2:33 AM
To: public-exi@w3.org
Subject: [EXI] Clarification required regarding use of types

Hi John

       Consider the following two forms of declaring an element in the


<xs:simpleType name="tSIP_URL" final="list restriction">

       <xs:restriction base="xs:anyURI"/>


<xs:element name="MyElement" type="tSIP_URL"/>



<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  :



       tSIP_URLEmpty 0  : 



       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 : 



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


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



Received on Thursday, 1 May 2008 06:11:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:47:12 UTC