How to eliminate all and all attribute=“” by XSLT?

后端 未结 1 1045
不知归路
不知归路 2021-01-24 01:39

In a xsl:stylesheet I have this \"identity like\" transform, to eliminate comments, empty (terminal) tags and empty attributes... But the second xsl:

1条回答
  •  终归单人心
    2021-01-24 02:14

    An empty element is an element with no child nodes.

    Template match priority is your friend ... the following should be the kind of identity stylesheet that meets your description plus what I think you are doing with image and break elements.

    
    
    
    
    
    
    
    
      
    
    
    
    
      
        
      
    
    
    
    

    0 讨论(0)
提交回复
热议问题