xsl-list
[Top] [All Lists]

xsl display graphic from xml

2005-04-07 10:29:16
I am trying to get a graphic who's path is stored in
my xml file.  I can hard code the graphic path in my
xsl file and this bit of code works but hard coding is
notever that way to go. Can someone give me a
statement that will display the graphic that is not a
hardcoded url? I want to get the string returned from
the template logo and use it for the url.  Ideas? 
This is what I have.

<xsl:template name="logo">
        <xsl:value-of select="invoice/images/logo"/>
</xsl:template>

<xsl:template name="getLogo">
        <fo:external-graphic src="url( D:\simple\logo.jpg)"/>
</xsl:template>


Thanks!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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>