[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problems with tag <img src = > -- XSLT

Subject: RE: Problems with tag <img src = > -- XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 4 Aug 2006 20:57:05 +0100
img sr
You just want 

<img src="{@src}"/>

You could probably replace your whole template with

<xsl:template match="a/img | p/img | td/img">
  <xsl:copy-of select="."/>

<xsl:template match="img"/>

Michael Kay

> -----Original Message-----
> From: Luana Knoff [mailto:lua.knoff@xxxxxxxxx] 
> Sent: 04 August 2006 20:23
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Problems with tag <img src = > -- XSLT
> 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 it.
> 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:choose>
> 	    <xsl:when test="parent::a or parent::p or parent::td">
> 		<xsl:value-of select="@src"/>	
> <!--there is something to put here?-->
> 	    </xsl:when>
> 	    <xsl:otherwise>
> 	    </xsl:otherwise>
> 	  </xsl:choose>
> 	</xsl:template> -->
> Is it possible?
> Any hints are welcome.
> Luana

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.