DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9761>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9761

Schema Validation not working with multiple namespaces





------- Additional Comments From [EMAIL PROTECTED]  2002-08-01 10:03 -------
If you change your elementFormDefault attributes on each schema to qualified
then your xml document will work out (at least with xerces-2.0.2). A document
that works with the given schema is. 

<?xml version="1.0"?>
<a:Company xmlns:a="http://www.company.org";
         xmlns:pro="http://www.product.org";
         xmlns:per="http://www.person.org";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://www.company.org Company.xsd">
        <Person>
                <Name>John Doe</Name>
                <SSN>123-45-6789</SSN>
        </Person>
        <Product>
                <Type>Widget</Type>
        </Product>
</a:Company>

There is some kind of clash between a default namespace and an unqualified
element (i.e. why do I have to use "a" for the company namespace), I'm not sure
what should happen in a case like this, maybe someone on the mailing list will know.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to