| From | Sent On | Attachments |
|---|---|---|
| Tim Casling | Apr 21, 2005 6:00 am | |
| Bob Stayton | Apr 21, 2005 9:43 am | |
| Tim Casling | Apr 21, 2005 12:50 pm | |
| Tim Casling | Apr 22, 2005 9:09 am | |
| Bob Stayton | Apr 22, 2005 10:06 am |
| Subject: | Re: [docbook-apps] book title in olink xref | |
|---|---|---|
| From: | Bob Stayton (bo...@sagehill.net) | |
| Date: | Apr 22, 2005 10:06:28 am | |
| List: | org.oasis-open.lists.docbook-apps | |
I agree, a reference to the book element should just give the book title.
Bob Stayton Sagehill Enterprises DocBook Consulting [1]bo...@sagehill.net
----- Original Message ----- From: Tim Casling To: [2]docb...@lists.oasis-open.org ; 'Bob Stayton' Sent: Friday, April 22, 2005 9:09 AM Subject: FW: [docbook-apps] book title in olink xref
Of course I spoke too soon. Although this solves the problem for building PDF, building Eclipse HTML from a set no longer works because by using xrefstyle select:docname, the xref is no longer being looked up from the olink target database and so uses the name of the set.
I think the fo stylesheet needs to be fixed so that, when referring to a book id, only the book part of the reference is generated.
Tim
------------------------------------------------------------------------------
From: Tim Casling [mailto:ti...@enigmatec.net] Sent: 21 April 2005 20:50 To: 'Bob Stayton'; docb...@lists.oasis-open.org Subject: RE: [docbook-apps] book title in olink xref
Thanks, that works. If I want to have just the document title rather than in doctitle, do I modify <l:template name="docname" text=" in %o"/> or do I create a new l:template?
------------------------------------------------------------------------------
From: Bob Stayton [mailto:bo...@sagehill.net] Sent: 21 April 2005 17:43 To: ti...@enigmatec.net; docb...@lists.oasis-open.org Subject: Re: [docbook-apps] book title in olink xref
Hi Tim,
I'm not sure what you mean by "select: nnnn", because the 'select' style uses keywords. In the olink chapter, I mention that olinks add two more possible keywords: docname and docnamelong. So this should work:
<olink role="select: docname" ...
Bob Stayton Sagehill Enterprises DocBook Consulting [3]bo...@sagehill.net
----- Original Message -----
From: [4]Tim Casling
To: [5]docb...@lists.oasis-open.org
Sent: Thursday, April 21, 2005 6:00 AM
Subject: [docbook-apps] book title in olink xref
Hi,
Using olinking Ive got <xsl:param name="olink.doctitle" select="yes"/> set because when Im referring to chapters or sections I want the xref text to indicate the name of the book in which the chapter or section lives.
However, this means that when I olink to a book id it gives a reference of the form: Installation Guide in Installation Guide. My first thought is that I want to suppress the in Installation Guide, but if all book titles are being italicized then I guess it is the first bit that I want to suppress and just have in Installation Guide.
Seems to me that this behaviour should be the default. What is the easiest way to fix this?
Im using Docbook 4.2, so Ive set use.role.as.xrefstyle on and tried to use a select: nnnn attribute to indicate precisely the cross-reference style I want. It didnt work, so I thought Id ask before delving any deeper.
Tim
References





