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

RE: schema arrangement or architecture

From: Michael Kay <mike@saxonica.com>
Date: Tue, 3 Jun 2008 09:00:22 +0100
To: "'Boris Kolpackov'" <boris@codesynthesis.com>, "'Andrew Welch'" <andrew.j.welch@gmail.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <AC34518708BF4749B815BE3B832B1941@Sealion>
RE: schema arrangement or architecture

> My ideal schema has all its types defined globally (e.g., no
> anonymous types), and all its elements and attributes --
> locally, except for the elements that are valid document roots.

XQuery currently allows you to validate against a global element declaration
but not against a type. With schema-aware XSLT and XQuery you may often want
to validate document fragments. So I'm in favour of using global element
declarations almost everywhere. By contrast, I don't think an anonymous type
does much harm, because it's a completely undisruptive change to promote it
subsequently to a named type. I tend to make all my simple types global,
because they are very often reused, but I often keep complex types local.

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 3 June 2008 08:01:04 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.