- From: Arthur Ryman <aryman@dev.w3.org>
- Date: Thu, 02 Sep 2004 10:44:19 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/examples
In directory hutz:/tmp/cvs-serv2925
Modified Files:
build.xml
Log Message:
Corrected build.xml and added targets to validate the wsdl and xsd schemas.
Index: build.xml
===================================================================
RCS file: /sources/public/2002/ws/desc/examples/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build.xml 2 Sep 2004 02:18:20 -0000 1.1
--- build.xml 2 Sep 2004 10:44:16 -0000 1.2
***************
*** 6,15 ****
<xmlcatalog id="schemas">
<dtd publicid="-//W3C//DTD XMLSCHEMA 200102//EN" location="xmlcatalog/xsd/XMLSchema.dtd"/>
! <dtd publicid="datatypes" location="datatypes.dtd"/>
</xmlcatalog>
<target name="main" depends="valid, invalid" description="Validates all documents."/>
! <target name="valid" description="Validates invalid WSDL and XSD documents.">
<xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="valid/**/*.wsdl, valid/**/*.xsd" />
--- 6,15 ----
<xmlcatalog id="schemas">
<dtd publicid="-//W3C//DTD XMLSCHEMA 200102//EN" location="xmlcatalog/xsd/XMLSchema.dtd"/>
! <dtd publicid="datatypes" location="xmlcatalog/xsd/datatypes.dtd"/>
</xmlcatalog>
<target name="main" depends="valid, invalid" description="Validates all documents."/>
! <target name="valid" description="Validates valid WSDL and XSD documents.">
<xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="valid/**/*.wsdl, valid/**/*.xsd" />
***************
*** 21,25 ****
</target>
! <target name="invalid" description="Validates valid WSDL and XSD documents.">
<xmlvalidate failonerror="no" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="invalid/**/*.wsdl, invalid/**/*.xsd" />
--- 21,25 ----
</target>
! <target name="invalid" description="Validates invalid WSDL and XSD documents.">
<xmlvalidate failonerror="no" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="invalid/**/*.wsdl, invalid/**/*.xsd" />
***************
*** 31,33 ****
--- 31,54 ----
</target>
+ <target name="wsdl" description="Validates WSDL schemas.">
+ <xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
+ <fileset dir="." includes="xmlcatalog/wsdl/*.xsd" />
+ <xmlcatalog refid="schemas"/>
+ <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" />
+ </xmlvalidate>
+ </target>
+
+ <target name="xsd" description="Validates XSD schema.">
+ <xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
+ <fileset dir="." includes="xmlcatalog/xsd/*.xsd" />
+ <xmlcatalog refid="schemas"/>
+ <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" />
+ </xmlvalidate>
+ </target>
+
+
</project>
\ No newline at end of file
Received on Monday, 6 September 2004 11:52:42 UTC