最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

把 CDATA 中的內(nèi)容(有可能是不規(guī)范的Html代碼)以Html方式展現(xiàn)出來(lái)。

 更新時(shí)間:2007年04月22日 00:00:00   作者:  
前不久我寫(xiě)過(guò) XML+XSL 與 Html 的結(jié)合 文章,之后有人問(wèn)我如何把 CDATA 中的內(nèi)容以Html方式展現(xiàn)出來(lái)(尤其是用戶寫(xiě)的Html不規(guī)范)。本來(lái)想寫(xiě)個(gè)范例,后來(lái)到Google上一查,發(fā)現(xiàn)已經(jīng)有人寫(xiě)了。就在:http://java.blogger.cn/wuyu/posts/1460.aspx


注意:xsl的disable-output-escaping="yes" 

其核心就是利用 disable-output-escaping="yes" 

MSDN 上對(duì)它的描述如下:

disable-output-escaping 
Default is "no". If the value is "yes", a text node generated by instantiating the element will be output without any escaping. For example, the following generates the single character "<". 
<
Note?? disable-output-escaping="yes" can be used to generate non-well-formed documents, and thus should be used with caution, because non-well-formed output may generate errors in certain circumstances. For example, transformNodeToObject to an XML document requires that the result be well-formed and thus may not complete ifdisable-output-escaping has affected the well-formedness of the document. Consider disable-output-escaping="yes" an advanced feature to be used only when the potential dangers are understood.

相關(guān)文章

最新評(píng)論

定西市| 三河市| 南城县| 盐山县| 建宁县| 泰宁县| 平定县| 财经| 高雄县| 麻阳| 石渠县| 东明县| 牡丹江市| 衡水市| 遵义市| 新乡县| 兰坪| 河源市| 明光市| 仲巴县| 从化市| 高雄县| 东阿县| 那曲县| 闻喜县| 当涂县| 紫云| 闵行区| 民县| 宣恩县| 雷州市| 雷山县| 永昌县| 朝阳县| 蓬莱市| 怀远县| 全椒县| 泗洪县| 汕头市| 东兰县| 菏泽市|