Not sure if bug, need workaround ideas regardless..
3.2-10

let $x := try{xs:dateTime("1999-01-01TTT0:0:0")} catch($ex) {()}
let $y := try{ 2 div 0 } catch($ex) {()}
return $x

Return a dateTime if possible. Otherwise, return empty sequence.
The second try-catch works. The first does not.

What would you do if you knew one of your casts may fail? My only idea is 
regexp?



      
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to