XSLT: does not work

后端 未结 3 785
长发绾君心
长发绾君心 2020-12-10 07:48

I have a servlet filter in my application that intercepts all the incoming requests and tries to strip the whitespaces from the incoming XML and write the resulting \'clean\

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 08:44

    Adding this as a second answer, because the explanation in the first one is still (hopefully) informative enough to keep it.

    Assuming that by "trim" you mean "remove all whitespace immediately after opening and before closing tags", then the following additional template rules should do the trick:

     	
    
    
    
    
       
       
       
         
           
             
           
         
         
           
         
       
    
    
    
    
       
       
       
         
           
                        
           
         
         
           
         
       
    
    
    
      
        
          
            
          
        
      
    
    

提交回复
热议问题