This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Error XTDE0800 seems to be redundant, given the existence of error XTDE0070. The former just describes a specific situation in which the context item becomes undefined. I suggest that XTDE0800 be deleted. ERR XTDE0070 "When the focus is undefined, evaluation of any expression that references the context item, context position, or context size results in a non-recoverable dynamic error." ERR XTDE0800 "Within the body of a stylesheet function, the focus is initially undefined; this means that any attempt to reference the context item, context position, or context size is a non-recoverable dynamic error." Thanks, Joanne
At the 23 June telcon, the XSL WG decided to delete XTDE0800.
I have updated the spec, deleting error XTDE0800 and replacing it with a reference to XTDE0070. However, since the context item is generally referenced from within an XPath expression, I wonder whether we shouldn't go further, and use the XPath error XPDY0002? Michael Kay
Decided not to pursue the suggestion of using the XPath error code. The bug is now fixed and will shortly (or momentarily, as the Americans say...) be closed.