[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto make HTML from Docbook-XML?



debacle> Hi, while I was able to produce HTML from Docbook-SGML using
debacle> db2html from the package cygnus-stylesheets, I got 200 error
debacle> messages when I tried it on the file
debacle> /usr/share/doc/docbook-xml/examples/test-4.1.2.xml:

debacle> TMPDIR is DBTOHTML_OUTPUT_DIR18686 Using stylesheet:
debacle> "/usr/lib/sgml/stylesheet/dsssl/docbook/cygnus/cygnus-both.dsl"
debacle> working on ../test-4.1.2.xml
debacle> jade:/usr/share/sgml/docbook/dtd/xml/4.1/docbookx.dtd:74:17:E:
debacle> "X20AC" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:6:19:E:
debacle> "X21B6" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:7:19:E:
debacle> "X21B7" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:8:17:E:
debacle> "X21D3" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:9:18:E:
debacle> "X21CA" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:10:18:E:
debacle> "X21C3" is not a function name
debacle> jade:/usr/share/sgml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:11:18:E:
debacle> "X21C2" is not a function name

debacle> ...and so on.

debacle> I tried also openjade, but without success.

debacle> Is DSSSL outdated and I should use XSL?

This is a parsing issue, not a stylesheet issue.  You'd get the same
errors if you just validated the file by nsgmls (with the same
arguments).

What is happening is the wrapper you're trying to use doesn't pass the
correct SGML declaration (xml.dcl) down to jade.  I don't use these
wrappers myself, I just use nsgmls and jade directly.  I think you
should, too; it is not that complicated, and you get better control
(isn't that what Debian is about :)

For instance, this worksforme (perfectly):
jade -t sgml \
-d /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl \
/usr/lib/sgml/declaration/xml.dcl /usr/share/doc/docbook-xml/examples/3.1/test.xml

You'll notice I have an older version of the stylesheet, and the old
Debian (pre-lsb) setup, but I don't think that makes a difference.

-- 
Ian Zimmerman, Oakland, California, U.S.A.
The easiest way to win an argument: ridicule your opponent's basic
assumptions by stating their negation and postfixing it with ", right?"
GPG pub key: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087



Reply to: