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



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 following entity:
---------
<?xml version='1.0'>
<foo/>
---------

  is fine as a document.

Okay, but the constraint is defined in clause [78] ;)

    http://www.w3.org/TR/REC-xml#wf-entities

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.

Karl



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