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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: problem

[ Lists Home | Date Index | Thread Index ]
  • From: Shekhar Kshirsagar <skshirsa@nortelnetworks.com>
  • To: xml-dev@ic.ac.uk
  • Date: Mon, 08 Feb 1999 09:20:33 -0500

Hi,

In your XSL style sheet attribute name (SRC) was missing.

Here is the correct XSL rule :

<img>
	<xsl:attribute name="SRC">   
		<xsl:value-of select="picture"/>
	</xsl:attribute>
</img>


Thanks & Regards,
Shekhar Kshirsagar
Nortel Networks.


At 06:21 PM 2/8/99 +0530, Jayadeva Babu Gali wrote:
>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)
>
>

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