Re: Error recovery

On 17/11/2012 20:27, Uche Ogbuji wrote:
> On Fri, Nov 16, 2012 at 7:53 PM, James Clark <jjc@jclark.com 
> <mailto:jjc@jclark.com>> wrote:
>
>     I have been writing a parser that does error recovery.
>
>     I have a case where I can't make up my mind which behaviour I
>     prefer and I would like to get this group's input.
>
>     Do you prefer
>
>       <e a=x/>
>
>     to be treated as
>
>     (a) <e a="x"/>, or
>
>     (b) <e a="x/">
>
>     ?
>
>
> I prefer (a) since it's the likeliest interpretation of the author's 
> intention.

That was my first instinct too, but it you changed it to

<p:command xmlns:p=http://saxon.sf.net/>

would that change your view?

Michael Kay

Received on Sunday, 18 November 2012 00:37:00 UTC