XSLT: How to exclude empty elements from my result?

前端 未结 4 529
感动是毒
感动是毒 2020-12-05 21:06

I have a rather complicated xslt sheet transforming one xml format to another using templates. However, in the resulting xml, I need to have all the empty elements excluded.

4条回答
  •  醉梦人生
    2020-12-05 21:43

    I started with Dimitre's solution above (thanks!) but I still had output or null elements with null children like so:

                     
                        
                           
                                      
                                     
                     
    

    This seems to work... still testing.

    
    
    
      
    
      
    
      
        
          
        
      
    
      
    
    

提交回复
热议问题