- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Thu, 08 Jul 2004 10:21:26 +0100
- To: "David Kruppke" <kruppke@gefeg.com>
- Cc: <xmlschema-dev@w3.org>
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 ·QName· to resolve to a schema component . . . the ·namespace name· of the ·QName· is the same as one of the following: * The ·actual value· of the targetNamespace [attribute] of the <schema> element information item of the schema document containing the ·QName·. * The ·actual value· 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 Edinburgh 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@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 8 July 2004 05:21:29 UTC