开发者

html_entity_decode() in xsl not decoding anything

开发者 https://www.devze.com 2023-03-03 10:54 出处:网络
I am attempting to do the following <div class=\"floatLeft\"> <xsl:attribute name=\"class\" >mainQuestionTextNoteBellowAsterisk floatLeft</xsl:attribute>

I am attempting to do the following

<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>

I have replaced 'html_entity_decode' with other string modifiers and works as expected even encoding, but when I try to decode the string I get the exact same string. Is there something I am 开发者_开发技巧missing? below is the call I am using to process the xml

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

Any help is welcomed!

Thanks


I was unable to solve this exact problem, how ever I just decoded the xml file before processing.

0

精彩评论

暂无评论...
验证码 换一张
取 消