xml - How can I pass html tags to xsl template? -
my xml file has html tags inside, built that:
<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>   this table test report. i' dlike pass table xsl template , display iside generated file.
<xsl:value-of select="$suite/testsuite/tests/command/summaries/report/output" />   bu in html see
<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>   as text, table not applied. how can display table in newly created html file?
if used xslt processor supports disable-output-escaping can help: <xsl:value-of select="$suite/testsuite/tests/command/summaries/report/output" disable-output-escaping="yes"/>. note mozilla browsers firefox not support it.
Comments
Post a Comment