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=14641>.
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=14641

Prototypical <schemavalid> task that uses Xerces-J 2.2.1 to validate an XML 
file against it's Schema (XSD)





------- Additional Comments From [EMAIL PROTECTED]  2002-11-19 15:26 -------
This is what I get when I try to use <xmlvalidate>:

P:\com_lgc\tahoe\modules>build validate2
Buildfile: P:\com_lgc\tahoe\modules\build.xml

BUILD FAILED
file:P:/com_lgc/tahoe/modules/build.xml:83: The <xmlvalidate> task doesn't 
support the nested "attribute" element.

Total time: 1 second


with the build file fragment:

  <target name="validate2" depends="init"
          description="Ensure dependencies.xml is valid against its schema">
    <xmlvalidate warn="true" lenient="false">
      <fileset dir="." includes="dependencies.xml" />
      <attribute name="http://xml.org/sax/features/namespaces";
                 value="true" />
      <attribute name="http://xml.org/sax/features/validation";
                 value="true" />
      <attribute name="http://apache.org/xml/features/validation/schema";
                 value="true" />
      <attribute name="http://apache.org/xml/features/validation/schema-full-
checking"
                 value="true" />
    </xmlvalidate>
  </target>

So it seems this is not available in Ant 1.5.1. Which seems consistent with the 
documentation that doesn't list <attribute> as a possible nested element, and 
nothing said about being able to validate against schemas in the text nor the 
examples. I also find the attribute setting cumbersome, although it's generic 
of course.

So I guess I need to keep my <schemavalid> task/condition until <xmlvalidate>
supporting schema validation is supported. --DD

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

Reply via email to