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

public attribute of a notation

From: Waterfeld, Dr., Walter <Walter.Waterfeld@softwareag.com>
Date: Tue, 14 May 2002 18:34:08 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
Hello XML Schema Working group,

if my reading of the W3C schema spec is correct, it contains a contradiction
on the question, whether the public attribute of a notation is optional or

The meta schema says it is required:

<xs:element name="notation" id="notation">
     <xs:extension base="xs:annotated">
      <xs:attribute name="name" type="xs:NCName" use="required"/>
      <xs:attribute name="public" type="xs:public" use="required"/>
      <xs:attribute name="system" type="xs:anyURI"/>

Also the XML representation of the components implicitely says required:


3.12.1 notation declaration schema component says it is optional:
Schema Component: Notation Declaration
An NCName as defined by [XML-Namespaces].
{target namespace}
Either ·absent· or a namespace name, as defined in [XML-Namespaces].
{system identifier}
Optional if {public identifier} is present. A URI reference.
{public identifier}
Optional if {system identifier} is present. A public identifier, as defined
in [XML 1.0 (Second Edition)].

The optional interpretation is also contained in the original XML spec
Notation Declarations
[82]    NotationDecl    ::=    '<!NOTATION' S Name S (ExternalID | PublicID)
S? '>' [VC: Unique Notation Name]
[83]    PublicID    ::=    'PUBLIC' S PubidLiteral

As notation seems to be anyway just a container for the original DTD
notations the optional
interpretation is the best choice.

Best regards
Walter Waterfeld
R&D Software AG
Received on Wednesday, 15 May 2002 00:40:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC