Yes, correct. So the DocBook-5-Version would be as follows:
<xsl:attribute-set name="xref.properties">
<xsl:attribute name="color">
<xsl:choose>
<xsl:when test="self::d:link and @xlink:href">blue</xsl:when>
<xsl:otherwise>inherit</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="text-decoration">
<xsl:choose>
<xsl:when test="self::d:link and
@xlink:href">underline</xsl:when>
<xsl:otherwise>inherit</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute-set>
Thanks!
Johannes
Am 03.12.2009 um 18:02 schrieb Bob Stayton:
> Yes, xref.properties usually affects all links. However, an xsl:choose
> statement inside the attribute body can be more selective, as the example in
> the referenced documentation shows.
>
> Bob Stayton
> Sagehill Enterprises
> [email protected]
>
>
> ----- Original Message ----- From: "Johannes Katelaan" <[email protected]>
> To: "Bob Stayton" <[email protected]>
> Cc: <[email protected]>
> Sent: Thursday, December 03, 2009 8:58 AM
> Subject: Re: [docbook-apps] DocBook 5 - different color for hyperlinks in PDF
> output
>
>
> Hi Bob,
>
> it's intended only for external links. I'm creating internal links using
> olink. These must not be affected by this customization. So I think I may not
> use xref.properties. Is this correct?
>
> Regards
>
> Johannes
>
> Am 03.12.2009 um 17:47 schrieb Bob Stayton:
>
>> Hi,
>> The attribute-set named 'xref.properties' is available to add properties
>> like color to links. See this reference:
>>
>> http://www.sagehill.net/docbookxsl/CustomXrefs.html#CustomXrefStyle
>>
>> However, it isn't clear from your message if you indent this for all links
>> or only links to external documents.
>>
>> Bob Stayton
>> Sagehill Enterprises
>> [email protected]
>>
>>
>> ----- Original Message ----- From: "Johannes Katelaan"
>> <[email protected]>
>> To: <[email protected]>
>> Sent: Thursday, December 03, 2009 5:47 AM
>> Subject: [docbook-apps] DocBook 5 - different color for hyperlinks in PDF
>> output
>>
>>
>>> Hi,
>>>
>>> how can I change the color of hyperlinks created with
>>> <link xlink:href="some url">text I want in different color</link>
>>>
>>> Johannes
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]