This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL not working?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] XSL not working?
- From: cutlass <cutlass at secure0 dot com>
- Date: Fri, 19 Jan 2001 09:13:11 +0000
- References: <a05001908b68d2d39b6bb@[192.168.254.9]>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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