This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XLST including image in HTML transformation
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] XLST including image in HTML transformation
- From: Matt Gushee <mgushee at havenrock dot com>
- Date: Thu, 24 May 2001 14:42:55 -0600 (MDT)
- References: <F1423Uyn3p6ALZWUXHO00003e4e@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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