ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susanne Wunsch <>
Subject Re: Ant 1.8.2 schemavalidate and xmlcatalog
Date Mon, 21 May 2012 11:59:44 GMT

polymorphisme <> writes:

>  I try to use the task schemavalidate with xmlcatalog like this :
> <schemavalidate 
>   classname="org.apache.xerces.parsers.SAXParser" 
>   classpathref="${lib.dir}/xercesImpl-2.7.1.jar"		 	    	    				  
>    disableDTD="false" fullchecking="true"				    	      
>   file="${etc.dir}/xml-xsd-valid.xml">			  		  	
>    <xmlcatalog refid="catalogs"/>  								 
> </schemavalidate>

[snip ant output]

> Otherwise, at page,
> we can read :
> This task supports the use of nested
> <xmlcatalog> elements

Sorry, I don't have any experiences with real XML catalogs following the
OASIS definition. I embedded the catalog definition in the ant syntax
and that works fine for me.

<schemavalidate failonerror="true">
  <fileset dir="${sample.dir}">
    <include name="*.xml"/>
  <schema namespace=""
  <schema namespace=""
  <attribute name="" value="true"/>
  <attribute name="" value="true"/>
  <attribute name="" value="true"/>
  <attribute name="" value="true"/>

Maybe it helps...

Kind regards...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message