Thanks Bob, Chris,

At least I see what the expected behavior is.

No doubt a problem somewhere in my own code.

Mark



On Fri, May 2, 2014 at 7:53 PM, Bob Stayton <b...@sagehill.net> wrote:

> Hi Mark,
> Unless I'm misunderstanding what you are trying to do,
> it should already work that way.  That is, if you are setting
> activate.external.olinks to zero, then the external olinks should render as
> plain text and not be formatted with the xref.properties attribute-set.
>  The xref.properties attribute-set is only applied when fo:basic-link is
> being output with @internal-destination, or if the element is an actual
> xref which also generates that output.
>
> I just tried it with 1.78.1 and setting:
>
> <xsl:param name="activate.external.olinks" select="0"/>
> <xsl:param name="current.docid">shortbook</xsl:param>
>
>
> <xsl:attribute-set name="xref.properties">
>   <xsl:attribute name="color">#47a</xsl:attribute>
> </xsl:attribute-set>
>
> In my PDF, the internal olinks are colored, but my external olinks are not
> (and are not active).
>
> Bob Stayton
> Sagehill Enterprises
> b...@sagehill.net
>
>
> On 5/2/2014 12:07 AM, Mark Craig wrote:
>
>> Hello,
>>
>> What is the right way with the 1.78.1 stylesheets to color only internal
>> links in FO?
>>
>> I'd like to deactivate external olinks in PDF output with
>> activate.external.olinks, and then leave external links the same color as
>> surrounding text, but keep color on internal links (and URLs) because
>> without visual cues it can be difficult to notice that they're active.
>>
>> At present I'm using the following customization, loosely based on
>> http://www.sagehill.net/docbookxsl/OlinkFormatting.html:
>>
>>    <xsl:attribute-set name="xref.properties">
>>      <xsl:attribute name="color">#47a</xsl:attribute>
>>    </xsl:attribute-set>
>>
>> This makes all the links blue... unfortunately including deactivated
>> external olinks.
>>
>> I have tried setting olink.properties, too, with #000 as the color, but I
>> still see blue text in the PDF output for all links, including deactivated
>> external links.
>>
>> Asking authors to add more attributes to external links is something I'd
>> like to avoid.
>>
>> Thanks in advance for your time and your help.
>>
>> Regards,
>> Mark
>>
>>

Reply via email to