xsl-list
[Top] [All Lists]

Re: [saxon] catalogs

2003-01-02 05:52:42
Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com wrote:

> Download Norm's resolver library from http://xml.apache.org/commons/
>  and run Saxon with command line options -r and -x to use it.

I set everything up so that the resolver runs and finds the catalog, but it doesn't find some DTD modules:

C:\C2-data\gen\to-delete\steve>saxon652withcatalogs02 input02.xml through.xslt
Loading catalog: /etc/xml/catalog
resolveSystem(file:/C:/C2-data/gen/to-delete/steve/through.xslt)
resolveSystem(file:/C:/C2-data/gen/to-delete/steve/input02.xml)
resolveSystem(http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd)
resolvePublic(-//OASIS//DTD DocBook XML V4.2//EN,http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd)
Resolved public: -//OASIS//DTD DocBook XML V4.2//EN
        file:/etc/xml/oasis/docbook/4_2/dtd/docbookx.dtd
resolveSystem(file:/C:/C2-data/gen/to-delete/steve/dbnotnx.mod)
resolvePublic(-//OASIS//ENTITIES DocBook Notations V4.2//EN,file:/C:/C2-data/gen
/to-delete/steve/dbnotnx.mod)
Error on line 99 column 1 of file:/C:/C2-data/gen/to-delete/steve/input02.xml: Error reported by XML parser: Cannot read from file:/C:/C2-data/gen/to-delete/ steve/dbnotnx.mod (C:\C2-data\gen\to-delete\steve\dbnotnx.mod (Die angegebene Datei wurde nicht gefunden))
Transformation failed: Run-time errors were reported

input02.xml does not have 99 lines:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
  book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
<book>
  <title>foo</title>
</book>

The catalog and local DTD is found, and should work: xmllint works very well with it. dbnotnx.mod is expected in the current dirctory instead of in C:\etc\xml\oasis\docbook\4_2\dtd\: how to change that?

Tobi

--
http://www.pinkjuice.com/


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



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