This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] make xalan use local xml catalog file


Hi,

i'm trying to make my xalan use the locally installed xml catalog with
the appropriate docbook dtd's.

What works so far:

- xmlcatalog can resovle 
    - "-//OASIS//DTD DocBook XML V4.2//EN"
    - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";

- xalan finds
   - resolver.jar
   - CatalogManager.properties

But when I run:
org.apache.xalan.xslt.Process -ENTITYRESOLVER org.apache.xml.resolver.tools.CatalogResolver -URIRESOLVER org.apache.xml.resolver.tools.CatalogResolver -in ${file-in} -xsl xsl-print.xsl -out out/${file-in}.fo

xalan complains, that he has no internet:
     [java] java.net.SocketException: errno: 101, error: Network is unreachable for fd: 6
     [...]

xalan processes all local xsl files:
     [java] resolveURI(../db-xsl-1.60.1/fo/docbook.xsl)
     [java] Resolved URI: ../db-xsl-1.60.1/fo/docbook.xsl
     [java]     file:/home/jens/projects/docbook/db-xsl-1.60.1/fo/docbook.xsl
     [...]

and finally complains about the internet connection:
     [java] resolvePublic(-//OASIS//DTD DocBook XML V4.2//EN,http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd)

     [java] (Location of error unknown)XSLT Error
            (javax.xml.transform.TransformerException): java.net.SocketException: errno:
            101, error: Network is unreachable for fd: 8

I have no idea how to track this down any more...

------------------  CatalogManager.properties      ---------------------
catalogs=/etc/xml/catalog;/usr/share/sgml/docbook/xml-dtd-4.2-1.0-14/docbookx.dtd;/usr/share/sgml/docbook/xmlcatalog;/usr/share/sgml/docbook/xsl-stylesheets
relative-catalogs=false
static-catalog=yes
catalog-class-name=org.apache.xml.resolver.Resolver
verbosity=4
------------------  CatalogManager.properties      ---------------------


I think the /etc/xml/catalog should be enough (as it contains all the other
stuff _and_ xmlcatalog can deal with the file).


Ciao

Jens Skripczynski
-- 
E-Mail: skripczynski(at)mail2003(dot)skripczynski(dot)de

* life is real - unless declared integer *


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]