File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
main/java/org/exist/xquery/value Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,6 @@ public AtomicValue convertTo(int requiredType) throws XPathException {
512
512
return new GMonthDayValue (value );
513
513
case Type .UNTYPED_ATOMIC :
514
514
return new UntypedAtomicValue (getStringValue ());
515
- case Type .QNAME :
516
- return new QNameValue (null , new QName (value , XMLConstants .NULL_NS_URI ));
517
515
default :
518
516
throw new XPathException (ErrorCodes .FORG0001 , "cannot cast '" +
519
517
Type .getTypeName (this .getItemType ()) + "(\" " + getStringValue () + "\" )' to " +
Original file line number Diff line number Diff line change
1
+ xquery version "3.1" ;
2
+
3
+ module namespace t="http://exist-db.org/xquery/test" ;
4
+
5
+ declare namespace test="http://exist-db.org/xquery/xqsuite" ;
6
+
7
+ declare
8
+ %test:assertFalse
9
+ function t:castable-test () {
10
+ "0" castable as xs:QName
11
+ };
You can’t perform that action at this time.
0 commit comments