shawngiese at bluemail.ch wrote:
> I have had good success with making PDFs from complete docbook files 
> (book.xml)
> so I decided to break out the chapters as system entities so that I could
> make some different books with them.  Again, all is going fine EXCEPT hotlinks
> to sections that are now in different files. 
> 
> Previously link or xrefs resolved nicely but now they do not when I make
> the book.xml.  I read that olink might be the solution but try as I might
> I cannot get that to work (I made an olinkdb.xml, target.db is generated
> nicely for the entire book.xml) but for the life of me I cannot get FO 
> Convertor
> (and apache) to make PDF links with olink.
> 
> Are their any ideas on how to make internal links in a book.xml made up of
> various chapters.xml files?  I really like the xref solution as it auto 
> generates
> some nice text and even gave page numbers to the link (when links are in
> the same source chapter.xml).  Now those same xrefs give me the generated
> text (or even an xref label) but there is no page number and the link does
> not work (Acrobat says it is an empty link) when the linkend is in another
> chapter file being merged under a book.xml file.
> 

Here's what we do here at XMLmind. We don't know if it is kosher because
we are not DocBook zealots.

Example:

* book.xml contains chapter1.xml and chapter2.xml.

* chapter1.xml has a section #1 having id="sa" and section #2 having
id="sb".

* chapter2.xml has a section #1 having id="s1" and section #2 having
id="s2".

* I'm writing chapter3.xml (will be part of book.xml) and want to
reference section #1 of chapter1.xml. I use for example <link
linkend="sa">foo</link>.

* Then I want to reference section #2 of chapter2.xml. I use for example
  <xref linkend="s2"/>.

* Then I save chapter3.xml. XXE says that IDs "sa" and "s2" are not
found ***but I don't care***.

* Then I include chapter3.xml in book.xml using XXE (see
http://www.xmlmind.com/xmleditor/_distrib/doc/user/userguide3.html#id.s3)
and I save book.xml. And in this context, I make sure to have no
"unknown ID" error messages.

* I then convert book.xml to PDF and have no hotlink problems.

Reply via email to