On Wed, Nov 22, 2006 at 12:55:27PM -0500, christophe barbe wrote:
> Hi All,
> 
> I am trying to parse a document with entities using libxml2:
> 
> <?xml version="1.0" encoding="UTF-8"?>
>    <!DOCTYPE schema [
>     <!ENTITY ent1 "abc">
>     <!ENTITY ent2  "&ent1;def">
> ...
> 
> It looks like libxml does not handle the fact that one entity is defined
> in term of another.
> 
> Is it a legal use of entities?

  yes

> Am I correct in assuming that libxml can not handle this use of
> entities?

  no
  
> I am not sure if the internal tree could handle it properly.

  I am sure it should be able to handle this properly

> The original XML file is a schema included in the following IETF draft:
> 
> http://www.ietf.org/internet-drafts/draft-ietf-simple-xml-patch-ops-02.txt
> 
> The entities are used, as macros, to define the regular expression for
> xpath expressions.

  No idea what your problem is. If you have a problem reproduceable with
xmllint please provide them as attachment and describe the problem.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | 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/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to