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 28884 - Editorial: Error conditions missing for fn:path
Summary: Editorial: Error conditions missing for fn:path
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 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2015-07-02 14:10 UTC by Priscilla Walmsley
Modified: 2016-12-16 19:55 UTC (History)
1 user (show)

See Also:


Description Priscilla Walmsley 2015-07-02 14:10:39 UTC
It seems that the description of the fn:path function should say what errors are raised in the case that $arg is not provided and the context item is absent or not a node. (Similar to, for example, the fn:root function) A section could be inserted:

Error Conditions
The following errors may be raised when $arg is omitted:

If the context item is absent, dynamic error [err:XPDY0002]
If the context item is not a node, type error [err:XPTY0004].
Comment 1 Jonathan Robie 2015-07-15 18:51:30 UTC
The Working Group agrees that these error conditions should be specified.  These are, of course, the same errors that XPath would use for the same conditions in general.
Comment 2 Michael Kay 2015-07-15 23:35:59 UTC
The change has been applied.