Examples
|
- (3 idiv 2,(2,(3)),(),4 to 6)
- reverse(reverse(1 to 6))
- (1 to 6)[. mod 1 eq 0]
- (1 to 6)[. < 10]
- (0 to 5)!(. + 1)
- (1 to 3)!(.*2-1 , .*2)
- let $a := (1 to 3), $b := (4 to 6)
return ($a,$b)
- for $i in (0,3), $j in (1,2,3) return ($i + $j)
- if (5 le 5) then (1 to 6) else (0)
(10)(1 to 6) treat as xs:decimal+
GIVE
- 1
- 2
- 3
- 4
- 5
- 6
|
- 2 = (1,2,3)
- 3 > (2,4)
- (1,2) = (2,3)
- (1,2) != (2,3)
- some $x in (1 to 3), $y in (2 to 4)
satisfies $x + $y < 4
- every $x in (1 to 3), $y in (2 to 4)
satisfies $x + $y > 0
- 15 instance of xs:integer
- 15 instance of item()
- (1,2) instance of xs:integer+
(10) xs:unsignedByte(1) instance of xs:integer
(11) xs:dateTime('2015-03-04T12:00:00')
instance of xs:anyType
(12) xs:dayTimeDuration('P9DT15H30M30S')
instance of xs:duration
(13) 1.3 castable as xs:integer
(14) 1.3 cast as xs:Boolean
(15) xs:date('2015-08-31') >
xs:date('2015-07-31')
GIVE
True |
- xs:dayTimeDuration("P30D")
- "P30D" cast as xs:dayTimeDuration?
- xs:dayTimeDuration('P20D') + xs:dayTimeDuration('P10D')
- xs:date('2015-03-04') - xs:date('2015-02-02')
GIVE
P30D
|