Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (35 sloc) 1.628 kb
<?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>
Jump to Line
Something went wrong with that request. Please try again.