- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Mon, 14 Mar 2011 15:39:18 +0000
- To: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
- Cc: www-xml-schema-comments@w3.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ht writes:
> A third example follows in the next message.
Consider the following set of 4 schema documents.
A.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:override schemaLocation="B.xsd">
<xs:simpleType name="doc">
<xs:restriction base="xs:date"/>
</xs:simpleType>
</xs:override>
</xs:schema>
B.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:override schemaLocation="C.xsd">
<xs:element name="cod" type="xs:date"/>
</xs:override>
<xs:override schemaLocation="D.xsd">
<xs:element name="odd" type="xs:date"/>
</xs:override>
<xs:simpleType name="doc">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>
C.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:override schemaLocation="A.xsd">
</xs:override>
<xs:element name="cod" type="doc"/>
</xs:schema>
D.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:override schemaLocation="A.xsd">
</xs:override>
<xs:element name="odd" type="doc"/>
</xs:schema>
Algorithm O classifies this as OK starting from A, but not if starting
- From B, C or D.
ht
- --
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFNfjankjnJixAXWBoRAndsAJ9lL1xglXHapSC0yX+3jndt9342KwCeMp0j
dayw2l2gDJMZZgDDDGOLLBo=
=qZ73
-----END PGP SIGNATURE-----
Received on Monday, 14 March 2011 15:39:54 UTC