W3C home > Mailing lists > Public > public-microxml@w3.org > November 2012

Re: Error recovery

From: Michael Kay <mike@saxonica.com>
Date: Sun, 18 Nov 2012 00:36:38 +0000
Message-ID: <50A82D96.50604@saxonica.com>
To: public-microxml@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 18 November 2012 00:37:00 GMT