#272 Atomizing name of computed element

v8.2
closed
5
2012-10-08
2004-12-22
Michael Kay
No

In XQuery, in a computed element constructor, the
result of the expression used to compute the element
name is not atomized.

This means that an expression of the form:

let $v := <e>abc</e>
return
element {$v} {()}

results in:
XT0820: Computed element name has incorrect type

Applies to 8.1.1 and 8.2 (and probably all earlier
releases).

Circumvention: use data($v).

Source fix: in net.sf.saxon.instruct.Element, change
line 95 to

elementName = TypeChecker.staticTypeCheck(elementName,
SequenceType.SINGLE_ATOMIC, false, role, env);

Test case added: qxmp200

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks