[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Checking for different types of links (xref vs link/linkend vs link/href)
Hi Janice,Regarding your customization, are you using DocBook 5? If so, then the element name needs a d: namespace prefix in front of it.
<xsl:when test="self::d:xref">blue</xsl:when> You also mentioned wanting link/href links to have blue, so that would be: test="self::d:link[@xlink:href]"Regarding olinks not working in webhelp, I believe that was fixed. See the last comment in this bug report:
http://sourceforge.net/p/docbook/bugs/1217/ Bob Stayton Sagehill Enterprises bobs@sagehill.net On 10/28/2014 5:02 AM, Janice Manwiller wrote:
Is there a way in the customization layer to check for different types of links? What I want to do is in PDFs, do the following: - For xref links (links within a guide) and link/href links (links to websites), do the standard blue link text - For link/linkend links (links to other guides), do not have any formatting. The reason for this is that for our PDF output, where each guide is a separate file, the links between guides do not work. They're currently formatted as links, but aren't clickable. In the WebHelp output, which is generated as a single collection, the links do work, so I want to leave them as links in the source file. I know that olinks are designed to be used for links between documents, but my understanding is that olinks do not work in WebHelp output. I tried a workaround in the FO XSL file where only xref links were blue: <xsl:attribute-setname="xref.properties"> <xsl:attributename="color"> <xsl:choose> <xsl:when test="self::xref">blue</xsl:when> <xsl:otherwise>inherit</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set> But ended up with no formatting on any links. Thanks, Janice
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]