- From: Yuri Delendik <yury_exi@yahoo.com>
- Date: Thu, 16 Oct 2008 17:13:29 -0700 (PDT)
- To: Taki Kamiya <tkamiya@us.fujitsu.com>, public-exi@w3.org
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 ? As a string. 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 Friday, 17 October 2008 00:14:09 UTC