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: The XSL not working in IE5


Hi Farhan,
Sorry for the late reply. Didnt get a chance to check my mails yesterday.
Check this out... It works.
/* ************************************************ */
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">

<xsl:template match="Family">
<HTML>
    <HEAD>
    <title>FAMILY</title>
      <STYLE TYPE="text/css">
	p{ font-size:14pt; color="red" }
      </STYLE>
    </HEAD>
     <BODY>
   <xsl:apply-templates/>
     </BODY>
</HTML>
</xsl:template>

<xsl:template match="Members">
  <p> <xsl:value-of select="."/> </p>
</xsl:template>

</xsl:stylesheet>

/* ************************************************ */

The "." is the value of the text in the current context. In the above case, 
the "." is used to display the current context context text, i.e. in simple 
words, value of the current node being evaluated.

>From: "Farhan Sarwar" <sarwarfarhan@hotmail.com>

>
><?xml version = '1.0'?>
><?xml-stylesheet type = "text/xsl" href = "Family.xsl" ?>
><Family>
><Members>Salman</Members>
></Family>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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]