[xquery-talk] compare dayTimeDuration ?
Michael Kay
mike at saxonica.com
Mon Feb 26 10:55:55 PST 2007
> >
> > if ($r1 <= $v1) then
> > * if ($r2 <= $v1) then xs:boolean(false)*
> > else xs:boolean(true)
> > else
> > if ($r1 <= $v2) then xs:boolean(true)
> > else xs:boolean(false)
> >
> > [...]
>
> Sébastien,
>
> there are no literals `true' and `false' in XQuery. Use the
> built-in functions fn:true() and fn:false() instead.
And of course the expression
if ($r1 <= $v2) then xs:boolean(true)
> > else xs:boolean(false)
can be simplified to
($r1 <= $v2)
Michael Kay
http://www.saxonica.com/
More information about the talk
mailing list