This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Tue, 28 Nov 2000 12:17:18 -0800


Hi Monica,

This is the sample stylesheet to include <IMG> tags :

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:processing-instruction
name="cocoon-format">type="text/html"</xsl:processing-instruction>
  <html>
  <head>
  <title><bla...bla></title>
  </head>  
  <body BGCOLOR="#BBBBBB" background="bla.gif" text="blue">
  <img src="bla.jpg"> </img> 
  <xsl:apply-templates/> 
  </body> 
  </html>
  </xsl:template>
 <xsl:template match="article1/title">
<p><b><h2><I><xsl:apply-templates/></I></h2></b></p>
</xsl:template>
<xsl:template match="link">
<A>
 <xsl:attribute name="href">
  <xsl:value-of select="@href"/>
    </xsl:attribute>
   <p><b><h2><I><xsl:value-of select="."/></I></h2></b></p>
  </A>
</xsl:template>  
</xsl:stylesheet> 

It is working fine on any browser..

Regards,
Vinay Jaiswal
Cognizant Technology  solutions, India

- -----Original Message-----
From: Monica Gupta [mailto:monica@oncr.com]
Sent: Tuesday, November 28, 2000 2:17 PM
To: XSL-List@mulberrytech.com
Subject: 


Hi all,

I am new to XSL. I wanted to know how we can include <IMG> tags in our
stylesheet.
can anyone explain with a small example.

Thanks

Monica



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

		Visit us at http://www.cognizant.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]