Re: [xml] SAX-like parsing of DTDs



On Thu, Feb 27, 2003 at 09:05:51AM -0800, Mark S Petrovic wrote:
Yes, I remember well, and respect that fact.  However, I am forced
to deal with an existing infrastructure that demands I know the order.
You may argue that this is not, then, XML according to the spirit of XML.
I will not contest - nor can I reasonably hope to change my condition.

  The problem is the way ATTLIST will be processed may not match
your expectations. You will get the callbacks in the order they get
processed in the DTD which may not match the order found in a single
external parsed entity. If you have

<!ATTLIST ...

&ext;

<!ATTLIST ...

 and that ext contains declarations then they will be intermixed.
Also some of the <!ATTLIST ... found may not be reported if they
are in IGNORE'd conditional sections.

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]