IDEA #612
JDK 1.3.1
Win 2K

I tried to validate an XML file that uses a schemaLocation attribute to
identify the location of a namespaced schema. My root element looks like
this:

<AddressBook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xmlns="http://www.deansoft.com/AddressBook";
     xsi:schemaLocation="http://www.deansoft.com/AddressBook
AddressBook.xsd">

When I attempt to validate this XML file, I see get the following errors
reported, all of which are associated with the line number containing my
xsi:schemaLocation instance. This error is not reported when I run directly
using Xerces2.

    Error:  line (4) no-xsi: The {target namespace} of an attribute
declaration must not match 'http://www.w3.org/2001/XMLSchema-instance'.
    Error:  line (4) no-xsi: The {target namespace} of an attribute
declaration must not match 'http://www.w3.org/2001/XMLSchema-instance'.
    Error:  line (4) no-xsi: The {target namespace} of an attribute
declaration must not match 'http://www.w3.org/2001/XMLSchema-instance'.
    Error:  line (4) no-xsi: The {target namespace} of an attribute
declaration must not match 'http://www.w3.org/2001/XMLSchema-instance'.
    Error:  line (4) TargetNamespace.2: Expecting no namespace but the
schema document has a target namespace.

- Tim


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to