W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > April 2003

xmlsch-04: values without lexical forms

From: Jeremy Carroll <jjc@hpl.hp.com>
Date: Fri, 11 Apr 2003 20:22:25 +0300
To: w3c-rdfcore-wg@w3.org
Message-Id: <200304112022.25300.jjc@hpl.hp.com>

The XML Schema WG ask why we permit values without lexical forms.

My understanding is that this was for union dataypes in XML Schema.

I will see what they say to that.

Were there any other reasons?


<xsd:element name="foo">
    <xsd:union memberTypes="xsd:string xsd:int"/>

Then the lexical mapping maps no values to the integer 2, but it is in the 
value space since
   <foo xsi:type="xsd:int">2</foo>

conforms with this type, and accesses the hidden part of the value space.

(My XML Schema is weak - I am sure I have made a number of errors, but the 
objective should be clear enough)
Received on Friday, 11 April 2003 14:22:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:24:21 UTC