Re: [xml] DTD validation issue



On Tue, Feb 26, 2008 at 09:35:25AM -0500, Daniel Veillard wrote:
  You forgot to mention the full set of errors

        Sorry: an unverified cut-and-paste of a wrong cut-and-paste.


  when you first parsed the document, it uses a namespace, which is
undeclared. So the document is not okay w.r.t. namespaces. The problem
is that the prefix is dropped from the document:
[...]
  Which sounds like a bug but completely unrelated to what you're trying to
link to , it's not at all related to validation (nor postvalidation)

        I think the bug is caused by the fact that the attributes
default values are write down in the parser context ("xmlHashTablePtr
attsDefault"); i suppose they must be write down in the internal or in
the external subset. When xmlParseDTD() (xmlSAXParseDTD()) return the
dtd pointer, the 'attsDefault' are missed.

                massimo morara
-- 

"There are 10 kinds of people in this world: people who understand
 binary, and people who don't."
-- unknown




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