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>


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

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

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

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">

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").

Received on Tuesday, 30 December 2008 08:44:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:08:48 UTC