How can you deal with embedded XML tags in XSLT?

前端 未结 4 827
鱼传尺愫
鱼传尺愫 2020-12-31 09:25

I am using XSLT to convert XML to HTML. I am having trouble figuring out how to deal with embedded XML nodes for formatting. For example, let\'s say I have the XML element:<

4条回答
  •  猫巷女王i
    2020-12-31 09:54

    You should use 'disable-output-escaping' attribute. The general format of element is:

    
    

    'disable-output-escaping' is optional. "yes" indicates that special characters (like "<") should be output as is. "no" indicates that special characters (like "<") should be output as "<". Default is "no".

    Therefore just change your code to:

    
      
    
    

提交回复
热议问题