CharData
Chris Hubick
hubick at medlib.com
Tue Dec 9 19:44:51 GMT 1997
The proposed XML Spec (http://www.w3.org/TR/PR-xml-971208) states:
-----------
In the content of elements, character data is any string of characters which
does not contain the start-delimiter of any markup. In a CDATA section,
character data is any string of characters not including the
CDATA-section-close delimiter, "]]>".
[15] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
[19] CDSect ::= CDStart CData CDEnd
[21] CData ::= (Char* - (Char* ']]>' Char*))
[43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
-----------
Why this was changed makes no sense to me? According to the productions,
content can no longer contain "]]>". The text seems to imply that the
CharData production should be used for CDSect as well, but then why is
CDSect not:
[19] CDSect ::= CDStart CharData CDEnd
All this change seems to have done is disallow "]]>" in element content!
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list