|
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) |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prod-CopyNamespacesDecl | 27/36 | 23/36 | 0/0 | 36/36 | 0/0 | 36/36 | 34/36 | 0/0 | 36/36 | 36/36 | 0/0 | 36/36 | 36/36 | 36/36 | 36/36 | 2/15 |
copynamespace-1[+]
X copynamespace-1: declare copy-namespaces preserve, no-inherit; declare copy-namespaces no-preserve, no-inherit; declare variable $input-context1 external; "aaa" |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-2[+]
X copynamespace-2: declare copy-namespaces preserve,no-inherit; declare default element namespace "http://example.org/names"; declare variable $input-context1 external; let $new := <newElement xmlns = "http://www.example.com/mynamespace">{element original {"Original Content"}}</newElement> return $new//* |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-3[+]
X copynamespace-3: declare namespace foo = "http://example.org"; declare copy-namespaces preserve,no-inherit; let $existingElement := <existingElement xmlns="http://www.existingnamespace.com">{"Existing Content"}</existingElement> let $new := <foo:newElement xmlns = "http://www.mynamespace.com">{$existingElement}</foo:newElement> return in-scope-prefixes(exactly-one($new/child::node())) |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-4[+]
X copynamespace-4: declare namespace foo = "http://example.org"; declare copy-namespaces preserve,inherit; declare variable $input-context1 external; let $existingElement := <existingElement xmlns="http://www.existingnamespace.com">{"Existing Content"}</existingElement> let $new := <foo:newElement xmlns = "http://www.mynamespace.com">{$existingElement}</foo:newElement> for $var in (in-scope-prefixes($new//child::*)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-5[+]
X copynamespace-5: declare namespace foo = "http://example.org"; declare copy-namespaces preserve,no-inherit; declare variable $input-context1 external; let $existingElement := <foo:existingElement xmlns="http://www.existingnamespace.com">{"Existing Content"}</foo:existingElement> let $new := <foo:newElement xmlns = "http://www.mynamespace.com">{$existingElement}</foo:newElement> for $var in (in-scope-prefixes($new//child::*)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-6[+]
X copynamespace-6: declare namespace foo = "http://example.org"; declare copy-namespaces preserve,inherit; declare variable $input-context1 external; let $existingElement := <foo:existingElement xmlns="http://www.existingnamespace.com">{"Existing Content"}</foo:existingElement> let $new := <foo:newElement xmlns = "http://www.mynamespace.com">{$existingElement}</foo:newElement> for $var in (in-scope-prefixes($new//child::*)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-7[+]
X copynamespace-7: declare copy-namespaces no-preserve,no-inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns = "http://www.mynamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var )ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-8[+]
X copynamespace-8: declare copy-namespaces preserve,no-inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns = "http://www.mynamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-9[+]
X copynamespace-9: declare copy-namespaces no-preserve,inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns:newNamespace = "http://www.mynamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
pass | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-10[+]
X copynamespace-10: declare copy-namespaces preserve,inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns:newNamespace = "http://www.mynamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-11[+]
X copynamespace-11: declare copy-namespaces preserve,inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns:existingNamespace = "http://www.mynamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-12[+]
X copynamespace-12: declare copy-namespaces preserve,inherit; declare variable $existingElement := <existingElement xmlns:existingNamespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns:newNamespace = "http://www.existingnamespace.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-13[+]
X copynamespace-13: declare copy-namespaces preserve,inherit; declare variable $existingElement := <existingElement>{"Existing Content"}</existingElement>; declare variable $new := <newElement>{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes(exactly-one($new/existingElement))) return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-14[+]
X copynamespace-14: declare copy-namespaces preserve,inherit; declare variable $existingElement := <existingElement xmlns:somespace="http://www.existingnamespace.com">{"Existing Content"}</existingElement>; declare variable $new := <newElement xmlns:SOMESPACE="http://www.another.com">{$existingElement}</newElement>; declare variable $input-context1 external; for $var in (in-scope-prefixes($new/existingElement)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-15[+]
X copynamespace-15: declare copy-namespaces preserve,inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2/element1)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-16[+]
X copynamespace-16: declare copy-namespaces no-preserve,inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2/element1)) order by exactly-one($var) ascending return $var |
pass | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-17[+]
X copynamespace-17: declare copy-namespaces no-preserve,no-inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2/element1)) order by exactly-one($var) ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-18[+]
X copynamespace-18: declare copy-namespaces preserve,no-inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2/element1)) order by exactly-one($var) ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-19[+]
X copynamespace-19: declare copy-namespaces preserve,inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2)) order by exactly-one($var) ascending return $var |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-20[+]
X copynamespace-20: declare copy-namespaces no-preserve,inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2)) order by exactly-one($var) ascending return $var |
pass | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-21[+]
X copynamespace-21: declare copy-namespaces no-preserve,no-inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2)) order by exactly-one($var) ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
copynamespace-22[+]
X copynamespace-22: declare copy-namespaces preserve,no-inherit; declare variable $element1 := <element1 xmlns:namespace1="http://www.namespace1.com"></element1>; declare variable $element2 := <element2 xmlns:namespace2="http://www.namespace2.com">{$element1}</element2>; declare variable $element3 := <element3 xmlns:namespace3="http://www.namespace3.com">{$element2}</element3>; declare variable $input-context1 external; for $var in (in-scope-prefixes($element3/element2)) order by exactly-one($var) ascending return $var |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K-CopyNamespacesProlog-1[+]
X K-CopyNamespacesProlog-1: declare copy-namespaces preserve, no-inherit; declare copy-namespaces no-preserve, no-inherit; 1 eq 1 |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K-CopyNamespacesProlog-2[+]
X K-CopyNamespacesProlog-2: declare copy-namespaces no-preserve, no-inherit; 1 eq 1 |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K-CopyNamespacesProlog-3[+]
X K-CopyNamespacesProlog-3: declare copy-namespaces preserve, inherit; 1 eq 1 |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K-CopyNamespacesProlog-4[+]
X K-CopyNamespacesProlog-4: declare copy-namespaces no-inherit, no-preserve; 1 eq 1 |
pass | pass | no result | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K-CopyNamespacesProlog-5[+]
X K-CopyNamespacesProlog-5: declare copy-namespaces inherit, preserve; 1 eq 1 |
pass | pass | no result | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-1[+]
X K2-CopyNamespacesProlog-1: declare copy-namespaces no-preserve, inherit; <doc> <a>{<b xmlns:p="http://example.com/"/>}</a> <a><b xmlns:p="http://example.com/"/></a> </doc> |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-2[+]
X K2-CopyNamespacesProlog-2: copy-namespaces lt copy-namespaces |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-3[+]
X K2-CopyNamespacesProlog-3: namespace lt namespace |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-4[+]
X K2-CopyNamespacesProlog-4: declare copy-namespaces preserve, no-inherit; <e xmlns="http://example.com/"> { <b/> } </e> |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-5[+]
X K2-CopyNamespacesProlog-5: declare copy-namespaces no-preserve, no-inherit; <e xmlns:appearsUnused="http://example.com/"> { <b> <appearsUnused:c/> </b> } </e> |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-6[+]
X K2-CopyNamespacesProlog-6: declare namespace ns = "http://example.com/"; <e xmlns:appearsUnused="http://example.com/"> { <b> <appearsUnused:c/> </b> } </e>/(for $n in (., b, b/ns:c), $i in in-scope-prefixes($n) order by $i return ($i, '|')) |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-7[+]
X K2-CopyNamespacesProlog-7: declare copy-namespaces no-preserve, no-inherit; <e> { <b> <c xmlns:unused="http://example.com"/> </b> } </e> |
pass | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-8[+]
X K2-CopyNamespacesProlog-8: declare copy-namespaces no-preserve,inherit; <a> { <b>{()}</b> } </a> |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
K2-CopyNamespacesProlog-9[+]
X K2-CopyNamespacesProlog-9: declare copy-namespaces preserve, no-inherit; declare variable $e1 := <e1 xmlns:namespace1="http://www.namespace1.com"/>; declare variable $e2 := <e2 xmlns:namespace2="http://www.namespace2.com">{$e1}</e2>; for $n in <e3 xmlns:namespace3="http://www.namespace3.com">{$e2}</e3>/e2/e1, $ps in in-scope-prefixes($n) order by $ps return $ps, '|', for $n in <e3 xmlns:namespace3="http://www.namespace3.com">{<e2 xmlns:namespace2="http://www.namespace2.com">{<e1 xmlns:namespace1="http://www.namespace1.com"/>}</e2>}</e3>/e2/e1, $ps in in-scope-prefixes($n) order by $ps return $ps |
fail | fail | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass |