Change id: cast-to-qname
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) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CastableAs648a[+]
X CastableAs648a: let $var := "ABC" return $var castable as xs:QName |
pass | pass | pass | n/a
notXP20 |
n/a
notXQ10 |
pass | pass | pass | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+ XQ30+, satisfied=true) was not met. |
pass |
CastAs673b[+]
X CastAs673b: let $var := "ABC" return $var cast as xs:QName |
pass | pass | pass | n/a
notXP20 |
n/a
notXQ10 |
pass | pass | pass | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+ XQ30+, satisfied=true) was not met. |
pass |
CastAs674a[+]
X CastAs674a: let $var := <e>xml:space</e> return $var cast as xs:QName |
pass | pass | pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
pass |
CastAs675[+]
X CastAs675: declare function local:clarkname($q as xs:QName) as xs:string { concat('{', namespace-uri-from-QName($q), '}', local-name-from-QName($q)) }; let $var := <e>xml:space</e> return (local:clarkname(node-name($var)), local:clarkname(xs:untypedAtomic($var))) |
pass | n/a | no result | n/a
notXP20 |
pass | n/a
notXP30 |
n/a
notXQ30 |
n/a | n/a | n/a | n/a | pass | pass | pass | n/a
Dependency (type=spec, value=XQ10, satisfied=true) was not met. |
K-SeqExprCast-71b[+]
X K-SeqExprCast-71b: xs:untypedAtomic("ncname") cast as xs:QName? |
pass | pass | pass | n/a
notXP20 |
n/a
notXQ10 |
pass | pass | pass | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+ XQ30+, satisfied=true) was not met. |
pass |
K-SeqExprCast-422a[+]
X K-SeqExprCast-422a: xs:untypedAtomic("an arbitrary string(untypedAtomic source)") cast as xs:QName |
pass | pass | pass | n/a
notXP20 |
n/a
notXQ10 |
pass | pass | pass | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+ XP30+, satisfied=true) was not met. |
pass |
FunctionCall-016[+]
X FunctionCall-016: declare function local:f($in as xs:QName) as xs:integer { string-length(local-name-from-QName($in)) }; let $e := <a xsi:type='my:integer' xmlns:my='http://my.example.com/'>123</a> return local:f($e/@xsi:type) |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |
FunctionCall-017[+]
X FunctionCall-017: let $f := function ($in as xs:QName) as xs:integer { string-length(local-name-from-QName($in)) } let $e := <a xsi:type='my:integer' xmlns:my='http://my.example.com/'>123</a> return $f($e/@xsi:type) |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |
FunctionCall-018[+]
X FunctionCall-018: let $e := <a xsi:type='my:integer' xmlns:my='http://my.example.com/'>123</a> return local-name-from-QName($e/@xsi:type) |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |
FunctionCall-019[+]
X FunctionCall-019: declare function local:q ($prefix as xs:string, $local as xs:string) as xs:QName { <a>{$prefix}:{$local}</a> }; local:q('fn', 'abs') |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |
FunctionCall-020[+]
X FunctionCall-020: let $q := function ($prefix as xs:string, $local as xs:string) as xs:QName { <a>{$prefix}:{$local}</a> } return $q('fn', 'abs') |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |
FunctionCall-021[+]
X FunctionCall-021: declare function local:q ($prefix as xs:string, $local as xs:string) as xs:QName { <a>{$prefix}:{$local}</a> }; let $curried := local:q('fn', ?) return $curried('abs') |
no result | wrongError
expected: XPTY0117 actualCode: XPTY0004 |
pass | n/a
notXP20 |
n/a
notXQ10 |
n/a
notXP30 |
pass | n/a | pass | pass | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XQ30+, satisfied=true) was not met. |
wrongError
Expected error: XPTY0117. Found error: XPTY0004 |