Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/16.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
Xml 转换HTML实体_Xml_Xls - Fatal编程技术网

Xml 转换HTML实体

Xml 转换HTML实体,xml,xls,Xml,Xls,我有一个xml文件: <?xml version="1.0" encoding="utf-8"?> <field> <ID><![CDATA[&lt;table style=&quot;width: 700px;&quot; align=&quot;left&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;]]>&l

我有一个xml文件:

<?xml version="1.0" encoding="utf-8"?>
<field>
<ID><![CDATA[&lt;table style=&quot;width: 700px;&quot; align=&quot;left&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;]]></ID>
</field>

我想通过xsl将此xml转换为:

<?xml version="1.0" encoding="utf-8"?>
<field>
<ID><![CDATA[<table style="width: 700px;" align="left" border="0"><tbody><]]></ID>
</field>

我的xsl文件是:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

如何将这些标记转换为html标记?
问候。

你在用php吗?@mayersdesign他有XSL,php是不必要的,而且限制性很强。不,我不能用php。我只想用xls来做这件事,因为我的“商店下载器”不接受php语言。