Selecting/matching elements in a namespace

后端 未结 2 1842
渐次进展
渐次进展 2020-12-22 05:49

I have a xml and xsl that need to generate another xml, but because of \'xmlns\', it generates an empty xml. Without \'xmlns\' in the root of XML, it works fine. The follow

2条回答
  •  -上瘾入骨i
    2020-12-22 06:32

    You need to assign a prefix to the namespace and use that prefix when addressing the elements of the source XML:

    
     
    
    
    
    
        
    
    
    
        
            
                
                    
                
                
            
        
    
    
    
        
            
                
                

    Note that sub-config and subi-config are two different things.

提交回复
热议问题