|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Displaying Images using MSXML
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








