[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: PUBLIC id in notations

  • To: Anli Shundi <ashundi@t...>
  • Subject: Re: PUBLIC id in notations
  • From: Norman Walsh <Norman.Walsh@S...>
  • Date: Tue, 29 Jan 2002 11:06:21 -0500
  • Cc: "'Anderson, John'" <John@B...>, xml-dev@l..., W3C XML Schema IG <w3c-xml-schema-ig@w...>, xmlschema-dev@w...
  • In-reply-to: <339902DC0E58D411986A00B0D03D84320148F805@e...>(Anli Shundi's message of "Tue, 29 Jan 2002 10:35:32 -0500")
  • References: <339902DC0E58D411986A00B0D03D84320148F805@e...>
  • Sender: Norman Walsh <ndw@mercury>
  • User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

anli shundi
/ Anli Shundi <ashundi@t...> 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@S...   | 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. | 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.