[XPath] References to modules in XPath spec

XPath section 2.4.4 contains the sentence:

An unknown type might be encountered, for example, if the module in
which the given type is encountered does not import the schema in which
the given type is defined.

Modules, of course, are an XQuery concept. I suggest changing the
example to:

An unknown type might be encountered if a source document has been
validated using a schema that was not imported into the static context.

(It might also be useful to add this example to the XQuery spec).

There is another reference to modules in 3.1.5:

If the function call takes place in a module other than the module in
which the function is defined, this rule must be satisfied in both the
module where the function is called and the module where the function is
defined (the test is repeated because the two modules may have different
in-scope schema definitions.) 

I suggest deleting this sentence from the XPath version of the document.


Michael Kay

Received on Saturday, 7 February 2004 03:40:14 UTC