Subject: Re: XSL not working?
From: cutlass <cutlass@xxxxxxxxxxx>
Date: Fri, 19 Jan 2001 09:13:11 +0000
|
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
|