Thanks J., newbie mistake... I get frustrated with the differences between declaritive and procedural languages and I vent a little too much. Having been away from XSLT for a time, then coming back to it, there are new topics to learn every day. I thank you all for providing myself and the larger community with your expertise and advice.
Curtis "J.Pietschmann" <[EMAIL PROTECTED] e> To [EMAIL PROTECTED] 12/21/2004 04:27 cc PM 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. ... > <fo:external-graphic src="url("$pic")" content-height="201in" > scaling="uniform"></fo:external-graphic> > Image= <xsl:value-of select="$pic"/> ... > I get this from Xalan: ... > <fo:external-graphic scaling="uniform" content-height="201in" src=" > url("$pic")"/> ... > I know this is a Xalan issue ... > I have searched high and low in the Xalan > and FOP Apache bug lists, Wrong place to look, Xalan works as designed here. It is more an issue about your understanding how XSLT works. The src="url("$pic")" is copied through to the output literally, exactly as the spec says. XSLT is not a macro language where everything prefixed with a $ is substituted or somesuch. If you want to have $pic evaluated in other places than select and test attributes of certain XSLT elements, you have to say so explicitely. In your case, the magic is named "attribute value template" or short AVT (google it), and it means that parts of attribute values which are enclosed in braces are evaluated as XPath expressions. More specifically, use <fo:external-graphic src="url("{$pic}")" ... ^ ^ Check your favorite XSLT book or online tutorial for details. J.Pietschmann --------------------------------------------------------------------- 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]