Jim Anderson
Usenet Archive
- Joined
- Oct 13, 2003
- Messages
- 18
- Reaction score
- 0
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
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