W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > December 2011

RE: FW: XML grammar error?

From: Grosso, Paul <pgrosso@ptc.com>
Date: Wed, 21 Dec 2011 11:47:03 -0500
Message-ID: <9B2DE9094C827E44988F5ADAA6A2C5DA04503B50@HQ-MAIL9.ptcnet.ptc.com>
To: <public-xml-core-wg@w3.org>
I sent a response at
http://lists.w3.org/Archives/Public/xml-editor/2011OctDec/0014

paul

> -----Original Message-----
> From: John Cowan [mailto:cowan@ccil.org] On Behalf Of John Cowan
> Sent: Monday, 2011 December 12 10:51
> To: Grosso, Paul
> Cc: public-xml-core-wg@w3.org
> Subject: Re: FW: XML grammar error?
> 
> John Cowan scripsit:
> 
> > There is no ambiguity here.  A - B matches if A matches, provided B
> does
> > not also match what A matches.  The regular expression (in
> conventional
> > notation) /^*]]>*$/ matches any string that contains at least one
> ']]>'.
> > It is ambiguous in the sense that if there are multiple tokens of
> ']]>'
> > in the string, different matchers will match ']]>' in the pattern
> against
> > the first or the last.  But that makes no difference to the meaning
> of
> > the pattern.
> 
> Oops, the pattern should be /^.*]]>.*$/.  But I think this ought to be
> our official response to this one.
> 
> --
> If you understand,                      John Cowan
>    things are just as they are;         http://www.ccil.org/~cowan
> if you do not understand,               cowan@ccil.org
>    things are just as they are.
Received on Wednesday, 21 December 2011 16:47:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 December 2011 16:47:37 GMT