Lists Home |
Date Index |
- From: Curt Arnold <CurtA@techie.com>
- To: "Roger L. Costello" <email@example.com>, firstname.lastname@example.org
- Date: Sat, 26 Aug 2000 13:56:10 -0500
I've mentioned problems with this in a few messages on the schema
comments list and it is embedded in LC-117:
In my opinion, if you are going to the effort of writing a schema, you
have a namespace and should assign it a namespace identifier. Whether
you use it or not in an instance is something else and should be handled
in the binding, not the schema. The current draft would require you to
have two distinct schemas for each flavor XHTML, one for when the
instance document declared the namespaces and another for when no
namespaces were declared.
In the current state, you would use xsi:noNamespaceSchemaLocation
(section 2.6.3 of the Schema Part 1)
The schema that you wrote would be required not to have a
targetNamespace attribute per section 6.3.2, point 3 (removal of that
restriction would eliminate the need for distinct schemas for namespaced
and non-namespace'd instances).
My recommendation would be to make targetNamespace required and remove
the requirement that a schema referenced from a
noNamespaceSchemaLocation have no targetNamespace attribute.