[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
This is to Saif...
Well Thanks Saif....for the reply...
but my problem has'nt been solved yet....
its still not displaying anything....but one more thing is like if i
hard code any string in b/w the <p> <xsl:value-of select ="."/> then it
does display this the harcoded string.in red color and font
specified....like if lets say i write <p>Farhan<xsl:value-of select="."/>
then it displays Farhan in red color...
well to be more specific....the XML is
<?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"?>
<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>
please help me out with this....
Thanks......
One more thing Saif what is the . in select ="." means....
Bye...
will wait for ur reply...
From: "Saif Khaja" <ksaif25@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: Help regarding XSL
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
_________________________________________________________________________
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|