Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.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/0/xml/15.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
如何将html标记传递给xsl模板?_Html_Xml_Xslt - Fatal编程技术网

如何将html标记传递给xsl模板?

如何将html标记传递给xsl模板?,html,xml,xslt,Html,Xml,Xslt,我的XML文件中包含html标记,如下所示: <pre> <table border=""> <tbody> <tr> <th>Time</th> <th>Result</th> <th>Test&l

我的XML文件中包含html标记,如下所示:

<pre>

 <table border="">

  <tbody>
   <tr>
    <th>Time</th>
    <th>Result</th>
    <th>Test</th>
    <th>Method</th>
   </tr> 
   <tr>
    <td> 6:28:09 PM </td>
    <td bgcolor="#FF0000"> FAIL </td>
    <td width="30%"> TEST </td>
    <td width="70%"> test_method </td>
   </tr> 
  </tbody>
 </table>
  </pre>
<pre> <table border=""> <tbody> <tr> <th>Time</th> <th>Result</th> <th>Test</th> <th>Method</th> </tr> <tr> <td> 6:28:09 PM </td> <td bgcolor="#FF0000"> FAIL </td> <td width="30%"> TEST </td> <td width="70%"> test_method </td> </tr> </tbody> </table> </pre>
这是带有测试报告的表格。我想将此表传递给xsl模板,然后在生成的文件中显示它

<xsl:value-of select="$suite/testsuite/tests/command/summaries/report/output" />

在我的html中我看到了Bu

时间结果测试方法6:28:09 PM失败测试方法

作为文本,不应用表。如何在新创建的html文件中显示我的表?

如果使用的XSLT处理器支持它,则
禁用输出转义
可以帮助:
。请注意,像Firefox这样的Mozilla浏览器不支持它。

如果使用的XSLT处理器支持它,那么
禁用输出转义可以帮助:
。请注意,像Firefox这样的Mozilla浏览器不支持它。

您使用什么XSLT处理器?我使用Java和默认转换器。您使用什么XSLT处理器?我使用Java和默认转换器。谢谢。我明天试试这个。直到今天,我只在Firefox上测试过这个。谢谢。我明天试试这个。直到今天,我只在Firefox上测试过这个。