W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

imports, includes and namespace prefixes

From: Curt Arnold <carnold@houston.rr.com>
Date: Fri, 21 Apr 2000 12:12:23 -0500
Message-ID: <005801bfabb4$c27e8e00$b344a018@houston.rr.com>
To: <www-xml-schema-comments@w3.org>
Namespace prefix definitions (xmlns:prefix="uri" attributes) are not
accessible from XSLT (and probably from anything else that tries to hide the
details of namespacing from you) which means that it is not possible to
resolve qualifed name references to types, for example, in those
environments.  I'd suggest adding an explicit schemaPrefix attribute to the
import and targetPrefix attribute to the schema element.  At least, this
information could be used as decoration in the documentation.  I am able to
work around this using equivalent attributes from another namespace, but it
seems like a general problem.

Of course, any implementation has to have some limit on the depth of nested

A complicated issue is nested imports.  It should be moderately common for
multiple imports to in turn import some common namespace but possibly from
different resources.  Trying to resolve the potential conflicts seemed

How I've currently addressed it in my preprocessor is that only imports that
in the schema being compiled add information to the validation package.  If
an import appears in an include or import and its namespace didn't have an
import in the schema being compiled, an informative message is issued (but
which might result in some unsatisfied references).
Received on Friday, 21 April 2000 13:22:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC