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

[EXI] Encoding of boolean dataType with Pattern

From: Vishal K <vishalka@huawei.com>
Date: Thu, 30 Oct 2008 17:39:07 +0530
To: public-exi@w3.org
Message-id: <001e01c93a88$4fe01aa0$2d12120a@china.huawei.com>
Hi EXI WG,

              As specification says about Boolean dataType of exi if it is
with pattern    of false,0 ,true and 1    than encoding should be in nbit
unsigned integer so  output will be 0 , 1, 2 or 3 in 2 bits  but Agile delta
is giving it in 2 bytes .For example below case -

 

If xml schema is -

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:simpleType name="exi_booleanPtrn">

<xs:restriction base="xs:boolean">

<xs:pattern value="0|1|true|false"/>

</xs:restriction>

</xs:simpleType>

<xs:element name="root" type="exi_booleanPtrn"/>

</xs:schema>

 

And xml input is - 

<root>0</root>

Then agile delta is giving output -     (in bytealign and in strict mode)   

91 00 00 01            (values are in hexadecimal)

 

Which should be 

91 00 01              (values are in hexadecimal)

 

So please clarify needful.

 

Regards

Vishal 
Received on Thursday, 30 October 2008 12:17:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:43 UTC