Transform XML from CDATA using XSL

前端 未结 2 1730
南旧
南旧 2021-01-17 17:31

I have this XML document:


    
        
            

        
2条回答
  •  野的像风
    2021-01-17 18:00

    As suggested in a comment, I post a solution. The example use XSLT 3.0 with Saxon 9.5 (needs PE or EE version):

    
    
    
        
    
        
    
        
    
            
        
    
    
    

    With an input of

    
        
            
                
                                
                                bank
                                    
                                        
                                          ABKZKZKX
                                          319
                                          AA "A BANK"
                                          BB "B BANK"
                                        
                                        
                                          ABNAKZKX
                                          922
                                          CC "C BANK"
                                          DD "D BANK"
                                        
                                    
                                ]]>
            
        
    
    

    the result is

    
    

提交回复
热议问题