Subject: Re: Displaying Images using MSXML
From: "Jennifer Hochgesang" <jenniferh@xxxxxxxxxxxxxx>
Date: Wed, 15 Aug 2001 10:04:41 -0500
|
This should work for you:
<img><xsl:attribute
name="src"><xsl:apply-templates/select="images/picture/filename"></xsl:attri
bute></img>
You can throw other html attributes for the image tag in there as well, ie
<img border="0" width="100" height="100"
alt="Starfish"><xsl:attribute...etc.
-jen
----- Original Message -----
From: "Sean Kelly" <sean@xxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 14, 2001 4:18 PM
Subject: Displaying Images using MSXML
> Hi all,
>
> a newbie question using MSXML.
> i'm wondering how i would go about transforming an xml file that holds an
> image's filename, to display that image. eg,
>
> <?xml version="1.0"?>
>
> <images>
> <picture>
> <filename>sunflower.jpg</filename>
> <text>a photgraph of a sunflower</text>
> </picture>
> <picture>
> <filename>starfish.gif</filename>
> <text>a photgraph of a starfish</text>
> </picture>
> </images>
>
> can anyone point me in the right direction on how i acheive this. i
> understand that an image in XSL the <IMG> tag needs to be closed ie. <IMG
> SRC="starfish.gif"/>
>
> thnx
> sean
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|