xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitchell, Sara" <samitch...@paypal.com>
Subject RE: Support for external catalog files for Resolver 1.1?
Date Mon, 12 Jun 2006 18:45:39 GMT
Thanks -- that helped somewhat. I copied resolver.jar to $ANT_HOME/lib,
changed the property in build.xml and tried again. 

What I now get is "Warning! Cannot load requested doc: " with the XML
document path (not the one in the catalog) to my DTD file. So Ant is at
least recognizing that the jar is there, but doesn't seem to be using
Resolver or the catalog to locate the DTD. 

Is there something else I'm missing? Or, is this something I should move
to the Ant list?

Sara
-----Original Message-----
From: David Crossley [mailto:crossley@apache.org] 
Sent: Friday, June 09, 2006 7:47 PM
To: Mitchell, Sara
Cc: commons-dev@xml.apache.org
Subject: Re: Support for external catalog files for Resolver 1.1?

Mitchell, Sara wrote:
> I'm trying to use Resolver 1.1 from Ant with Xalan-j 2.7.0, so this
may
> be an Ant problem or a Xalan problem. 
> 
> The Xalan docs say that 2.7 supports URIRESOLVER and the Resolver 1.1
> docs say that this is what is needed.  
> 
> Ant docs say that an external catalog can be used as long as the
> resolver jar is defined in the classpath. 
> 
>  
> 
> So, I set this up (I hope correctly), but still get a warning from Ant
> that external catalog files will be ignored: 

Yes, that is the warning that i get if resolver.jar is not
in $ANT_HOME/lib/

-David

> 1.	Downloaded XML Commons resolver and put this in the source tree
> relative to the build.xml file 
> 2.	Added resolver.jar to the classpath (using a <classpath> task in
> Ant)
> 3.	Created an external XML catalog file using the OASIS standard
> with simple <public> elements. 
> 4.	Added <xmlcatalog> definitions in build.xml
> 	
> 	<xmlcatalog id="all.xmlcatalogs">
> 	            <catalogpath>
> 
>                               <pathelement
> location="${basedir}${file.separator}PPcatalog.xml"/>
> 
>                   </catalogpath>
> 
> </xmlcatalog>
> 
> 
> 
> 5.	Added <xmlcatalog refid="all.xmlcatalogs"/> in ant <xslt>
> targets. 
> 
>  
> 
> Is my set up wrong? I'm stumped about what else to try. 
> 
>  
> 
> Sara Mitchell
> 
>  
> 

Mime
View raw message