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: Help regarding XSL


Try this out:

If you are using IE 5 browser use this namespace:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" version="1.0">

Note: This namespace is quite old and maybe obselete too. You need to
upgrade
to new MSXML parser. If you have already upgraded to new MSXML parser then
you could use this namespace:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="/">
 <html>
  <body>
   <xsl:apply-templates select="family"/>
  </body>
 </html>
</xsl:template>

<xsl:template match="family">
 <font face="arial" size="14" color="red">
  <xsl:value-of select="Members"/>
 </font>
</xsl:template>

I hope this helps.

...Rohit







----- Original Message -----
From: Farhan Sarwar <sarwarfarhan@hotmail.com>
To: <xsl-list@mulberrytech.com>
Sent: Tuesday, October 03, 2000 6:36 AM
Subject: Help regarding XSL


> 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
>


 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]