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 cf...@kcp.com on 2004/12/21 17:16:26 UTC
Re: --- Potential SPAM ---: Re: Image Problem in FOP url(...)
Thanks!
Chris Bowditch
<bowditch_chris@h
otmail.com> To
fop-user@xml.apache.org
12/21/2004 09:50 cc
AM
Subject
--- Potential SPAM ---: Re: Image
Please respond to Problem in FOP url(...)
fop-user@xml.apac
he.org
cfisher@kcp.com wrote:
> I am trying to resolve my images dynamically. When I perform the
> following:
> <fo:block>
> <xsl:variable name="pic" select="../Image[@larger]"/>
> <fo:external-graphic src="url("$pic")" content-height="201in"
> scaling="uniform"></fo:external-graphic>
> Image= <xsl:value-of select="$pic"/>
> </fo:block>
Variables inside an attribute are not resolved by default, in xsl terms you
have to use an attribute template: this means just put {} around the
variable,
e.g.
<fo:external-graphic src="url('{$pic}')"/>
I have just used single quotes instead of trying to use $quot; entity as
its
easier. Note that content-height doesnt have any effect in FOP 0.20.5.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org