Re: [xsl] Problems with tag <img src = > -- XSLT

Subject: Re: [xsl] Problems with tag <img src = > -- XSLT
From: Steve <subsume@xxxxxxxxx>
Date: Fri, 4 Aug 2006 15:34:36 -0400
<xsl:attribute name="src"><xsl:value-of

Is what what you're lookin' for?


On 8/4/06, Luana Knoff <lua.knoff@xxxxxxxxx> wrote:
Hi all,

I have a doubt using XSLT. I made a stylesheet to transform a XHTML
document into WML, but now I would like to let the images (.JPG and
others) in my WML to make some others test, but I am not able to do

I need: <img src="IMG_arquivos/site.jpg" />

But my transformations just let the "IMG_arquivos/site.jpg", like a
text. How can I put the

tag <img src = > ?

My code is:

<xsl:template match="img">
            <xsl:when test="parent::a or parent::p or parent::td">
                <xsl:value-of select="@src"/>
<!--there is something to put here?-->
        </xsl:template> -->

Is it possible?
Any hints are welcome.


Current Thread