Re: XSLT in Mozilla
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
I can get simple text to output onto the html form, but I seem to have
trouble with the apply-templates in mozilla... Here's a reduced xsl
file
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.w3.org/1999/xhtml/">
<xsl:output
method="html">
<!-- Root template -->
<xsl:template match="/">
<html>
<head>
<title>Node Statistics</title>
<link href="StatsReport2.css" type="text/css" rel="stylesheet"/>
</head>
<body>
test2<br/>
<xsl:apply-templates select="StatsReport"/><br/>
test3
</body>
</html>
</xsl:template>
<!-- StatsReport template -->
<xsl:template match="StatsReport">
<b>test?</b>
</xsl:template>
<./xsl:stylesheet>
what gets outputted is only:
test2
test3
i have no idea why it doesn't seem to apply the templates in mozilla...
anyone have an idea what i'm doing wrong here?