xsl-list
[Top] [All Lists]

Catalogs with Saxon

2003-09-01 07:26:23
Hi,

I'm having a spot of bother with Catalogs and Saxon. Can anyone help? The problem is that it doesn't seem to be picking up CatalogManager.properties and isn't looking for the dtds locally. Well I think that's the problem. There is no output signalling failure from resolver, no matter where the catalog path points to or whether the locations of the local DTDs are correctly specified or not. Saxon gives the same output regardless.


To call Saxon this is used

java net.sf.saxon.Transform -u -x org.apache.xml.resolver.tools.ResolvingXMLReader -y org.apache.xml.resolver.tools.ResolvingXMLReader -r org.apache.xml.resolver.tools.CatalogResolver


Classpath is set to

/opt/programming/java/resolver:/opt/programming/java/resolver/resolver-1.0.jar:/opt/programming/java/saxon/saxon-7.6.5a/saxon7.jar:


CatalogManager.properties looks like

catalogs=/opt/programming/java/resolver/xhtml-catalog.xml
relative-catalogs=yes
static-catalog=yes
catalog-class-name=org.apache.xml.resolver.Resolver
verbosity=4


and is located in /opt/programming/java/resolver


This is the catalog


<?xml version="1.0"?>
<!DOCTYPE catalog
   PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
   "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    <group  prefer="public"  xml:base="file:///opt/web/standards" >

    <public
       publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
       uri="xhtml-1.0/DTD/xhtml1-strict.dtd"/>

    <system
       systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
       uri="xhtml-1.0/DTD/xhtml1-strict.dtd"/>

    <public
       publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"
       uri="xhtml-1.0/DTD/xhtml1-transitional.dtd"/>


    <system
       systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
       uri="xhtml-1.0/DTD/xhtml1-transitional.dtd"/>

  </group>
</catalog>



Cheers,
Chris


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>