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


Hi Dave,
I followed up with Michel Goossens, and now the content has been deleted. Thanks.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 2/2/2014 11:51 PM, davep wrote:
On Sun, 02 Feb 2014 20:38:23 -0800
Bob Stayton <bobs@sagehill.net> wrote:

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.html

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

They had copied the entire XSL FAQ at one time.

http://xml.web.cern.ch/XML/docbook.html#DOCBOOKFAQ  Now removed.

http://xml.web.cern.ch/XML/olddocs.html  lists the set of files they
have copied. Disgusting

The name at the bottom of the page is michel.goossens@cern.ch

DaveP



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


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org






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