Actions
Bug #6368
closedMisleading diagnostic for XQuery computed element constructors
Start date:
2024-03-03
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
The query
element{'xxx'[current-date() lt xs:date('1900-01-01')]}{content}
produces the confusing error message
An empty sequence is not allowed as the @name attribute of element
The message was designed for XSLT, and is referring to the xsl:element/@name
attribute, but for XQuery it is highly misleading.
Updated by Michael Kay 2 months ago
- Status changed from New to Closed
- Fix Committed on Branch trunk added
- Platforms .NET, Java added
Decided to fix this on the main (13) branch only.
Please register to edit this issue
Actions