[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: PUBLIC id in notations - oops
Title: RE: PUBLIC id in notations - oops To be honest, I'm not convinced: [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' As far as I know, the combination of these productions means that NOTATION can have either ExternalId OR PublicId. ExternalId is defined such that it may have either a SYSTEM identifier or PUBLIC and System together. This gives three possibilities in DTDs:
By my definition, this makes the PUBLIC identifier optional, not required. I was mistaken about XSD in one respect - it does make systemId optional, but in at least 2 out of 3 places (schema for schema and schema representation), publicId is required (and, as I mentioned, enforced as so by a number of processors/validators). I would be delighted to be shown otherwise, 'cos it would make my life easier. John _______________________________________________________
- putting the "X" in "XML" - -----Original Message-----
Please check again: XML 1.0 Rec requires PublicId-s at notations. See http://www.w3.org/TR/REC-xml#Notations XML Schema Spec at http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations
Anli Shundi
Anyone who can advise:
XML1.0 says that the PUBLIC identifier is optional. The schema rec cannot make up it's mind.
Can anyone explain:
_______________________________________________________
The information transmitted by this e-mail message is intended solely for the use of the person to whom or entity to which it is addressed. The message may contain information that is privileged and confidential. Disclosure, dissemination, distribution, review, retransmission to, other use of or taking any action in reliance upon this information by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail (including the original message with your reply) and then delete and discard all copies of the message. Although we have taken precautions to minimize the risk of transmitting viruses we nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by viruses. The information transmitted by this e-mail message is intended solely for the use of the person to whom or entity to which it is addressed. The message may contain information that is privileged and confidential. Disclosure, dissemination, distribution, review, retransmission to, other use of or taking any action in reliance upon this information by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail (including the original message with your reply) and then delete and discard all copies of the message. Although we have taken precautions to minimize the risk of transmitting viruses we nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by viruses.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|