Hi All, Is there any precedence between processContent = strict and namespace attribute of wildcard group. Consider for example **************XSD File *******************
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" elementFormDefault="qualified"> <xsd:element name="doc"> <xsd:complexType> <xsd:sequence> <xsd:element name="elem" type="x:any" minOccurs="0" maxOccurs="100"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:complexType name="any"> <xsd:choice> <xsd:any processContents="strict" namespace="foo bar ##targetNamespace" minOccurs="0" maxOccurs="100"/> </xsd:choice> </xsd:complexType> <xsd:element name="foo"/> </xsd:schema> *******************XSD End ************************** *******************XML File ************************* <?xml version="1.0"?> <x:doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://xsdtesting" xsi:schemaLocation="http://xsdtesting particlesC029.xsd"> <x:elem> <bar:bar xmlns:bar="bar"/> </x:elem> </x:doc> ********************XML END***************************** 1) If we go according to strict then xml is invalid because there is no definition for 'bar:bar' element 2) If we go according to the namespace then it's valid because bar element is from the list of namespaces 'foo bar http://xsdtesting' Xerces says that this is the Valid instance i.e. it is going according to namespace . Please let me know if there is any such precedence followed in xerces. If possible please give the reference because in spec I didn't find anything regarding such precedence. Thanks. Regards, Umesh
