[Home] [By Thread] [By Date] [Recent Entries]

  • From: richard@c... (Richard Tobin)
  • To: xml-dev@i...
  • Date: 27 Jan 2000 13:14:32 GMT

In article <00b601bf68c3$75fb0600$8d6536ca@S...>,
Amit Rekhi <amitr@a...> wrote:

>I have not been able to understand the reason why production rule [14]:
>
>CharData: [^<&]* - ([^<&]*  ']]>'  [^<&]*)
>
>is not written like:
>
>CharData: [^<&]* -  ']]>'

Your rule would accept any string of non-<& characters except the string
']]>'.  The rule in the spec accepts any string of non-<& characters 
except ones *containing* the string ']]>'.


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

It rejects them both, as intended.

Actually, the rule could have been more simply written

  [^<&]* - (Char*  ']]>'  Char*)

-- Richard

-- 
Spam filter: to mail me from a .com/.net site, put my surname in the headers.

"The Internet is really just a series of bottlenecks joined by high
speed networks." - Sam Wilson

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

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



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member