【问题标题】:html_entity_decode() in xsl not decoding anythingxsl 中的 html_entity_decode() 不解码任何内容
【发布时间】:2011-05-04 16:13:42
【问题描述】:

我正在尝试执行以下操作

<div class="floatLeft">
    <xsl:attribute name="class"
                  >mainQuestionTextNoteBellowAsterisk floatLeft</xsl:attribute>
    <xsl:copy-of 
         select="php:functionString(
                    'html_entity_decode',
                    questionbody/child::node()
                 )"/>
    <xsl:text> </xsl:text>
</div>

我已经用其他字符串修饰符替换了'html_entity_decode',并且即使编码也能按预期工作,但是当我尝试解码字符串时,我得到了完全相同的字符串。有什么我想念的吗?下面是我用来处理 xml 的调用

$XSLTProc = new XSLTProcessor();
$XSLTProc->registerPHPFunctions();
$XSLTProc->importStyleSheet($xslDoc);

欢迎任何帮助!

谢谢

【问题讨论】:

    标签: php xml xslt


    【解决方案1】:

    我无法解决这个确切的问题,我是如何在处理之前对 xml 文件进行解码的。

    【讨论】:

      猜你喜欢
      • 2014-01-23
      • 2014-07-14
      • 2011-10-21
      • 1970-01-01
      • 1970-01-01
      • 2016-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多