- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 20 Sep 2001 10:48:58 +0100
- To: "Dunning, John" <JDunning@goSPS.com>
- Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
"Dunning, John" <JDunning@goSPS.com> writes: > I'm wondering if there is a mechanism in XML Schema similar to the > INCLUDE/IGNORE marked sections in DTD construction. > > I am employing the 'salami slice' design in order to reuse (over 500) > component definitions, but I want certain attribute values to be required in > some document types and optional in others, while still having each > component be a valid schema in itself. How might I go about this? There is no conditional processing as such. You can achieve a similar effect by using separate schema documents for each of your components, then assembling them either on the command line or via a shim which xs:includes the set you want. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh W3C Fellow 1999--2001, part-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 20 September 2001 05:48:27 UTC