Subject: XLST including image in HTML transformation
From: Matt Gushee <mgushee@xxxxxxxxxxxxx>
Date: Thu, 24 May 2001 14:42:55 -0600 (MDT)
|
gary cor writes:
> I hope someone can help. I have the URI of an image file inside an element
Oh, inside an element. You mean something like this?
<graphic>
images/foo.jpg
</graphic>
In that case you probably want something like:
<xsl:template match="graphic">
<IMG SRC="{normalize-space()"}/>
</xsl:template>
normalize-space() strips any leading and trailing whitespace. With no
arguments, it is applied to the string value of the current node.
Matt Gushee
Englewood, CO, USA
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|