W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Re: Comments on Part 0: Primer

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 03 May 2000 09:29:50 +0100
To: "Curt Arnold" <carnold@houston.rr.com>
Cc: <www-xml-schema-comments@w3.org>
Message-ID: <f5bk8hc6npd.fsf@cogsci.ed.ac.uk>
"Curt Arnold" <carnold@houston.rr.com> writes:

> 3.4 Undeclared target namespaces
> I have a problem with this.  If you are going to the point of defining a
> schema, these elements and attributes are in a conceptual namespace whether
> or not you give it a name.  The way targetNamespace is defined, I cannot
> write one schema that could be used to validate a XML 1.0 sans namespace
> document and also used in a to validate a document with namespace support.

That's precisely what you _can_ do.  Write the schema with no
targetNS, it can be used as is for no-namespace documents, and
included into schemas _with_ a targetNS and thereby appropriated for
use with that target.

  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 Wednesday, 3 May 2000 04:29:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:52 UTC