[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
Hi,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: http://www.sagehill.net/docbookxsl/index.htmlI 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:
http://www.sagehill.net/docbookxsl/CustomDb5Xsl.html Bob Stayton Sagehill Enterprises bobs@sagehill.net 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 xreftext? I've read and tried to implement the Customising Cross Reference Style section from: http://xml.web.cern.ch/XML/www.sagehill.net/xml/docbookxsl/GeneralCustoms.html 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:choose> <xsl:when test="$purpose = 'xref'"> <fo:inline font-style="italic"> <xsl:copy-of select="$title"/> </fo:inline> </xsl:when> <xsl:otherwise> <xsl:copy-of select="$title"/> </xsl:otherwise> </xsl:choose> </xsl:template> 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. Nat -------------------------------------------------------------- Hi, 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. Nat
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]