[xep-support] Underlined hyperlinks in PDF output

Togan Muftuoglu toganm at kemerkoy.k12.tr
Wed Jan 8 09:05:58 PST 2003


* Paul A. Hoadley; <paulh at logicsquad.net> on 08 Jan, 2003 wrote:
>Hello,
>
>I'm using Norm Walsh's XSL stylesheets to generate XSLFO from Docbook
>XML.  XEP produces fine PDFs (via the PDF backend or PS then ps2pdf),
>with all hyperlinks included (e.g. from TOC into the text, and to
>targets of <link> tags), but they are all indistinguishable from
>normal text.  I'm not sure where in the toolchain I can specify the
>format of hyperlinks (for example, underlining or alternate colours)
>in the final PDF, though I can't find it in the Docbook stylesheet
>parameters.  Is this something I can specify with XEP?
>
>Thanks for any advice.

This is what I have in my custom template it works for XEP and FOP 

<!--colored and hyphenated links -->
<xsl:template match="ulink">
<fo:basic-link external-destination="{@url}"
        xsl:use-attribute-sets="xref.properties"
        text-decoration="underline"
        color="blue"> 
        <xsl:choose>
        <xsl:when test="count(child::node())=0">
        <xsl:value-of select="@url"/>
        </xsl:when>
        <xsl:otherwise>
        <xsl:apply-templates/>
        </xsl:otherwise>
        </xsl:choose>
        </fo:basic-link>
</xsl:template>


-- 

Togan Muftuoglu

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list