This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Re: One TOC and one glossary for multiple docbook XML files


> From : Bob Stayton [mailto:bobs at sco dot com] 
>
> Since you are using olinks, you could use the olink targets
> database to create a master table of contents.  One could
> write an XSL stylesheet that generates a DocBook <toc>
> with <tocentry> elements from the database, following the DocBook DTD
> for <toc>.

Yes. The only problem is that the master target database does not have
any information related to order of documents. It only describes the
directories structure.
Thus, without this knowledge of how documents must be chained (I mean:
which XML should be the preface, which one the first chapter, etc...),
the main TOC would have a structure that follows the directory
structures, and not the chapters order...
I miss something: a document that contains both information (which XML
to proceed, their identifier, where to create the HTML, and how HTML
should be ordered in the main TOC).
Hum...

I also thought about a main document which would include the other ones.
A book, for example, with a structure like this one:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";>
<book id="onlyone" xmlns:xi="http://www.w3.org/2001/XInclude";>
  <title>The main doc</title>
  <xi:include href="xmldocs/doc1.xml" />
  <xi:include href="xmldocs/doc2.xml" />
  <xi:include href="xmldocs/doc3.xml" />
</book>

But in such a case, I have two problems:
- my original XML docs have sections with identifiers, and I do not know
if this identifier is unique once merged into my main document. In fact,
as many of my XML documents share the same internal structure, they do
use the same sections identifiers.
- the olinks would not work anymore.

Hum again...

I do not have any idea about the master glossary document. Should I
write glossary entries directly inside it, with olinks ? Or should I
collect local glossaries among my XML docs in order to build the master
glossary ??


Yan

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]