- From: Dare Obasanjo <dareo@microsoft.com>
- Date: Fri, 2 Aug 2002 08:15:02 -0700
- To: "Stefan Wachter" <Stefan.Wachter@gmx.de>, <xmlschema-dev@w3.org>
After some discussion with Henry Thompson on this list a few months ago we came to the same conclusion that you did. We are in the process of communicating with the W3C XML Schema working group and having the test case changed. -----Original Message----- From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de] Sent: Thu 8/1/2002 9:58 AM To: xmlschema-dev@w3.org Cc: Subject: id attribute of schema elements in Microsoft test suite Dear all, when testing my parser against the Microsoft test suite the following two tests failed: attgA008.xsd and stA003.xsd. The essence of these tests is that the two schema document of these tests are composed by including and importing other schema documents. There are schema components in the included / imported schema documents that have the same id for example the stA003.xsd includes the file stA003b.xsd: <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:include schemaLocation="stA003b.xsd"/> <xsd:simpleType id="foo123" name="fooString"> <xsd:restriction base="xsd:string"> <xsd:length value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:schema> stA003b.xsd: ========== <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:simpleType id="foo123" name="dup_id"> <xsd:restriction base="xsd:string"> <xsd:length value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:schema> Both schema document have an element with the same id, namely "foo123". Is this really an error? Normally an ID attribute enforces identity only in one instance document. Is there a special behaviour of the id attribute of schema elements? Thanks for your attention, Stefan
Received on Friday, 2 August 2002 11:15:33 UTC