Hi ppl,
I need a clarification on one of scenarios of <xsd:any>
.
What if namespace
attribute's value is ##any
and the attribute processContents
doesn't exist (the default value is strict
)?
What will be the case here, Should the processor validate the elements against any schemes!?
Ex for clarification: Here's XSD section:
......
<xsd:complexType name="reservedType"> <!-- a declaration for an element `reserved` -->
<xsd:sequence>
<xsd:any namespace="##any"/>
</xsd:sequence>
</xsd:complexType>
..........
And here's the XML:
<c:reserved>
<message xmlns="unknown_schema">
<msg>Hello</msg>
</message>
</c:reserved>
Whenever I try to validate this xml against the above schema, I get:
The matching wildcard is strict, but no declaration can be found for element 'message'.
How this come, and the namespace is ##any
??!!!!!!!!
Please help.