W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2004

Re: basic-link

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 10 Sep 2004 14:44:00 +0100
Message-Id: <200409101344.OAA26335@penguin.nag.co.uk>
To: Didier.BOISSINOT@darva.fr
CC: www-xsl-fo@w3.org

  How could i read a variable in the basic-link object ?
  <fo:basic-link external-destination="$strCodeGTA"/>

FO itself doesn't have variables. Assuming that this is an Xpath
variable and you are generating the FO in an XSLT stylesheet, the
attribuute of any literal result element is an attribute value template
and Xpath expressions will be evaluated if they are surrounded by {} so
you would use

  <fo:basic-link external-destination="{$strCodeGTA}"/>
                                       ^           ^
                                       ^           ^

The generated FO would then have the value of that variable as its 
external-destination attribute.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Friday, 10 September 2004 13:58:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC