Change id: array-general
Implementations | ||||||
Tests | BaseX 8.5 beta XQ31 (QT3 vCVS) |
Saxon-EE 9.7.0.11 XP31 (QT3 v0.6) |
Saxon-EE 9.7.0.11 XQ31 (QT3 v0.6) |
XmlPrime 4.0.0.16079 XP31 (QT3 vCVS) |
XmlPrime 4.0.0.26293 XQ31 (QT3 vCVS) |
XmlPrime 4.0.0.27704 XQX31 (QT3 vCVS) |
---|---|---|---|---|---|---|
fn-max-19[+]
X fn-max-19: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: max([1,2,3,4,5]) |
pass | pass | pass | pass | pass | pass |
fn-min-19[+]
X fn-min-19: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: min([1,2,3,4,5]) |
pass | pass | pass | pass | pass | pass |
fn-sum-11[+]
X fn-sum-11: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: sum([1,2,3,4,5]) |
pass | pass | pass | pass | pass | pass |
annotation-35[+]
X annotation-35: Created on: 2015-10-02 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: declare namespace array = "http://www.w3.org/2005/xpath-functions/array"; declare %array:x function local:foo() { "bar" }; local:foo() |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
ArrayTest-028[+]
X ArrayTest-028: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: let $x := <root><elem>1</elem><elem>2</elem></root> return [$x/elem[1]] + [$x/elem[2]] |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-029[+]
X ArrayTest-029: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: fn:data([<root><elem>1</elem><elem>2</elem></root> + 4]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-030[+]
X ArrayTest-030: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:data([[1, 2], [3, 4, [5, 6]]]) |
pass | pass | pass | pass | pass | pass |
ArrayTest-033[+]
X ArrayTest-033: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: ["A", "B"] |
pass | pass | pass | pass | pass | pass |
ArrayTest-034[+]
X ArrayTest-034: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [("A", "B")] |
pass | pass | pass | pass | pass | pass |
ArrayTest-035[+]
X ArrayTest-035: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [("A", "B"), "C"] instance of array(xs:string) |
pass | pass | pass | pass | pass | pass |
ArrayTest-036[+]
X ArrayTest-036: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [(), "A"] instance of array(xs:string) |
pass | pass | pass | pass | pass | pass |
ArrayTest-037[+]
X ArrayTest-037: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [(), "A"] instance of array(xs:integer*) |
pass | pass | pass | pass | pass | pass |
ArrayTest-038[+]
X ArrayTest-038: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [["A"], ["B"]] instance of array(array(xs:string)) |
pass | pass | pass | pass | pass | pass |
ArrayTest-039[+]
X ArrayTest-039: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [["A"], ["B"]] instance of array(item()) |
pass | pass | pass | pass | pass | pass |
ArrayTest-040[+]
X ArrayTest-040: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [xs:integer("10")] instance of array(xs:decimal) |
pass | pass | pass | pass | pass | pass |
ArrayTest-041[+]
X ArrayTest-041: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [["A"], ["B"]] instance of item() |
pass | pass | pass | pass | pass | pass |
ArrayTest-042[+]
X ArrayTest-042: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: [["A"], ["B"]] instance of function(*) |
pass | pass | pass | pass | pass | pass |
ArrayTest-043[+]
X ArrayTest-043: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: [["A"], ["B"]] instance of function(xs:integer) as item()* |
pass | pass | pass | pass | pass | pass |
ArrayTest-044[+]
X ArrayTest-044: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: if ([1, 2]) then 1 else 2 |
pass | pass | pass | pass | pass | pass |
ArrayTest-045[+]
X ArrayTest-045: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: ['A'] = 'A' |
pass | pass | pass | pass | pass | pass |
ArrayTest-046[+]
X ArrayTest-046: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: ['A', 'B', 'C'] = 'A' |
pass | pass | pass | pass | pass | pass |
ArrayTest-047[+]
X ArrayTest-047: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: <a>{['a', ['b', 'c'], 'd']}</a> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-048[+]
X ArrayTest-048: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: <a>{[ 'a', ['b', 'c'], 'd']}</a> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-049[+]
X ArrayTest-049: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: element a {['a', ['b', 'c'], 'd']} |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-050[+]
X ArrayTest-050: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: <chapter ref="{[1, 5 to 7, 9]}"/>/@ref/string() |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-051[+]
X ArrayTest-051: Created on: 2014-12-03 Spec Dependencies: spec = XQ31+ Test: element a {[<z x='3'/>/@x, <a>22</a>, [<b>33</b>, <c>44</c>], <d>55</d>]} |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
ArrayTest-052[+]
X ArrayTest-052: Created on: 2016-04-18 Spec Dependencies: spec = XP31+ XQ31+ Test: [1, 2, 3](2) |
pass | pass | pass | pass | pass | pass |
ArrayTest-053[+]
X ArrayTest-053: Created on: 2016-04-18 Spec Dependencies: spec = XP31+ XQ31+ Test: array{1, 2, 3}(2) |
pass | pass | pass | pass | pass | pass |
ArrayTest-054[+]
X ArrayTest-054: Created on: 2016-04-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $array:= ['a','b','c','d','e'] return $array(3) |
pass | pass | pass | pass | pass | pass |
ElemContentArray-001[+]
X ElemContentArray-001: Created on: 2016-09-06 Spec Dependencies: spec = XQ31+ Test: <e>{[1, 2, 3]}</e> |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
ElemContentArray-002[+]
X ElemContentArray-002: Created on: 2016-09-06 Spec Dependencies: spec = XQ31+ Test: <e>{[<f>{[1,<x/>,3]}</f>, <g>{[4, <x/>, 5]}</g>]}</e> |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
FunctionCall-022[+]
X FunctionCall-022: Created on: 2014-10-14 Spec Dependencies: spec = XQ31+ Test: declare function local:unique($in as xs:integer*) as xs:boolean { count($in) = count(distinct-values($in)) }; (local:unique([1,2,3,4,5]), local:unique([1,2,3,4,4])) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
function-call-reserved-function-names-040[+]
X function-call-reserved-function-names-040: Created on: 2015-10-14 Spec Dependencies: spec = XQ31+ Test: declare default function namespace "http://www.w3.org/2005/xquery-local-functions"; declare function local:array() { fn:true() }; array() |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
function-call-reserved-function-names-042[+]
X function-call-reserved-function-names-042: Created on: 2015-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: array() |
pass | pass | pass | pass | pass | pass |
GenCompEq-7[+]
X GenCompEq-7: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3, 4, 5] = 4 |
pass | pass | pass | pass | pass | pass |
GenCompEq-8[+]
X GenCompEq-8: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [[3, 4], 5] = [4, [5, 6]] |
pass | pass | pass | pass | pass | pass |
GenCompEq-9[+]
X GenCompEq-9: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3, 4, 5] = [] |
pass | pass | pass | pass | pass | pass |
GenCompLT-9[+]
X GenCompLT-9: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3, 4, 5] < 4 |
pass | pass | pass | pass | pass | pass |
GenCompLT-10[+]
X GenCompLT-10: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [[3, 4], 5] < [4, [5, 6]] |
pass | pass | pass | pass | pass | pass |
GenCompLT-11[+]
X GenCompLT-11: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3, 4, 5] < [] |
pass | pass | pass | pass | pass | pass |
Lookup-211[+]
X Lookup-211: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [1, 2, 3](1.1) |
no result | pass | pass | pass | pass | pass |
Lookup-214[+]
X Lookup-214: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [1, 2, 3](-1) |
no result | pass | pass | pass | pass | pass |
named-function-ref-reserved-function-names-017[+]
X named-function-ref-reserved-function-names-017: Created on: 2015-10-13 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: fn:exists(array#0) |
pass | pass | pass | pass | pass | pass |
typeswitch-117[+]
X typeswitch-117: Created on: 2015-04-16 Spec Dependencies: spec = XQ31+ spec = XQ10+ Test: let $x := [map{'x':1, 'y':2}, 'x'] let $y := [array{1, 2, 3}, 1] let $z := ($x, $y) for $e in $z return typeswitch($e?1) case $A as array(*) return array:get($A, $e?2) case $M as map(*) return map:get($M, $e?2) default return error() |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
typeswitch-118[+]
X typeswitch-118: Created on: 2015-04-16 Spec Dependencies: spec = XQ31+ spec = XQ10+ Test: let $x := map{'x':1, 'y':2} let $y := map{'A':1, 'B':2} let $z := ($x, $y, []) for $e in $z(position() lt 3) return typeswitch($e) case $A as array(*) return array:get($A, 'A') case $M as map(*) return map:get($M, 'A') default return error() |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
value-comparison-5[+]
X value-comparison-5: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3] eq 3 |
pass | pass | pass | pass | pass | pass |
value-comparison-6[+]
X value-comparison-6: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3] le [3] |
pass | pass | pass | pass | pass | pass |
value-comparison-7[+]
X value-comparison-7: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [] eq 3 |
pass | pass | pass | pass | pass | pass |
value-comparison-8[+]
X value-comparison-8: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [3,4] eq 3 |
pass | pass | pass | pass | pass | pass |
value-comparison-9[+]
X value-comparison-9: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: [] eq () |
pass | pass | pass | pass | pass | pass |
xqhof22[+]
X xqhof22: Created on: 2016-08-09 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: let $m := array { true(), true(), false(), true(), true(), false(), false() } let $indices := (1 to 7) return fn:filter($indices,$m) |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseR31-025[+]
X UseCaseR31-025: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare function local:deep-put($input as item()*, $key as xs:string, $value as item()*) as item()* { let $mf := function($k, $v) { if ($k eq $key) then map{$k : $value} else map{$k : local:deep-put($v, $key, $value)} } for $i in $input return if ($i instance of map(*)) then map:merge(map:for-each($i, $mf)) else if ($i instance of array(*)) then array{ local:deep-put($i?*, $key, $value) } else $i }; local:deep-put(json-doc("http://www.w3.org/qt3/app/UseCaseR31/bookinfo-json"), "first", "John") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41635[+]
X d1e41635: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: [//product,( "a", "b", "c"),"d"] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41648[+]
X d1e41648: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: array { //product,( "a", "b", "c"),"d"} |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41655[+]
X d1e41655: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $myitems := 3; [$myitems, doc("catalog.xml")//product, 12, xs:date('2015-01-15'), <foo>bar</foo>] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41678[+]
X d1e41678: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: [ ("a", "b", "c"), "d" ] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41686[+]
X d1e41686: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: ( ["a", "b", "c"], "d" ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709b[+]
X d1e41709b: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-ints?2 |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709c[+]
X d1e41709c: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; let $pos := 2 return $array-of-ints?($pos) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709d[+]
X d1e41709d: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays?2?1 |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41799[+]
X d1e41799: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; for $i in (2,3) return $array-of-ints?($i) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709t[+]
X d1e41709t: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-ints instance of array(xs:integer) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709u[+]
X d1e41709u: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays instance of array(array(xs:string)) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709v[+]
X d1e41709v: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays instance of function(*) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709w[+]
X d1e41709w: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays instance of function(xs:integer) as item()* |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709x[+]
X d1e41709x: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays instance of item() |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e42207[+]
X d1e42207: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare function local:larger-values ($arrayarg as array(xs:integer))as xs:integer* { array:flatten($arrayarg)[. > 15] }; local:larger-values([10,20,30]) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |