W3C home > Mailing lists > Public > public-rif-wg@w3.org > March 2009

Re: [ISSUE-37] New proposal on RIF interoperation with XML data and XML Schemas

From: Christian de Sainte Marie <csma@ilog.fr>
Date: Tue, 17 Mar 2009 18:46:25 +0100
Message-ID: <49BFE1F1.6010103@ilog.fr>
To: kifer@cs.sunysb.edu
CC: RIF WG <public-rif-wg@w3.org>
Michael Kifer wrote:
> As Bijan said, it is dangerous (inelegant, in my view) to conflate types and
> element names. [...]

Oh, you meant that the name of a type could be the same as the name of an element of a different type. Something like:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="A">
   some content
<xs:complexType name="B">
   some completely different content
<xs:element name="A" type="B"/>
<xs:element name="B" type="A"/>

According to (the current version of) my proposal, ?x#A would match the A elements (of type B) as well as the B element (of type A)...

Ohmygosh! I did not think of that.

Yuk! You are right, that's disgusting! (The current version of) my proposal is horribly flawed. Sigh!


Received on Tuesday, 17 March 2009 17:47:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:47:54 UTC