Re: [xep-support] Underlined hyperlinks in PDF output

From: Togan Muftuoglu (toganm@kemerkoy.k12.tr)
Date: Wed Jan 08 2003 - 09:05:58 PST

  • Next message: Kenneth J. Hughes: "[xep-support] Ant <xslfo/> task?"

    * Paul A. Hoadley; <paulh@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@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
    


    This archive was generated by hypermail 2.1.5 : Wed Jan 08 2003 - 09:01:06 PST