W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Re: PUBLIC id in notations

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Tue, 29 Jan 2002 11:06:21 -0500
To: Anli Shundi <ashundi@tibco.com>
Cc: "'Anderson, John'" <John@Barbadosoft.com>, xml-dev@lists.xml.org, W3C XML Schema IG <w3c-xml-schema-ig@w3.org>, xmlschema-dev@w3.org
Message-ID: <87g04pgn0i.fsf@nwalsh.com>
/ Anli Shundi <ashundi@tibco.com> was heard to say:
| Please check again:
|
| XML 1.0 Rec requires PublicId-s at notations.  See
| http://www.w3.org/TR/REC-xml#Notations
| <http://www.w3.org/TR/REC-xml#Notations> 

I think you've read that wrong,

  [82] NotationDecl ::= '<!NOTATION' S Name S
                         (ExternalID | PublicID) S? '>'

What's required is an ExternalID or a PublicID. In other words, not
only are public identifiers not required, system identifiers aren't
required either. (One or the other, or both must be present, though.)

| XML Schema Spec at http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations
| <http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations> 
| says only that either the Public or System Identifiers must be present.

True, that's 3.12.1.

| In 3.12.2 "XML Representation of Notation Declaration", and in the schema
| for Schema, it is given as mandatory (and is treated this way by a number of
| processors). Of course, the schema for schemas has no choice, since at least
| one of system or public is required and XSD can't express this as a
| co-constraint.

But it does look like there's an erratum here, arising almost certainly from
the schema for schemas where the public attribute on an xs:notation is
required.

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@Sun.COM   | All along the untrodden paths of the future, I
XML Standards Engineer | can see the footprints of an unseen hand.--Sir
XML Technology Center  | Boyle Roche
Sun Microsystems, Inc. | 
Received on Tuesday, 29 January 2002 11:08:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT