W3C home > Mailing lists > Public > public-exi@w3.org > April 2012

RE: Question: localname partition and xsi:type.

From: Takuki Kamiya <tkamiya@us.fujitsu.com>
Date: Mon, 9 Apr 2012 11:14:23 -0700
To: Yusuke DOI <yusuke.doi@toshiba.co.jp>, "public-exi@w3.org" <public-exi@w3.org>
Message-ID: <23204FACB677D84EBD57175AB7B5A71C01161D8B010A@FMSAMAIL.fmsa.local>
Hi Yosuke,

EXI depends on XML Schema 1.0 specification in expecting how 
attribute's target namespaces are assigned values. In your specific 
case, it ought to be in no namespace namespace (i.e. "").

The eight bit zeros you are seeing most likely is part of the
representation of localName "PoemType2". Please see the second 
paragraph in section 7.3.3 for how a localName that's already indexed
gets encoded. It is marked with eight-bit zeros, which is consistent
with what you saw in the stream.

In general, substitution groups work better with EXI than what can
achieve with xsi:type in terms of the compactness. This is something
you might want to be aware when you design your schema.



-----Original Message-----
From: Yusuke DOI [mailto:yusuke.doi@toshiba.co.jp] 
Sent: Monday, April 09, 2012 4:33 AM
To: public-exi@w3.org
Subject: Question: localname partition and xsi:type.

Dear EXI gurus,

I have two questions on spec.

1) attribute names and localname partition.

Appendix D.3 tells

> Additionally, when a schema is provided, the string table is also
> pre-populated with the local-name of each attribute, element and type
> explicitly declared in the schema, partitioned by namespace URI.

In our schema, attributes are unqualified. Are they in '' partition? or it should be in the partition that the attribute defined in?

2) encoding of xsi:type

On encoding of xsi:type, we're not able to find how to decode the following pattern of 8-bit zeros. Could you tell me what it is and where I can find it in the spec?

10000000 header
01110100 SE(poems) SE(poem) AT(xsi:type) NS(example.com/example) "PoemType2"
00000000 <- what's this?
10 AT("at2str")
00000110 length=4

01100001 a
01100010 b
01100011 c
01100100 d


I have confirmed it with both EXIficient and OpenEXI. However, I cannot find corresponding spec for the 8-bit zero.

The XML and schema we used are attached.

I appreciate your help.

// Yusuke DOI <yusuke.doi@toshiba.co.jp> Corporate R&D Center, TOSHIBA Corp.
Received on Monday, 9 April 2012 18:15:20 UTC

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