|
Implementations | ||||||||||||||||
Tests | BaseX 7.7 XQ30 |
EMC/xDB xDB_main_r2411365 XQ30 |
Saxon-EE 9.5.1.1 XP20 |
Saxon-EE 9.5.1.1 XQ10 |
Saxon-EE 9.5.1.1 XP30 |
Saxon-EE 9.5.1.1 XQ30 |
Saxon-EE 9.5.1.4 XQX30 (QT3 v1.1) |
XmlPrime 3.0.0.0 XP30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQ30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQX30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XP20 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQX10 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQ10 (QT3 vCVS) |
Zorba 2.9 XQ10 (QT3 vCVS) |
Zorba 2.9 XQ30 (QT3 vCVS) |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fn-doc | 42/43 | 43/43 | 38/38 | 43/43 | 39/39 | 43/43 | 43/43 | 39/39 | 43/43 | 43/43 | 38/38 | 43/43 | 43/43 | 43/43 | 43/43 | 3/15 |
fn-doc-1[+]
X fn-doc-1: fn:doc("http:\\invalid>URI\someURI") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-2[+]
X fn-doc-2: fn:doc("argument1","argument2") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-3[+]
X fn-doc-3: fn:doc("thisfileshouldnotexists.xml") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-4[+]
X fn-doc-4: fn:doc(()) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-5[+]
X fn-doc-5: fn:doc($uri) is fn:doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-6[+]
X fn-doc-6: fn:doc($works) is fn:doc($staff) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-7[+]
X fn-doc-7: fn:doc($uri)//day/string() |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-15[+]
X fn-doc-15: fn:count(fn:nilled(fn:doc($uri))) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-16[+]
X fn-doc-16: fn:count(fn:node-name(fn:doc($uri))) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-17[+]
X fn-doc-17: fn:doc("%gg") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-18[+]
X fn-doc-18: fn:not(fn:doc($uri) is fn:doc($uri)) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-19[+]
X fn-doc-19: (fn:doc($uri) is fn:doc($uri)) and fn:true() |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-20[+]
X fn-doc-20: (fn:doc($uri) is fn:doc($uri)) and fn:false() |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-21[+]
X fn-doc-21: (fn:doc($uri) is fn:doc($uri)) or fn:true() |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-22[+]
X fn-doc-22: (fn:doc($uri) is fn:doc($uri)) or fn:false() |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-1[+]
X K2-SeqDocFunc-1: empty(fn:doc(())) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-2[+]
X K2-SeqDocFunc-2: <e>{fn:doc(())}</e> |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-SeqDocFunc-3[+]
X K2-SeqDocFunc-3: fn:doc(xs:untypedAtomic("file:///example.com/does/not/exist/xqts-testing.xml")) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-4[+]
X K2-SeqDocFunc-4: doc("/example.com/example.org/does/not/exist/doesNotExist/works-mod.xml") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-5[+]
X K2-SeqDocFunc-5: doc("/example.com/example.org/does/not/exist/doesNotExist/works-mod.xml") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-6[+]
X K2-SeqDocFunc-6: doc("/example.com/example.org/does/not/exist/doesNotExist/works-mod.xml") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-7[+]
X K2-SeqDocFunc-7: doc("example.com\example.org\does\not\exist\doesNotExist\works-mod.xml") |
pass | pass | wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-8[+]
X K2-SeqDocFunc-8: doc("\example.com\example.org\does\not\exist\doesNotExist\works-mod.xml") |
pass | pass | wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
wrongError
Expected error:FODC0002, got err:FODC0005 |
pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-9[+]
X K2-SeqDocFunc-9: doc("C:\example.com\example.org\does\not\exist\doesNotExist\works-mod.xml") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-10[+]
X K2-SeqDocFunc-10: doc("") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-11[+]
X K2-SeqDocFunc-11: doc("") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-12[+]
X K2-SeqDocFunc-12: declare variable $fileToOpen := <Variable id="_7" name="constComplex2" type="_11c" context="_1" location="f0:17" file="f0" line="17"/>; empty($fileToOpen//*[let $i := @type return doc($fileToOpen)//*[$i]]) |
fail | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-SeqDocFunc-13[+]
X K2-SeqDocFunc-13: declare variable $doc1 := doc("http://example.com"); let $doc2 := doc("ftp://example.com/") for $i in doc("localFile.xml") return (1, 2, 3) |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
fn-doc-24[+]
X fn-doc-24: fn:doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-25[+]
X fn-doc-25: fn:doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-26[+]
X fn-doc-26: fn:doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-27[+]
X fn-doc-27: fn:doc($uri) |
pass | pass | wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-28[+]
X fn-doc-28: fn:doc($uri) |
pass | pass | wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-29[+]
X fn-doc-29: fn:doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-30[+]
X fn-doc-30: local-name(fn:doc($uri)/*) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-31[+]
X fn-doc-31: local-name(fn:doc($uri)/*) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-SeqDocFunc-14[+]
X K2-SeqDocFunc-14: doc(':/') |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-32[+]
X fn-doc-32: string(fn:doc($uri)), string(exactly-one(fn:doc($uri)/*)) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-33[+]
X fn-doc-33: declare namespace s = "http://www.w3.org/2000/svg"; declare variable $uri external; declare variable $root := doc($uri)/root/QObject; declare variable $metaObjects := $root/preceding-sibling::metaObjects/metaObject; declare function local:recurseMetaObject($object as element(metaObject), $count as xs:integer) { <s:text x ="{10 * $count}" y="10" font-family="Verdana" font-size="55" fill="blue" >{ string($object/@className)}</s:text> }; declare function local:drawDiagram($object as element(QObject)) as element(s:g) { <s:g> { if(string($object/@objectName)) then attribute xml:id {$object/@objectName} else (), $metaObjects[@className = $object/@className]/local:recurseMetaObject(., 1) } </s:g> }; <s:svg> { <s:rect x="1" y="1" width="500" height="300" fill="none" stroke="blue" stroke-width="2"/>, <s:rect x="400" y="100" width="400" height="200" fill="yellow" stroke="navy" stroke-width="10" />, for $object in $root//QObject for $i in local:drawDiagram($object) stable order by string($i) return $i } </s:svg> |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
fn-doc-34[+]
X fn-doc-34: doc($uri) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-35[+]
X fn-doc-35: doc('id/badxml.xml') |
pass | pass | wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
wrongError
Expected error:FODC0002, got err:SXXP0003 |
pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-36[+]
X fn-doc-36: count(doc($uri)//text()) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-doc-37[+]
X fn-doc-37: let $result := id("idABC", doc($uri)) return (empty($result), $result) |
pass | pass | pass | n/a
notXP20 |
pass | pass | pass | pass | pass | pass | n/a | pass | pass | pass | pass |