This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XLST including image in HTML transformation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]