Bug 21893 - [XP30] Casting to QName - error codes
[XP30] Casting to QName - error codes
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.0
Candidate Recommendation
PC All
: P2 normal
: ---
Assigned To: Jonathan Robie
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks: 21723
  Show dependency treegraph
 
Reported: 2013-05-01 10:47 UTC by Michael Kay
Modified: 2013-06-19 10:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kay 2013-05-01 10:47:39 UTC
XPath 3.0 claims in 2.5.2 that casting to a namespace-sensitive type raises XPTY0117 if the prefix is not in scope.

This is incorrect. F+O, which has the definitive specification for casting, says this is a dynamic error FONS0004.

This must be a dynamic error rather than a type error because it depends on knowledge of the actual supplied value.

XPTY0117 is in fact a different error: it is raised when an untypedAtomic value is supplied to a function that expects a QName (regardless whether the prefix is in scope or not). The error is correctly described in 3.1.5.2 (function conversion rules) but is wrongly described in the error codes appendix.
Comment 1 Jonathan Robie 2013-05-07 16:17:10 UTC
I agree.


  翻译: