Bug 19819 - is it possible to have external link in the XSL FO not hardcoded
Summary: is it possible to have external link in the XSL FO not hardcoded
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: all
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-10 05:35 UTC by Marcel Bougie
Modified: 2012-04-01 13:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Bougie 2003-05-10 05:35:54 UTC
I would like to know if i can use a variable when setting the external link in 
my XSL FO file??
i.e.

 <xsl:sort  select="actionnum"/>					
<xsl:variable name="link" select="concat('http://www.somelink.com?
action=',actionnum)"/> ???

<fo:basic-link external-destination=link  text-decoration="underline" 
color="blue">
 link
</fo:basic-link>

Does the link have to be hardcoded in the XSL FO ????
Comment 1 Jeremias Maerki 2003-05-10 08:18:01 UTC
Please don't use bugzilla for asking questions. That's what the mailing lists 
are for. It's not even a FOP- or XSL-FO-related question, but XSLT. Thank you.

<xsl:variable name="link" select="concat('http://www.somelink.com?
action=',actionnum)"/>

<fo:basic-link text-decoration="underline" color="blue">
  <xsl:attribute name="external-destination">
    <xsl:value-of select="$link"/>
  </xsl:attribute
 <xsl:value-of select="$link"/>
</fo:basic-link>

Get yourself a good XSLT book: 
http://xml.apache.org/fop/resources.html#documents-xslt
Comment 2 Glenn Adams 2012-04-01 13:53:53 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs