W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > August 2002

Re: type test case

From: Sergey Melnik <melnik@db.stanford.edu>
Date: Wed, 07 Aug 2002 19:15:19 +0200
Message-ID: <3D5155A7.5050708@db.stanford.edu>
To: Patrick.Stickler@nokia.com
CC: jos.deroo.jd@belgium.agfa.com, Graham.Klyne@MIMEsweeper.com, jjc@hplb.hpl.hp.com, w3c-rdfcore-wg@w3.org

Patrick.Stickler@nokia.com wrote:

> 
>>-----Original Message-----
>>From: ext Sergey Melnik [mailto:melnik@db.stanford.edu]
>>Sent: 07 August, 2002 16:56
>>To: Stickler Patrick (NRC/Tampere)
>>Cc: jos.deroo.jd@belgium.agfa.com; Graham.Klyne@MIMEsweeper.com;
>>jjc@hplb.hpl.hp.com; w3c-rdfcore-wg@w3.org
>>Subject: Re: type test case
>>
>>
>>Patrick.Stickler@nokia.com wrote:
>>
>>
>>>>>2. Will this work with non-XML Schema datatypes?
>>>>>
>>>>>
>>>>I guess so
>>>>
>>>>
>>>I'd like to see some proof of that. xsi:type is defined
>>>by XML Schema. If RDF is going to use it for non XML Schema
>>>datatypes, then is it not the case that RDF is extending
>>>the semantics and usage of xsi:type beyond that defined
>>>by XML Schema?!
>>>
>>
>>Just for the reference, the "range" of xsi:type is QName, so 
>>I guess it 
>>can be used for referring to pretty much anything:
>>
>>http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#xsi_type
>>
>>Sergey
>>
> 
> Well, the XML Schema spec explicitly mentions that xsi:type
> is used to specify a Simple Type (2.2.1.2) or Complex Type (2.2.1.3)
> so it is IMO reasonable for any application that sees xsi:type
> to presume that the datatype in question conforms to XML Schema.
> 
> So, even if the "range" of xsi:type is a QName, that QName is
> expected to denote an XML Schema type.
> 
> No?

This is not my reading. The first sentence of the paragraph refers to a 
usual case when the type is determined by the type associated with the 
XML element in the schema (i.e., no xsi:type is used). However, when 
xsi:type is there, its value is a QName, nothing said about it referring 
to an XSD type definition or anything else.

Correct me if I'm wrong...

Sergey
Received on Wednesday, 7 August 2002 13:15:26 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:50:24 EDT