Re: Suspected Error in XML 1.0 Specification

>From: David_Wittler/ATL/Lotus@lotus.com
>Date: Wed, 25 Mar 1998 11:28:37 -0500
>
>In http://www.w3.org/TR/1998/REC-xml-19980210 "CharData" is defined as
>follows:
>
>[14]  CharData ::=  [^<&]* - ([^<&]* ']]>' [^<&]*)
>
>As such it matches a string of 0 characters.  Shouldn't it be defined as:
>
>[14]  CharData ::=  [^<&]+ - ([^<&]* ']]>' [^<&]*)
>
>CharData is only used in the production:
>
>[43]  content ::=  (element | CharData | Reference | CDSect | PI |
>Comment)*
>
>This already allows "content" to be empty.  If the XML processor were
>parsing
>
><tag><\tag>
>
>it could legally generate any number of emtpy CharData objects by the first
>definition.

Thanks for the note.  On first glance, it looks like you're right; I'll
need to look at it carefully to be sure.

-C. M. Sperberg-McQueen
 cmsmcq@uic.edu, tei@uic.edu

Received on Wednesday, 25 March 1998 12:23:05 UTC