xs:QName fails for non-literal input

Bug #898792 reported by Matthias Brantner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Nicolae Brinza

Bug Description

xs:QName(concat('local:', 'list')) fails with

1,1: type error [err:XPTY0004]: Cannot treat xs:string as xs:QName

but xs:QName("local:list") works

Related branches

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

BTW: casting to QName is allowed in XQuery 3.0 but wasn't in 1.0.

See Sec. "18.1.1 Casting from xs:string and xs:untypedAtomic" in F&O 3.0. In a note, it says:

This version also removes the rule that only a string literal (rather than a dynamic string) may be cast to an xs:QName

Changed in zorba:
milestone: 2.2 → 2.5
Changed in zorba:
milestone: 2.5 → none
Changed in zorba:
milestone: none → 2.7
Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → nobody
assignee: nobody → Nicolae Brinza (nbrinza)
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.