第一个问题我自己知道了
在xsl文件中加入
<xsl:output method="html" indent="yes" encoding="GB2312"/>

解决方案 »

  1.   

    第一个问题:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <xsl:output encoding="GB2312"/>
      <xsl:template match="article">
        <head>
          <meta http-equiv='Content-Type' content='text/html; charset=gb2312'/>
        </head>
        ...
      </xsl:template>
    </xsl:stylesheet>第二个问题:
    <xsl:value-of select="content" disable-output-escaping="yes"/>请给分。
      

  2.   

    nice...大感谢
    不过如果是<xsl:apply-templates/>这种情况下怎么和disable-output-escaping="yes"效果一样?