Re: ProcessContents attribute in schema grammar

Hi Poornima,

you are raising a very interesting point.

To keep the the format as simple as possible EXI does not make use of
the "processContent" property of an XML Schema wildcard. The example
you provided produces an unambiguous EXI grammar where SE(*) is the
only choice.

Wildcard Terms in EXI [1] are evaluated in a given manner (see
Semantics part). An EXI processor evaluates the element contents using
the SE(qname) grammar, e.g. in your case from the appropriate global
element "price".

Hope this answers your question,

Thanks,

-- Daniel

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



On Thu, Oct 30, 2008 at 9:48 AM, Poornima <poornimadms@huawei.com> wrote:
>       Hi WG,
>
>    There is a query regarding the encoding of schema grammar for any element
> with processContents set to strict.
>
> When any element is declared in the schema document,with namespace set to
> "##any" and processContents attribute set to "strict" and in the XML
> document the element declared in the same schema is used for the any
> element.This element's grammar is already present in the schema grammar witb
> SE(qname) production.
>
> In such a case for encoding to EXI stream.will the SE(*) production be
> selected or SE(qname) production be selected for the element used for the
> any element inside the XML document?
>
>        Files for the above mentioned case have been attched below.Request u
> to answer this query
>
>
>
> Schema File:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
>
>   <xs:complexType name="EXItype">
>
>          <xs:sequence>
>
>                 <xs:any namespace="##any" processContents="strict"/>
>
>          </xs:sequence>
>
>   </xs:complexType>
>
>   <xs:element name="EXIelem" type="EXItype"/>
>
>   <xs:element name="price" type="xs:string"/>
>
> </xs:schema>
>
>
>
> XML file:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <EXIelem>
>
>   <price>Hello</price>
>
> </EXIelem>
>
>
>
> Thank you
>
> Regards
>
> Poornima DMS

Received on Wednesday, 19 November 2008 19:11:19 UTC