Re: [xml] Re: Is it possible to skip illegal UTF-8 characters when parsing?



Steinar, please excuse me for butting in.

>   I think you're wrong, I'm part of that working group handling
> xml-editor w3 org feedback, and I'm concerned that the wording might
> not be clear enough, that's all !
The words are clear enough. The problem is that they do not correspond with the EBNF productions:
 
[1]    document    ::=    prolog element Misc*
 
[39]    element    ::=    EmptyElemTag
| STag content ETag
 
[43]    content    ::=    CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* /* */
 
[14]    CharData    ::=   
[^<&]* - ([^<&]* ']]>' [^<&]*)
 
Production 14 should *probably* be defined in terms of Char which is defined in production 2:
 
[2]    Char    ::=    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
 
 
Dave.

----- Original Message -----
From: "Daniel Veillard" <veillard redhat com>
To: "Steinar Bang" <sb dod no>
Cc: <xml gnome org>
Sent: Monday, August 12, 2002 2:47 PM
Subject: Re: [xml] Re: Is it possible to skip illegal UTF-8 characters when parsing?


> On Mon, Aug 12, 2002 at 03:38:28PM +0200, Steinar Bang wrote:
> > >     http://www.w3.org/TR/REC-xml#charsets
> >
> > Yes.  Production [2] is the production used in both comments and CDATA
> > sections, but as far as I can tell, not in CharData.
>
>   "A parsed entity contains text, a sequence of characters,"
>
> all the content processed by a parser comes from parsed entities,
> and production [2] specifies what are the allowed ranges.
>
> > If you think I'm right about this error, and if you think it is
> > important enough, I can put in a message to xml-editor w3 org
> >
> > If I'm wrong, there is no point in bothering them about it.
>
>   I think you're wrong, I'm part of that working group handling
> xml-editor w3 org feedback, and I'm concerned that the wording might
> not be clear enough, that's all !
>
> Daniel
>
> --
> Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
> veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
> _______________________________________________
> xml mailing list, project page  http://xmlsoft.org/
> xml gnome org
> http://mail.gnome.org/mailman/listinfo/xml
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]