Problem in understanding rule [14] of XML spec

Amit Rekhi amitr at
Thu Jan 27 12:44:24 GMT 2000


I have not been able to understand the reason why production rule [14]:

CharData: [^<&]* - ([^<&]*  ']]>'  [^<&]*)

is not written like:

CharData: [^<&]* -  ']]>'

- Why did the ']]>' have to be preceeded and suceeded by [^<&]* ?

- How would rule [14] behave with the following strings?
1) abc]]>
2) abc]]>def

Thanks in advance for any replies,

Amit Rekhi,
Software Engineer,
A.B. Infosys Private Limited,
B-102, Gulmohar Park,
New Delhi - 110049,
Tel: +91-11-6512816,6512822,6968976
Fax: +91-11-6518873
EMail: amit at

Note: Not related to Infosys Technologies Limited

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom at the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email at your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.

More information about the Xml-dev mailing list