tenderlove / dom-test-suite

2001 Dom test suite

This URL has Read+Write access

tenderlove (author)
Sun Aug 31 16:22:01 -0700 2008
commit  c28bfab0e66a8b9125e690dd2e6c08c8e367553e
tree    ec271e0cd19e1bcdd30a97848ff9ee23df5132dc
parent  b9538458499af0f0911fed42018c0f48e10df409
dom-test-suite / schemavalidate.ant
100644 1 lines (1 sloc) 1.628 kb
1
<?xml version="1.0"?> <!-- Copyright (c) 2001-2003 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This program is distributed under the W3C's Software Intellectual Property License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more details. --> <!-- $Log: schemavalidate.ant,v $ --> <!-- Before Ant 1.6, xmlvalidate did not support nested attribute elements which are used to enable schema validation. By keeping the xmlvalidate task in a separate file, we are able to build using Ant 1.5 and only require Ant 1.6 when using schema validation. When support for Ant 1.5 is no longer a requirement, this target can be added to build.xml and the ant tasks that invoke it can be replaced with antcall tasks. --> <project default="schema-validate-tests"> <property name="includes" value="*.xml"/> <target name="schema-validate-tests"> <xmlvalidate lenient="no" failonerror="yes" classname="org.apache.xerces.parsers.SAXParser"> <fileset dir="${validate.dir}" includes="${includes}"/> <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> </project>