xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam C. Hobaugh" <Adam.Hoba...@ansys.com>
Subject using catalog files with xerces from the command line
Date Thu, 04 Dec 2008 18:46:52 GMT


I am working on setting up my companies documentation repository to use
catalog files for all of our docbook source since the writers can
checkout anywhere in the file hierarchy. We use xerces for our xml
validation so it needs to be able to resolve urls using a catalog file.
Before the transition to catalog files we used the following command to
verify the xml files.


java -Xms200000000 -Xmx1400000000 -classpath
rcesSamples.jar " sax.SAXCount -v


Now we have the following catalog file and I need to know how to tell
xerces to use it since it says that "The XML Commons Resolver 1.2 is
included with the binary distribution of Xerces."
http://xerces.apache.org/xerces2-j/faq-xcatalogs.html. However it shows
how to use the resolver programming wise but not command line wise.


<?xml version="1.0"?>

<!DOCTYPE catalog

   PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"



<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

  <group prefer="public">



                                rewritePrefix="file:///D:/asdf/" />



                                rewritePrefix="file:///D:/asdf/" />



                                rewritePrefix="file:///D:/asdf/" />



                                rewritePrefix="file:///D:/asdf/" />




Thank you in advance for any information you may be able to give.


Adam C. Hobaugh

Software Engineer Co-op


View raw message