You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Noel Golding <no...@spearreport.com> on 2002/10/22 22:53:51 UTC
external-link not getting created in pdf.
I am having some trouble creating a hyperlink in my pdf document. The
snippets below show the code I am trying to use, however the link does not
get created and I do not get any warning messages when trying to create the
pdf. I am sure I am doing something wrong. Thanks for helping an ignorant
guy.
--XML snip--
<hyperlink url="http://www.spearreport.com/chat">
http://www.spearreport.com/chat
</hyperlink>
-- XSLT --
<xsl:template match="hyperlink">
<xsl:param name="url"><xsl:value-of select="@url"/></xsl:param>
<fo:basic-link external-destination="url('{$url}')">
<xsl:apply-templates/>
</fo:basic-link>
</xsl:template>
Thanks
Noel
Re: external-link not getting created in pdf.
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Noel Golding wrote:
> I am having some trouble creating a hyperlink in my pdf document. The
> snippets below show the code I am trying to use, however the link does not
> get created and I do not get any warning messages when trying to create the
> pdf.
> <xsl:template match="hyperlink">
> <xsl:param name="url"><xsl:value-of select="@url"/></xsl:param>
> <fo:basic-link external-destination="url('{$url}')">
> <xsl:apply-templates/>
> </fo:basic-link>
> </xsl:template>
I think you must not use the url() wrapper:
<fo:basic-link external-destination="{$url}">
J.Pietschmann