Hey all,
I'm really green with the whole XML scene. I've been doing the whole
tutorial and book thing for a bit and have been trying rather unsuccessfully
to get an XSL file to display with data from an associated XML file.
Today I cracked open another book, did a bunch of reading and started very
simply. Here is the XML file I am working with (it's a file called,
originally enough, "test.xml"):
<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="chewy.xsl"?>
<document>
<quality>
knees
</quality>
</document>
The XSL file (chewy.xsl) that I'm trying to get the data from the above
displayed in looks like this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/tr/wd-xsl">
<xsl:template match="/">
<html>
<head>
<title></title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
Head...shoulders...
<xsl:for-each select="quality">
<xsl:value-of select="quality"/>
</xsl:for-each>
...and toes...
</body>
</html>
</xsl:template>
</xsl:stylesheet>
When I view the XSL file in Netscape (v6) I see the HTML without the XML
data. When I view the XSL file in MIE 5.5 I get the source code.
I know I'm missing something really simple here. Can someone point out where
I'm screwing this up? Thanks much,
B