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

http://issues.apache.org/bugzilla/show_bug.cgi?id=29187

xmlvalidate schema validation not working





------- Additional Comments From [EMAIL PROTECTED]  2004-06-08 19:24 -------
I am studying the bug report, using the HEAD revision of ant, which allows to
specify the location of the schema using a property :
        <property
       
name="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation";
        value="${xsd.file}"/> 
This works, but only if the root tag of the xml file looks like this :
<personnel>
With this root tag :
<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xsi:noNamespaceSchemaLocation="personal-schema.xsd">
I get this error :
[xmlvalidate] /C:/dev/testant/xmlvalidate/personal-schema.xml:3:57:
cvc-complex-type.3.2.2: Attribute 'xsi:noNamespaceSchemaLocation' is not allowed
to appear in element 'personnel'.

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

Reply via email to