From a5fdb47a4c064662889f9b264e7b94d1f5aa6bbf Mon Sep 17 00:00:00 2001
From: Michael Kay
xml
namespace
+ are to be used (for example, schema-attribute(xml:space)
, then the prolog should
+ include a declaration in the form import schema "http://www.w3.org/XML/1998/namespace"
.
+ No prefix should be supplied (the xml
prefix is predeclared), and no location hint
+ should be provided (the schema definitions for the namespace are built in, and cannot be varied).If the schema import declaration specifies default element namespace
then the prolog must not contain a default element namespace
or default type namespace
.
The first at
- keyword are optional location hints, and can be interpreted or disregarded in an
- implementation-dependent way. Multiple location hints might be used to indicate more than one
- possible place to look for the schema or multiple physical resources to be assembled to form
- the schema.
-
- If the target
- namespace is http://www.w3.org/2005/xpath-functions
then the schema described in
-
The first
A schema import that specifies a zero-length string as target namespace is considered to
import a schema that has no target namespace. Such a schema import must not bind a namespace
prefix Q{}local-name
Q{}local-name
.
+
+ The at
keyword are
+ optional location hints, intended to allow a processor to locate schema documents containing
+ definitions of the required schema components in the target namespace. Processors
If the target namespace is one for which the processor has built-in knowledge,
+ for example the schema for a
In other cases, + all the location hints are dereferenced, treating them as relative URIs relative + to the static base URI of the query module.
If any location hint cannot be dereferenced, then that location hint is disregarded + (optionally with a warning); but if none of the location hints can be dereferenced, then + a static error is reported.
If dereferencing any location hint yields a resource that cannot be parsed as a valid + XSD schema document with the correct target namespace, then a static error is reported.
If multiple location hints are dereferenced, yielding multiple schema documents
+ A, B, and C, then they should be treated as if there were a
+ single schema document (in the requested target namespace) containing xs:include
+ declarations referencing A, B, and C. This implies that the
+ several schema documents must together comprise a valid schema, for example there cannot be two
+ different type definitions with the same name.
Notwithstanding the previous rule, if a processor is able to establish that two or more
+ location hints refer to identical or equivalent schema documents, then the duplicates
Processors that adopted a different strategy in earlier releases
+ If the target
+ namespace is http://www.w3.org/2005/xpath-functions
then the schema described in
+
It is a
The first
The at
keyword are
- optional location hints, intended to allow a processor to locate schema documents containing
- definitions of the required schema components in the target namespace. Processors
at
keyword are
+ optional location hints, and can be interpreted or disregarded in
+ an All the location hints are dereferenced, treating them as relative URIs relative - to the static base URI of the query module.
If any location hint cannot be dereferenced, then that location hint is disregarded - (optionally with a warning); but if none of the location hints can be dereferenced, then - a static error is reported.
If dereferencing any location hint yields a resource that cannot be parsed as a valid - XSD schema document with the correct target namespace, then a static error is reported.
If multiple location hints are dereferenced, yielding multiple schema documents
- A, B, and C, then they should be treated as if there were a
- single schema document (in the requested target namespace) containing xs:include
- declarations referencing A, B, and C. This implies that the
- several schema documents must together comprise a valid schema, for example there cannot be two
- different type definitions with the same name.
Notwithstanding the previous rule, if a processor is able to establish that two or more
- location hints refer to identical or equivalent schema documents, then the duplicates
Processors that adopted a different strategy in earlier releases
It is a