W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

Re: assigning schema to appInfo elements

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 05 Mar 2001 16:38:37 +0000
To: "Bob Schloss" <rschloss@us.ibm.com>
Cc: Matt Brown <matt@avolent.com>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5bae70tble.fsf@cogsci.ed.ac.uk>
"Bob Schloss" <rschloss@us.ibm.com> writes:

> There might be a way of specifying your own element, call it
> MattAppInfo, and specifying that it is in the substitution group
> with the appInfo element.  Then your element would have a complex
> type which would have the grammar you want.

Actually this is not allowed, although it's so reasonable I wish it
were.  As it stands _no_ element in the xs: namespace can be substituted,
because 'blockDefault' is '#all' at the top of the SforS.

> Another approach would be to insert some kind of XLink element in
> the content of appInfo which would point to your instructions held
> in a parallel XML document.  You can then have a schema for that
> parallel document.

That would work.

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 Monday, 5 March 2001 11:38:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT