[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Catalogs with Saxon

Subject: Catalogs with Saxon
From: "chris.danx" <chris.danx@xxxxxxxxxxxx>
Date: Mon, 01 Sep 2003 16:26:23 +0200
saxon chris
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.