- From: Chris Maden <crism@ora.com>
- Date: Sun, 10 May 1998 13:46:27 -0400 (EDT)
- To: xml-dev@ic.ac.uk
- CC: xml-editor@w3.org
[Adam M. Donahue] > I just want to clear something up about reading the XML productions. > Am I correct in the following assumptions: > > A character or sequence of characters between single quotation > marks, e.g., 'ABC' is to be represented literally. Correct so far. > There must be no space characters between the quotation marks and > the entity in the production. So def ::= ' ABC ' would not be legal > for representing " ABC " .. you'd need to use SP 'ABC' SP. Not true. def ::= ' ABC ' means that _def_ is space-A-B-C-space. > However, when spaces do exist between the quotation marks, then the > name(s) inside are to be treated as productions and the *quotation > marks* as literals. No. I think you're being confused by a bug in the spec, in production [24]. It should correctly read: [24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"') This bug (and a few others) has been known to the editors and acknowledged for some time, but for some unknown reason the errata page states that there are no errors in the specification. -Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
Received on Sunday, 10 May 1998 13:48:00 UTC