Add CDATA to an xml file

前端 未结 2 907
梦谈多话
梦谈多话 2020-11-29 12:04

I would like to add some CDATA tags around some xml tags

XML source is (it\'s only a small part of my file)



        
2条回答
  •  盖世英雄少女心
    2020-11-29 12:52

    A cleaner approach would be to make use of cdata-section-elements

    Delcare teaserText_fr in cdata-section-elements as below

    
    

    Then format the XSLT as below. (Do note that you must include CDATA as a wrapper around the element)

    
        
            

    2012 ist für viele Länder ein wichtiges Wahljahr. Die Reihe fühlt der weltweiten Demokratie auf den Zahn.

    ]]>

提交回复
热议问题