This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26668 - fn:trace, fn:error
Summary: fn:trace, fn:error
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 09:06 UTC by Christian Gruen
Modified: 2014-09-09 18:29 UTC (History)
0 users

See Also:


Attachments

Description Christian Gruen 2014-08-26 09:06:21 UTC
Two minor suggestions:

1. fn:trace($value as item()*) as item()*

The trace() function is very helpful for debugging. In many cases, no label is required, so I believe a one-arity-signature of this function would be beneficial.

2. fn:error($code as xs:QName?) as none

The one-arity-signatures of this function expects a QName as argument, whereas in the other signatures the QName can also be empty (xs:QName?). As I can see no reason for this particular exception, I would propose to align this signature with the other ones.
Comment 1 Michael Kay 2014-09-09 16:09:55 UTC
The WG accepted the proposed changes.
Comment 2 Michael Kay 2014-09-09 18:29:36 UTC
The changes have been applied.