img tags in an xsl is really not that different from a html page. You need
to remember to close the tag though. For example:
<img src="../com-images/transparent.gif" border = "0"/>
If you want to pull the src from xml, then you need to use <xsl:element> and
<xsl:attribute> tags as well, as follows:
<xsl:element name="IMG">
<xsl:attribute name="src"><xsl:value-of
select="filename"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
Gareth Suarez
gareths@xxxxxxxx
-----Original Message-----
From: Monica Gupta [mailto:monica@xxxxxxxx]
Sent: Tuesday, November 28, 2000 2:17 PM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject:
Hi all,
I am new to XSL. I wanted to know how we can include <IMG> tags in our
stylesheet.
can anyone explain with a small example.
Thanks
Monica
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE:
- GarethS - Tue, 28 Nov 2000 13:30:41 -0600 <=
|
|