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

Schema DTD doesn't allow xmlns attributes on <annotation>

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Thu, 30 Nov 2000 19:39:58 -0700
Message-ID: <B2C1451A181BD411B88A00E018C1C19C08A8DF@THOR>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Of all the elements defined in the DTD's, only <annotation> does not allow you to provide an internal entity to allow namespace prefix declarations, all that should be needed is to add the ATTLIST to
the XMLSchema.dtd.

<!ELEMENT %annotation; (%appinfo; | %documentation;)*>
<!ATTLIST %annotation; %annotationAttrs;>

p.s. I'm not that thorough, I had an XSLT generated schema that had spurious xmlns prefix assignments and couldn't fix it with an internal subset.

p.s.s. wouldn't it be beneficial if attribute declarations for xmlns and xmlns%s; were added to all ATTLIST's?
Received on Thursday, 30 November 2000 21:47:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:49 UTC