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: XSL not working?


add version="1.0" to xsl:stylesheet tag

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

but not sure if this is exactly your problem, if u give an example of 
your xml file can help more,

cheers, jim fuller

> 
> Hey y'all? Do you see anything wrong with the following code? I am trying
> to create a simple stylesheet but it is not working.
> 
> Here:
> 
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
>   <xsl:template match="guide">
>     <html>
>       <head>
>         <title>
>     <xsl:value-of select="title" />
>   </title>
>       </head>
>       <body>
>         <xsl:apply-templates select="*[not(self::title)]" />
>       </body>
>     </html>
>   </xsl:template>
> 
>   <xsl:template match="contents">
>     <center>
>      <h3>Welcome to the Intranet</h3>
>     </center>
>     <hr />
>     <ul>
>      <xsl:for-each select="chapter">
>         <li><xsl:value-of select="heading" /> </li>
>   <xsl:apply-templates />
>      </xsl:for-each>
>     </ul>
>   </xsl:template>
> 
> </xsl:stylesheet>






> 
> Thanks!
> 
> 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]