Re: [xml] entity substitution

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Sep 22 2000 - 17:11:38 EDT


  What version are you using. Are you using SAX or DOM ?

> I have not changed the value for substituting entities, so it's is still
> 0. I have explicitly called xmlSubstituteEntitiesDefault(0) as a test,
> but nothing changed. Additionally, I have not specified entities of any
> kind. Why is xmlGetDocEntity being called if we are not supposed to be
> substituting entities?

   To support predefined entities which are automatically substituted.
To verify some wellformedness constraints one the entities content too.

> I'm sure the problem exists in my understanding of libxml's entity
> substitution behavior, rather than the library itself. If anyone can
> enlighten me, it would be most appreciated.

   A gdb backtrace is not very helpful without the associated version
number or more informations about the interface used. Especially using
SAX clearly makes entity processing far more complex :
  http://xmlsoft.org/#Entities

   As this paragraph explain too, xmlSubstituteEntitiesDefault() does
not mean that the parser will not try to access the entity, but that
the entity reference will (not) be replaced by its content in the output

   In your case, the problem comes from doc being NULL when calling the
entity resolution routine. This bug was fixed in the last month, so what
version are you using ???

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Sep 22 2000 - 17:43:26 EDT