Re: [xml] Re: [Bug 126351] Changed - Entity resolution failed



On Fri, Nov 07, 2003 at 09:44:50AM +0100, Karl Eichwalder wrote:
Daniel Veillard <veillard redhat com> writes:

What I pointed to is IMHO very clear:
  http://www.w3.org/TR/REC-xml#NT-TextDecl
---------------------
  4.3.1 The Text Declaration

  External parsed entities should each begin with a text declaration.
  Text Declaration
  [77]    TextDecl    ::=    '<?xml' VersionInfo? EncodingDecl S? '?>'
---------------------


Problem: "should" is not defined in "1.2 Terminology".

  The production rule is normative, it is a fatal error, believe me !

My conclusion is right, you must add the encoding declaration in the
included entities (or drop the TextDecl altogether if using UTF-8,

Okay, that's define in [78] - I did'nt read the REC carefully enough.

  Sorry for letting this go through. I'm pretty sure I did implement
that check a couple of years ago, but it somewhat disapeared, I don't 
know why :-\

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/



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