How do I Emit Escaped XML representation of a Node in my XSLT's HTML Output

后端 未结 2 513
粉色の甜心
粉色の甜心 2020-12-20 00:53

I\'m transforming XML to an HTML document. In this document I want to embed XML markup for a node that was just transformed (the HTML document is a technical spec).

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 01:24

    Very simple template

    
    
            
    
                
                
    
                    
                    <
                    
    
                    
                    
    
                    
    
                        
                        
                            
                            >
    
                            
                            
    
                            
                            </
                            
                            >
                        
    
                        
                        
                            
                            />
                        
    
                    
    
                
    
                
                
                    
                
    
            
    
    
    
    
         
        
        ="
        
        "
    
    

    Used

    
    

    You can even add pretty printing if you want.

提交回复
热议问题