W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

RE: id attribute of schema elements in Microsoft test suite

From: Dare Obasanjo <dareo@microsoft.com>
Date: Fri, 2 Aug 2002 08:15:02 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E06621EA4@red-msg-06.redmond.corp.microsoft.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT