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]

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


On Wed, Apr 02, 2003 at 06:08:20PM +0200, Jens Skripczynski wrote:
> 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).

It isn't clear to me that there is a local entry
in any of the XML catalogs
for the DTD identifiers.  When you say:

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

Do you mean that it resolves the public identifier
to the "http://..."; URI?  If so, then that is the problem.

Is there an entry in any of the catalogs that maps
the DTD PUBLIC identifier to a local file?

Also, you have included the "docbookx.dtd" file in your
list of catalogs in CatalogManager.properties.
That should probably be catalog.xml.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs at sco dot com

---------------------------------------------------------------------
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]