Re: Help regarding XSL

Subject: Re: Help regarding XSL
From: "Saif Khaja" <ksaif25@xxxxxxxxxxx>
Date: Mon, 02 Oct 2000 15:20:14 PDT
Try this out...

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>


 <xsl:template match="/">
 <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>

From: "Farhan Sarwar" <sarwarfarhan@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Help regarding XSL
Date: Tue, 03 Oct 2000 01:06:27 PKT

Hello...
i have just started using XML and XSL can anyone tell me that what is the
purpose
of the select attribute in the <apply:template select=[somepattern]> further
i have'nt used
namespaces as i don't have the idea of it...how do we implement it...
i have made and XML and an XSL.....but its not displaying any results...
The XML file is as follows.


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

and the XSL file is

<?xml version = "1.0" ?>
<template match = "Family">
<html>
<Body>
		<font size = '14' color = 'RED'>
			<apply-templates/>
		</font>

</Body>
</html>
<template>


well i m expecting it to display Salman with color red and fint size = 14 but its not displaying any thing.


Thanks


Farhan.
_________________________________________________________________________
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

_________________________________________________________________________ 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



Current Thread