Project

Profile

Help

Bug #6368

closed

Misleading diagnostic for XQuery computed element constructors

Added by Michael Kay 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
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.

Actions #1

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

Also available in: Atom PDF