XSLT with XML source that has a default namespace set to xmlns

后端 未结 3 1603
情话喂你
情话喂你 2020-11-21 23:46

I have an XML document with a default namespace indicated at the root. Something like this:


   

        
3条回答
  •  礼貌的吻别
    2020-11-22 00:37

    If this was kind of name space problem, there is room to try to modify two things in the xslt file:

    • add "my" name space definition in xsl:stylesheet tag
    • use "my:" prefix when call elements in traversing the xml file.

    result

    
        
            
                
                    
                        
                            ABCD
                            
                                
                            
                        
                    
                
            
        
    
    

提交回复
热议问题