[Bug 4595] 1.0.3dev: document(*) with undefined context item

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4595





------- Comment #1 from mike@saxonica.com  2007-06-05 08:02 -------
I've looked at a sample of these and I'm not convinced. XPDY0002 is a dynamic
error, and I think you should only raise a dynamic error for an expression that
contains no static errors.

K2-NodeTest-10
document(*)
is a call on an undefined function - a static error

K2-NodeTest-19 
document-node(schema-element(thisTypeIsNotRecognizedExample.Com))
uses an element name that's not in an imported schema - a static error

K2-NodeTest-23 
element(notBound:ncname)
uses an undeclared namespace prefix - a static error

and a few others in the same vein. I don't see how a dynamic error can be
justified for any of these cases.

Received on Tuesday, 5 June 2007 08:02:12 UTC