- From: Tobias Koenig <tobias.koenig@trolltech.com>
- Date: Tue, 30 Dec 2008 09:43:52 +0100
- To: public-xml-schema-testsuite@w3.org
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 UTC