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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: [docbook] (non hot-linked) olink reference to book in PDF format

That worked a treat, thanks. I had googled customising cross references and wasn't paying enough attention to where I landed. Will in future.


On Mon, Feb 3, 2014 at 3:38 PM, Bob Stayton <bobs@sagehill.net> wrote:
The book at xml.web.cern.ch is the early first draft of my book DocBook XSL: The Complete Guide. The cern version is quite out of date.
Please use this 4th Edition instead:


I have asked Cern to take down that version, but have not reached the right person, I guess.

Regarding your question, are you using DocBook 4 or 5?  If 5, then your templates need to include the DocBook namespace on element names, such as d:book.  See this page for more information:


Bob Stayton
Sagehill Enterprises

On 2/2/2014 7:08 PM, natk wrote:
(I originally mistakenly posted this to docbook-apps)

I've looked into this further, and I have managed to customise the xref
text using the gentext templates. My next question is how do I format the

I've read and tried to implement the Customising Cross Reference Style
section from:

by adding the following template to my FO customisation layer:

   <xsl:template match="book" mode="insert.title.markup">
     <xsl:param name="purpose"/>
     <xsl:param name="xrefstyle"/>
     <xsl:param name="title"/>

       <xsl:when test="$purpose = 'xref'">
         <fo:inline font-style="italic">
           <xsl:copy-of select="$title"/>
         <xsl:copy-of select="$title"/>

but this template does not seem to be having any effect. Any tips as to
what I am doing wrong here?

I can see that the chapter and appendix xreftext are italicized (from the
standard templates in xref.xsl), but I can't get the same thing to happen
for the book elements.



I'm trying to link between books (without hot-links).

The text that is generated for everything but the top-level books is fine.
It renders Refer to <olink targetdoc="bookDocId" targetptr="section"/> as
Refer to Section x,y, "Title" in Book Title.

But when I olink to the book itself: Refer to <olink targetdoc="bookDocId"
targetptr="bookId"> there is no fo:inline element, it just renders the book
title: Refer to Book Title.

Is there some configuration or customisation that I can do to get this to
render as something like Refer to Document "Book Title".

I'm using docbkx 2.0.15 which uses version 1.78.1 of the stylesheets.


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