OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   problem

[ Lists Home | Date Index | Thread Index ]
  • From: jayadeva@lgsi.co.in (Jayadeva Babu Gali)
  • To: xml-dev@ic.ac.uk
  • Date: Mon, 08 Feb 1999 18:21:58 +0530

hi,

how can i call the image (.gif) from XML file  through xsl   i have
written the like below but xml file whe i called from MSIEBeta5 it is
not displaying the images. All files is in the same directory with gif's
also.

/******    xml  file   *****/
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="test.xsl"?>
<items>

  <item>
    <param>picture1</param>
    <picture>green-ball.gif</picture>
  </item>

  <item>
    <param>picture2</param>
    <picture>yellow-ball.gif</picture>
  </item>

</items>


/**************  xsl file   ***********/
<?xml version="1.0"?>
<xsl:stylesheet
       xmlns:xsl="http://www.w3.org/TR/WD-xsl"
       xmlns="http://www.w3.org/TR/REC-html40"
       result-ns="">
<xsl:template match="/">
<table>
<xsl:for-each select="items/item">
  <tr>
    <td>
          <xsl:value-of select="param"/>
    </td>
    <td>
      <img>
        <xsl:attribute>   <xsl:value-of select="picture"/>
</xsl:attribute>
      </img>
    </td>
  </tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>


regds.....jayadev


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS