RE: Incorrect output with Firefox when using xmlns attribute

[email protected] Sun, 16 Sep 2007 23:21:20 -0000
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
Hopefully someone can help me with this. I will use a xhtml namespace
as an example. Lets say I have the following xml file:

<?xml-stylesheet type="text/xml" href="file.xslt"?>
<html><!-- this breaks if i add xmlns="http://www.w3.org/1999/xhtml" --
>
  <head>
    <title>Title</title>
  </head>
  <body>
    <div>Yaddah</div>
  </body>
</html>

and I use the following xslt file:
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
version = "1.0" >
  <xsl:output method = "text" />
  <xsl:template match = "/" >a
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="head">b
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="title">c
    Title: <xsl:value-of select="."/>
  </xsl:template>
</xsl:stylesheet>

When I use Firefox to open the xml file it works properly when I dont
have the xmlns attribute, but it only shows "a" on the screen when I
do include it. This tells me that match="/" works in both cases but
match="head" does not. Why is this?