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

Suggestion: Better default values for %p, %s and addition of comm on namespace prefixes in DTD

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Mon, 11 Dec 2000 12:52:49 -0700
Message-ID: <B2C1451A181BD411B88A00E018C1C19C08A91E@THOR>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Currently %p and %s's default values of '' would be rarely preferred except while defining schema for schemas.  'xsd:' and ':xsd' would be a better default for most uses.  XSLT, for example, can't
generate the internal subset declarations that would allow using the default namespace for references to elements in the target schema.

I'd recommend changing in the DTD:

<!ENTITY % p 'xsd:'>
<!ENTITY % s ':xsd'>

In addition (even if the defaults weren't changed), it would be useful if the attribute list of the schema element were something like this:

<!ATTLIST %schema;
   targetNamespace      %URIref;               #IMPLIED
   version              CDATA                  #IMPLIED
   %nds;                %URIref;               #FIXED 'http://www.w3.org/2000/10/XMLSchema'
   xmlns:x              %URIref;               #IMPLIED
   xmlns:target         %URIref;               #IMPLIED
   xmlns                %URIref;               #IMPLIED
   xmlns:import1        %URIref;               #IMPLIED
   xmlns:import2        %URIref;               #IMPLIED
   xmlns:import3        %URIref;               #IMPLIED    
   finalDefault         %complexDerivationSet; ''
   blockDefault         %blockSet;             ''
   id                   ID                     #IMPLIED
   elementFormDefault   %formValues;           'unqualified'
   attributeFormDefault %formValues;           'unqualified'
   %schemaAttrs;>

The combination would allow most schemas to be validated against the DTD without requiring the end user to define an internal subset.  Just the additional xmlns attribute definitions, should allow
most schemas to be validated without having to redefine %schemaAttrs.
Received on Monday, 11 December 2000 14:59:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT