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

[EXI LC comment] datatype representation map for a specific element

From: SHIMIZU Wataru <shimizu.wataru@canon.co.jp>
Date: Fri, 07 Nov 2008 16:14:14 +0900
To: public-exi-comments@w3.org
Cc: youenn.fablet@crf.canon.fr, fujisawa.jun@canon.co.jp
Message-Id: <20081107161128.B38C.SHIMIZU.WATARU@canon.co.jp>

Hello EXI WG,

According to the specification, if I use a user-defined datatype
representation, I have to specify a datatype representation map. How do
I use my original encoding only for the specific element or attribute?

For example, I want to use my original float encoding only for b
elements.

<a>
  <b>1.2</b>  <!-- xsd:float -->
  <c>3.4</c>  <!-- xsd:float -->
</a>

If I define a datatype representation map as follows, c element will
aslo be encoded with myfloat encoding.

<datatypeRepresentationMap xmlns:myenc="http://example.org/myenc">
  <xsd:float/>
  <myenc:myfloat/>
</datatypeRepresentationMap/>

--
Wataru Shimizu
<shimizu.wataru@canon.co.jp>
Received on Friday, 7 November 2008 08:24:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 November 2008 08:25:00 GMT