Strange XML
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Results</title> <not>hi</not> </head> <body> <results>hello</results> </body> </html>
This is my very simple XML document
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myNS="http://devedge.netscape.com/2002/de">
<xsl:output method="html" />
<xsl:template match="html"> <xsl:for-each select="head"> <xsl:value-of select="." /> </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
This is my very simple XSL document which should display the contents of html/head in the source document. Instead though, it gives me everything contained in the document - anything located anywhere, so in this case my output is Results hi hello rather than just Results hi.
Can anyone think why it's printing off everything? I've never come accross this before.
Started By captain92939 on Mar 24, 2005 at 3:19:10 AM |