- From: Taki Kamiya <tkamiya@us.fujitsu.com>
- Date: Fri, 17 Oct 2008 23:37:06 -0700
- To: "'Yuri Delendik'" <yury_exi@yahoo.com>, <public-exi@w3.org>
Hi Yuri, That is a limitation of schema-informed strict grammar, and it is intentional. Other approaches were examined, however, the current method was chosen because of its simplicity, knowing this single limitation. We failed to describe this limitation in the spec. We believe this limitation does not cause a big problem, given that xsi:type and xsi:nil rarely coexist on a single element. Thank you for catching this. We'll describe this limitation in the next publication. Regards, -taki -----Original Message----- From: Yuri Delendik [mailto:yury_exi@yahoo.com] Sent: Thursday, October 16, 2008 5:13 PM To: Taki Kamiya; public-exi@w3.org Subject: Re: [EXI] Handling of xsi:type and xsi:nil attributes in Built-in encoding Hello Taki, Is the following correct? After xsi:type=”xsd:integer” was found the following grammar will be used to encode the element content: XsdIntegerType_0: CH[xsd:integer] XsdIntegerType_1 .. 0 XsdIntegerType_1: EE .. 0 XsdIntegerEmptyType_0: EE .. 0 (strict is set, schemaID is empty) I think, there should be second part for the Santhanakrishnan question: how following fragment will be encoded? <product xsi:type="xsd:integer" xsi:nil=”true” /> Thanks, Yuri Delendik ----- Original Message ---- From: Taki Kamiya <tkamiya@us.fujitsu.com> To: Ed Day <edday2006@gmail.com>; santhana@huawei.com Cc: public-exi@w3.org Sent: Tuesday, October 14, 2008 6:49:06 PM Subject: RE: [EXI] Handling of xsi:type and xsi:nil attributes in Built-in encoding Hi Santhanakrishnan and Ed, When schemaID [1] value is set to be empty in header options, the EXI stream is schema-informed with XML Schema built-in type definitions, but with no user-defined types. In such an EXI stream, if xsi:type="xsd:integer" is used in the context of a built-in element grammar [2], the grammar for xsd:integer is used for encoding the element content. Hope it helps, [1] http://www.w3.org/XML/Group/EXI/docs/format/exi.html#key-schemaIDOption [2] http://www.w3.org/XML/Group/EXI/docs/format/exi.html#builtinElemGrammars -taki -----Original Message----- From: public-exi-request@w3.org [mailto:public-exi-request@w3.org] On Behalf Of Ed Day Sent: Tuesday, October 14, 2008 7:07 AM To: santhana@huawei.com Cc: public-exi@w3.org Subject: Re: [EXI] Handling of xsi:type and xsi:nil attributes in Built-in encoding Hi Santhanakrishnan, On Tue, Oct 14, 2008 at 4:32 AM, santhanakrishnan <santhana@huawei.com> wrote: > Hi WG > When xsi:type and xsi:nil attributes occur in an xml instance how to > handle them for pure Built-in EXI encoding. > > Consider the following case > <product xsi:type="xsd:integer">123</product> > > How the character content 123 will be encoded in the pure built-in EXI > encoding. As a string or as integer ? A ring. There was a proposal at one time to use xsi:type information as a means of doing typed encoding without a schema, but it was not implemented. > > regards > Santhanakrishnan Ed Day Objective Systems, Inc. http://www.obj-sys.com
Received on Saturday, 18 October 2008 06:37:47 UTC