RE: including an jpg-file

Subject: RE: including an jpg-file
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Thu, 17 Feb 2000 10:34:59 -0000
What parser are you using? If it is MS, then you can't use the {} shorthand
in attributes...I think you can use the following, though:

<xsl:attribute name="src">\imagebase\<xsl:value-of
select="href"/></xsl:attribute>



> -----Original Message-----
> From: ergun.turker@xxxxxxxxxx [mailto:ergun.turker@xxxxxxxxxx]
> Sent: 17 February 2000 09:51
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: including an jpg-file
> 
> 
> 
> 
> 
> the xml part looks like:
>      <picture_rec>
>           <href>light.jpg</href>
>      </picture_rec>
> 
> 
> the xsl part:
>      <xsl:template match="picture_rec">
>           <img src="\imagebase\{href}"/>
>      </xsl:template>
> 
> I want the resulting html file to look like:
>      <img src="\imagebase\light.jpg" />
> 
> 
> But instead I'm getting: <img src="\imagebase\{href}" />
> 
> 
> Any ideas about what I'm doing wrong ?
> 
> TIA, Ergun
> 
> 
> 
> 
>  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