[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Redefine and Import used together - is this valid?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 19 Sep 2006 12:36:17 +0100
To: Danny Vint <dvint@sack.dreamhost.com>
Cc: xmlschema-dev@w3.org, xml-dev@lists.xml.org
Message-ID: <f5bhcz4gkb2.fsf@erasmus.inf.ed.ac.uk>
Re: Redefine and Import used together - is this valid?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Danny Vint writes:

> I have the following situation:
>
> 1) Base industry standard schema (ACORD)
> 2) A schema that imports the ACORD schema (to reuse data types and
> some elements) that defines my organizations new elements and
> aggregates (ACME)
> 3) A schema that redefines #1 ACORD to modify existing elements and
> aggregates to include my new ACME elements.
>
> I then have a docuemnt instance the references #3.
>
> Xerces and XSV say my document and schemas are valid.

XSV accepts your package because it never processes a namespaced
schema document more than once if it can avoid it, so the nested,
potentially problematic, import in (2), does not cause a problem
because the ACORD schema document has already been processed (during
the processing of (3), so the 'schemaLocation' of the import in (2) is
ignored).

This is conformant behaviour, because the REC says that
'schemaLocation' on <xs:import> is a hint, which need not be followed.

But it's not _required_ behaviour, for better or worse.

I'd like to see a way for users to mandate such behaviour. . .

ht
- -- 
 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]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFFD9YxkjnJixAXWBoRAhs3AJ4u9n2bQD/1nkYbP4YcnZ2PE9IXxgCeO4CY
FiqsAOh2YY5s2Dfk/Y3uq1A=
=3fsp
-----END PGP SIGNATURE-----
Received on Tuesday, 19 September 2006 11:36:41 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.