Check if a string is null or empty in XSLT

前端 未结 14 1172
梦毁少年i
梦毁少年i 2020-11-27 09:12

How can I check if a value is null or empty with XSL?

For example, if categoryName is empty? I\'m using a when choosing construct.

For

14条回答
  •  迷失自我
    2020-11-27 09:37

    Something like this works for me:

    
       -  
       
        
      
    
    

    Or the other way around:

    
      
        
       
       - 
    
    

    Note: If you don't check null values or handle null values, IE7 returns -2147483648 instead of NaN.

提交回复
热议问题