【发布时间】: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);
欢迎任何帮助!
谢谢
【问题讨论】: