Novice - trying to get started with docbook
- From: Jim Anderson <ezjab@xxxxxxxx>
- Date: Tue, 07 Feb 2006 09:55:29 GMT
This is my first attempt at XML documentation.
I'm trying to get started with docbook so I can put a set
of documentation into docbook tags. I'm using 'XML In A
Nutshell" and "DocBook The Definitive Guide", both of which
are a bit outdated already.
I have a simple file that parses, but when I read it into
Netscape or Konqueror, I do not get the results that I would
hope for.
First, I'm not sure that the browsers are picking up
the referenced dtd file with the URL:
http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd
I'm opening the a local file, 'book.xml' in each of the browsers.
This file should be reading the local file, 'chap1.xml'. I'm
attaching both files.
In netscape I get the following results:
_________________________________________
This XML file does not appear to have any style information associated with it. The document tree is shown below.
- <book>
<title>My First Book</title>
<chapter>Chapter 2</chapter>
<chapter>Chapter 3</chapter>
</book>
_________________________________________
In Konqueror I get these results:
_________________________________________
Chapter 2Chapter 3
_________________________________________
Netscape simply displays the xml tags, implying it did
not know how to interpret them. Konqueror seems to have
digested the tags, implying they are legitimate tags and
also implying that it read the dtd. But there is no
formatting for the 'chapters', so this implys Konqueror
did not really handle the dtd.
My questions are as follows:
How do I know if the docbookx.dtd is actually being read?
Do I need to use a different xml processor?
Jim Anderson <?xml version='1.0' ?>
<!DOCTYPE Book SYSTEM "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY chap1 SYSTEM "chap1.xml">
]>
<book>
<title>My First Book</title>
&chap1;
<chapter>Chapter 2</chapter>
<chapter>Chapter 3</chapter>
</book>
<chapter>
This is from 'chap1.xml' file.
</chapter>
- Follow-Ups:
- Re: Novice - trying to get started with docbook
- From: Henry S. Thompson
- Re: Novice - trying to get started with docbook
- From: Andy Dingley
- Re: Novice - trying to get started with docbook
- Prev by Date: Parsing through XSL and Retriving data
- Next by Date: Re: Adding new attributes to schema
- Previous by thread: Parsing through XSL and Retriving data
- Next by thread: Re: Novice - trying to get started with docbook
- Index(es):
Relevant Pages
|