xpath date comparison using textbox

后端 未结 1 726
清歌不尽
清歌不尽 2021-01-27 15:53

my xml file :-


    
        
            
                 


        
1条回答
  •  轮回少年
    2021-01-27 16:16

    The following query should work:

    let $ref-date := xs:date("1989-03-10")
    let $data := 
        
            
                
            
        
        
            
                
            
        
    
    return $data/name[region/date/xs:date(@value) lt $ref-date]
    

    You can try it live at http://www.zorba-xquery.com/html/demo#r0KwHwjp1weVwefDUn1Z6roVD3A=

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