W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > December 2008

question regarding test case msData/wildcards/wildZ006

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Tue, 30 Dec 2008 09:43:52 +0100
To: public-xml-schema-testsuite@w3.org
Message-Id: <200812300943.52356.tobias.koenig@trolltech.com>

Hej,

test case wildZ006 is supposed to check the ##other namespace
placeholder:

==================
<xsd:schema xmlns="urn:target" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
		      version="1.0"  targetNamespace="urn:target" 
                      elementFormDefault="qualified">

	<xsd:element name="foo">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:any namespace="##other" processContents="lax" maxOccurs="100"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
==================

so the schema says that <foo> can contain any element that is not in 
namespace "urn:target".

The instance document is defined like that:
==================
<target:foo xmlns:target="urn:target">
	<bar/>
</target:foo>
==================

as far as I can see, <bar> has an absent namespace, so it is not 
in "urn:target"... why is that test case marked as false then?

Is there a special rule for the absent namespace? Or is the real error that 
<bar> is not defined in the schema? (according to the spec it should be valid 
for processContents="lax").

Ciao,
Tobias
Received on Tuesday, 30 December 2008 08:44:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 30 December 2008 08:44:23 GMT