Check if a string is null or empty in XSLT

前端 未结 14 1245
梦毁少年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:39

    First two deal with null value and second two deal with empty string.

    
        USERNAME is not null
    
    
        USERNAME is null
     
     
         USERNAME is empty string
     
     
         USERNAME is not empty string
     
    

提交回复
热议问题