Dr. Laurence Leff
Usenet Archive
- Joined
- Jul 22, 2001
- Messages
- 10
- Reaction score
- 0
I am having trouble doing the basics with xmlto on Redhat to convert DocBook XML into the various files.
I believe the problem is the first line on the files:
Here is starter file (notes.xml):
<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <!ENTITY chap1 SYSTEM "chap1.xml"> <Book><title>CS310 notes</title></BOOK> &chap1;
Here is the chap1.xml file:
<!DOCTYPE Chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <Chapter id="ch1"><title>Binary Numbers and the Layers of Computer Organization</TITLE> <para> This course deals with several layers that are used to construct all computers. <orderedlist Numeration="Arabic"> <listitem> At the top is a ... stuff deleted to save space ...
</Chapter>
Here is the results when I try xmlto.
I couldn't get xmlto pdf notes.xml to work either.
Thanks for helping me get started with docbook by telling me what practical detail I neglected.
Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||(309) 298-1315 Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX: 309-298-2302
Secretary: The OASIS Legal XML Member Section Court Filing Technical Committee and Electronic Contracts Technical Committee
sh-2.05b$ xmlto -v ps notes.xml
Format script: /usr/share/xmlto/format/docbook/ps
Convert to XSL-FO
Stylesheet: http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl xsltproc --nonet --xinclude \
-o /tmp/xmlto.TFjwM6/notes.proc \
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl \ /home/leff/310/notes.xml /home/leff/310/notes.xml:1: error: Space required after the Public Identifier <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:1: error: SystemLiteral " or ' expected <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:1: error: xmlParseExternalID: PUBLIC, no URI <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:2: error: xmlParseStartTag: invalid element name <!ENTITY chap1 SYSTEM "chap1.xml"> ^ /home/leff/310/notes.xml:2: error: Extra content at the end of the document <!ENTITY chap1 SYSTEM "chap1.xml">
I believe the problem is the first line on the files:
Here is starter file (notes.xml):
<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <!ENTITY chap1 SYSTEM "chap1.xml"> <Book><title>CS310 notes</title></BOOK> &chap1;
Here is the chap1.xml file:
<!DOCTYPE Chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <Chapter id="ch1"><title>Binary Numbers and the Layers of Computer Organization</TITLE> <para> This course deals with several layers that are used to construct all computers. <orderedlist Numeration="Arabic"> <listitem> At the top is a ... stuff deleted to save space ...
</Chapter>
Here is the results when I try xmlto.
I couldn't get xmlto pdf notes.xml to work either.
Thanks for helping me get started with docbook by telling me what practical detail I neglected.
Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||(309) 298-1315 Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX: 309-298-2302
Secretary: The OASIS Legal XML Member Section Court Filing Technical Committee and Electronic Contracts Technical Committee
sh-2.05b$ xmlto -v ps notes.xml
Format script: /usr/share/xmlto/format/docbook/ps
Convert to XSL-FO
Stylesheet: http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl xsltproc --nonet --xinclude \
-o /tmp/xmlto.TFjwM6/notes.proc \
http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl \ /home/leff/310/notes.xml /home/leff/310/notes.xml:1: error: Space required after the Public Identifier <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:1: error: SystemLiteral " or ' expected <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:1: error: xmlParseExternalID: PUBLIC, no URI <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> ^ /home/leff/310/notes.xml:2: error: xmlParseStartTag: invalid element name <!ENTITY chap1 SYSTEM "chap1.xml"> ^ /home/leff/310/notes.xml:2: error: Extra content at the end of the document <!ENTITY chap1 SYSTEM "chap1.xml">