Hi,

I hope it is the right list for my questions. I am trying to publish the
defguide taken from cvs. I did a co on defguide, cvstools, xsl, docbook.
I have a redhat 7.3.

[dumas@hermes defguide]$ xsltproc --version
Using libxml 20419, libxslt 10015 and libexslt 706
xsltproc was compiled against libxml 20418, libxslt 10015 and libexslt 706
libxslt 10015 was compiled against libxml 20418
libexslt 706 was compiled against libxml 20418

I modified Makefile.inc in cvstools, such that CVSTOOLSROOT points to the
cvstools directory (../../cvstools), I put XSLTOPT="--processor=xsltproc".
I also add a debug print in xslt such that it prints the xsltproc command
line. Here is the output of make (in defguide/en):

============================================================================
[dumas@hermes en]$ make
../../cvstools/xslt "--processor=xsltproc" -m 100000000 book.xml stylesheets/chunk.xsl 
base.dir=html/ html.ext=.html 
../../cvstools/xsltproc -param use.extensions "'0'" -param html.ext "'.html'" -param 
base.dir "'html/'" stylesheets/chunk.xsl book.xml
xsltproc -param use.extensions '0' -param html.ext '.html' -param base.dir 'html/' 
stylesheets/chunk.xsl book.xml
book.xml:9: warning: failed to load external entity 
"../../docbook/ebnf/ebnf-4.2CR1.dtd"
]>
 ^
bookinfo.xml:21: error: Entity 'ouml' not defined
<address><city>K&ouml;ln</city></address>
                      ^
bookinfo.xml:38: error: chunk is not well balanced

^
book.xml:13: error: Entity value required
&bookinfo;
         ^
bookinfo.xml:21: error: Entity 'ouml' not defined
<address><city>K&ouml;ln</city></address>
                      ^
bookinfo.xml:38: error: chunk is not well balanced

^
book.xml:13: error: Entity value required
&bookinfo;
         ^
bookinfo.xml:21: error: Entity 'ouml' not defined
<address><city>K&ouml;ln</city></address>
                      ^
unable to parse book.xml

FAILED
=========================================================================

I suspect the issue is with 
failed to load external entity "../../docbook/ebnf/ebnf-4.2CR1.dtd".
I have found with a google search that this file is missing in cvs (thread 
starting near Thu, 13 Jun 2002 10:02:56 -0400 in the mailing list. Is it
possible to use another one with the same declarations ?

Anyway I attach a diff against the saxon script in cvstools. I needed that
to have that script working work, and I guess it is right (I have no java 
installed, thus I couldn't test further).

Pat
Index: saxon
===================================================================
RCS file: /cvsroot/docbook/cvstools/saxon,v
retrieving revision 1.19
diff -u -r1.19 saxon
--- saxon       7 Aug 2002 06:47:05 -0000       1.19
+++ saxon       9 Oct 2002 13:58:29 -0000
@@ -19,7 +19,7 @@
 
 # identify the directory for DocBook XSL
 for dir in "/sourceforge/docbook/xsl" \
-           `dirname $0/../xsl` \
+           `dirname $0`/../xsl \
            "/usr/share/sgml/docbook/stylesheet/xsl/nwalsh" ; do
   if [ -d "$dir" ]; then
     DOCBOOKXSL="$dir"

Reply via email to