空の日付をチェックする次のコードを検討してください。
declare xqse function tns:isEmptyDate($dob as xs:date) as xs:boolean {
if(empty($dob)) then {
}
}
実行すると、ALDSP で以下のエラーが発生するのはなぜですか。
weblogic.xml.query.exceptions.XQueryDynamicException: {err}XP0021: "": can not cast to {http://www.w3.org/2001/XMLSchema}date: error: date: Invalid date value: wrong type: