xsl-list
[Top] [All Lists]

Re: [xsl] fo basic link question

2009-11-10 22:57:03
I think I just figured it out:

<fo:basic-link  color="blue">
        <xsl:attribute name="external-destination">
         <xsl:text>uri(&quot;</xsl:text>
         <xsl:value-of select="Heading/@file"/>
          <xsl:text>&quot;)</xsl:text>
           </xsl:attribute>
           <xsl:value-of select="Heading"/>
 </fo:basic-link>
I think this works because uri("...") is not actually a function.
Mark

--------------------------------------------------
From: "Mark Wilson" <mark(_at_)knihtisk(_dot_)org>
Sent: Tuesday, November 10, 2009 7:12 PM
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] fo basic link question

Every example for building a uri("...") I can find always fills the parentheses with a quoted string, like uri("s.pdf"). I want to use the value of an attribute:

<fo:basic-link external-destination="url(Heading/@file)" color="blue">

Can I do that? If so, how?

Thanks,
Mark


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>