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 21014 - [XPROCTS] Test err:XD0026 #005
Summary: [XPROCTS] Test err:XD0026 #005
Status: NEW
Alias: None
Product: XML Processing Model
Classification: Unclassified
Component: Pipeline language (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Norman Walsh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 16:59 UTC by Tim Mills
Modified: 2013-02-15 16:59 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2013-02-15 16:59:39 UTC
This test expects XD0026 when evaluating:

   <p:when test="/foo">

The description of XD0026 is:

    It is a dynamic error if the select expression makes reference to the context node, size, or position when the context item is undefined.

    See: p:variable, p:option, p:with-option, p:with-param

Thus it does not apply to the test expression.  The test should expect err:XD0023 instead (or the specification is incorrect).

    It is a dynamic error if an XPath expression is encountered which cannot be evaluated (because it is syntactically incorrect, contains references to unbound variables or unknown functions, or for any other reason).

    See: XPaths in XProc

The existence of XD0023 really makes XD0026 redundant.