OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] XIncludes, olinks and the xref database

I have an idea how to solve this. The current olink mechanism has a language
fallback feature that is described here:


If an olink target is not available in the current language (because the
target has not be translated to it), then you can tell the stylesheet to
search through instances of the same targetdoc in other languages, from a
list of languages you specify.  I tried your example by mocking up phony
languages for the two books, and got all the links to work between the two

But it would not be right to use the language feature for your purpose.
Something like it should be implemented to permit a fallback sequence for a
target when it isn't found where first expected.  If you are interested, I
could send you details off-list of what I did and how this might be extended
to handle your case.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Gerd v. Egidy" <lists@egidy.de>
To: <docbook-apps@lists.oasis-open.org>
Cc: "Bob Stayton" <bobs@sagehill.net>
Sent: Thursday, July 21, 2005 11:57 AM
Subject: Re: [docbook-apps] XIncludes, olinks and the xref database

> Hi Bob,
> thanks for your quick reply.
> > I didn't mean that chapters in a book should each have their own data
> > Can you point to where I suggested that?  The separate data files were
> > separate books when external xrefs were being used.  If I implied it for
> > chapters, I need to clarify that. Your solution to create one data file
> > the book with resolved XIncludes was the right one.
> Hmm. Seems like I misunderstood that part. There is a section about "How
> link between documents" but nothing about "How to link within modular
> documents". So I thought that was the only way to handle that. When I read
> "Modular cross referencing" in Chapter 22 I didn't know anything about
> and target databases. So didn't really understand what you were talking
> about.
> > The second problem is not quite clear to me.  Are you reusing the same
> > chapter files in multiple books, with each book having different
> > combinations of chapters?
> correct.
> > And in some cases you want the olinks to resolve
> > to the internal target and in other cases to resolve to another book?
> Yes. Depending if the target is within the same book or not. If you have
> external links aren't such a problem. But there is a big difference
> internal/external for pdf.
> An Example:
> Chapter A, contains a olink to somewhere in Chapter B
> Chapter B, contains a olink to somewhere in Chapter C
> Chapter C, contains a olink to somewhere in Chapter A
> Book 1 contains Chapter A + B
> Link A -> B should be internal
> Link B -> C should be external
> Book 2 contains Chapter A + C
> Link A -> B should be external
> Link C -> A should be internal
> I don't care to recreate target.dbs every time or have a different
> for each book. But I don't want to change the olinks in the chapters for
> book.
> Do you have an idea how to solve this?
> Kind regards,
> Gerd
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]