How to access variable in CDATA from XSLT?

后端 未结 3 949
再見小時候
再見小時候 2021-01-19 10:23

I am using XSLT Transformation and need to put some data in CDATA section and that vale is present in a variable.

Query: How to access variable in CDATA ? Sample Giv

3条回答
  •  逝去的感伤
    2021-01-19 10:29

    CDATA is just text like any other element contents...

    But using the xsl:output element you should be able to specify which elements are to be written as CDATA with the cdata-section-elements attribute.

    EDIT:

    Now that there is a valid sample, I guess you mean this:

    
    
    
    

提交回复
热议问题