zoukankan      html  css  js  c++  java
  • xml内容中含有HTML标签如何处理

    第一种方式:
    用<![CDATA[]]

    <
    templates>
    <template>
    <![CDATA[<html><head>$title</head><body>$content<body></html>]]>
     
    </template>
    </templates>

    第二种方式:
    用xsl
    <table id ="tblContent" class="xl_ys" style="100%; z-index:100; position: absolute;"> 
    <
    xsl:for-each select="Table">
    <tr> <!--td中单击时选择当前值, 鼠标在上时更改行背景颜色,鼠标离开后清除背景颜色-->
    <
    td id="td_MedNameCode" onclick="selValue(this.parentElement)" style="cursor:hand; 30px" onmouseover="this.parentElement.style.backgroundColor='#3366CC'" onmouseout="clearColor()">
    <
    xsl:value-of select="MedNameCode"/>
    </
    td>
    <
    td id ="td_MedicineName" onclick="selValue(this.parentElement)" style="cursor:hand; 40px" onmouseover="clearColor();this.parentElement.style.backgroundColor='InfoBackground'" onmouseout="clearColor()">
    <xsl:value-of select="MedicineName" />
    </
    td>
    <td id ="td_Medicine_ID" style="display:none">
    <
    xsl:value-of select="Medicine_ID"/>
    </
    td>
    <tr>
    </xsl:for-each>
    </
    table>

  • 相关阅读:
    计算机视觉(四)
    计算机视觉(三)
    计算机视觉(二)
    计算机视觉(一)
    基于opencv3实现运动物体识别
    tensorRT程序设计框架_4
    Cuda程序的设计-2
    神经网络的快速体验
    STL简介_18
    函数模板-17
  • 原文地址:https://www.cnblogs.com/Byrd/p/2037285.html
Copyright © 2011-2022 走看看