看代码,没什么问题,加了header了么
<?header("Content-type: text/xml");?>

解决方案 »

  1.   

    qiushuiwuhen(秋水无恨):在哪里加???
      

  2.   

    sec.xsl:
    <?xml version="1.0" encoding="GB2312"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
    <xsl:template>
    <xsl:apply-templates/>
    </xsl:template><xsl:template match='HeadNav'>
    <xsl:for-each select="item">
    <xsl:value-of select="name"/>
    </xsl:for-each> 
    </xsl:template></xsl:stylesheet>