Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Indirect imports (XML Spy versus XERCES) [Thread Next] Creating an XML Schema that will validate and accept any variable element name.To: xmlschema-dev@--.--- Date: 7/2/2004 9:57:00 AM
This is sure a FAQ. . .
xs:import plays _two_ roles:
1) It allows references by QName to components in namespaces other
than the target namespace of the enclosing <xs:schema>;
2) It provides a hint about where to find a schema document for that
namespace.
The first very clearly only works within single schema documents.
<xs:include> is _not_ a text substitution facility.
The relevant constraint [1] says:
"For a =B7QName=B7 to resolve to a schema component . . . the
=B7namespace name=B7 of the =B7QName=B7 is the same as one of the follo=
wing:
* The =B7actual value=B7 of the targetNamespace [attribute] of the
<schema> element information item of the schema document
containing the =B7QName=B7.
* The =B7actual value=B7 of the namespace [attribute] of some <import=
>
element information item contained in the <schema> element
information item _of that schema document_ [emphasis added].
ht
[1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#src-resolve
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinbur=
gh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@i...
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged =
spam]
From nobody@w... Thu Jul 8 14:21:33 2004
Return-Path: <nobody@wiggum | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
