Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用xslt在xml中显示xml元素_Xslt_Xslt 1.0 - Fatal编程技术网

使用xslt在xml中显示xml元素

使用xslt在xml中显示xml元素,xslt,xslt-1.0,Xslt,Xslt 1.0,Ia使用XSLT1.0,我有一个XML <item name="note"><value>&lt;p&gt;Add the &amp;lt;bean&amp;gt; tag pased below to the &amp;lt;beans&amp;gt; element in this file .... </value></item> 填充&;书信电报;豆及;燃气轮机;将下面的标签发送到&

Ia使用XSLT1.0,我有一个XML

<item name="note"><value>&lt;p&gt;Add the &amp;lt;bean&amp;gt; tag pased below to the &amp;lt;beans&amp;gt; element in this file .... </value></item> 
填充&;书信电报;豆及;燃气轮机;将下面的标签发送到&;书信电报;豆类及;燃气轮机;此文件中的元素。。。。
我想在HTML中这样显示它

Add the <bean> tag passed below to the <beans> element in this file. 
将下面传递的标记添加到此文件中的元素。
请注意,当我使用disable output escaping=yes时,将转换为段落标记

这就是我的xslt中的内容

<xsl:template match="item[@name='note']">
    <xsl:value-of select="value" disable-output-escaping="yes" />
</xsl:template>


使用此xslt,它会忽略bean和bean xml,并且不会显示在页面中。我如何确保以我想要的方式显示它

问题是您的一些实体已被“双重转义”。

&;书信电报;豆及;燃气轮机
应该是
bean

这是过度转义的---返回给生产它的人。我无法更改这一点,因为此XML实际上显示在WYSIWYG编辑器中,如果我删除&;它不会在那里显示XML。