Thanks!
Chris Bowditch <[EMAIL PROTECTED] otmail.com> To [EMAIL PROTECTED] 12/21/2004 09:50 cc AM Subject --- Potential SPAM ---: Re: Image Please respond to Problem in FOP url(...) [EMAIL PROTECTED] he.org [EMAIL PROTECTED] wrote: > I am trying to resolve my images dynamically. When I perform the > following: > <fo:block> > <xsl:variable name="pic" select="../[EMAIL PROTECTED]"/> > <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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]