Re: how do I detect internal subset when part of external subset?
Elliotte Harold <[email protected]>
| Newsgroups | gmane.text.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Jacob Kjome wrote: > In any case, I think I've got the internal subset stuff working, except > for one thing. Take the following document... > > <?xml version="1.0" standalone="no"?> > <!DOCTYPE document SYSTEM "document.dtd" [ > <!ENTITY head SYSTEM "header.xml"> > <!ENTITY foot SYSTEM "footer.xml"> > <!ENTITY torso SYSTEM "body.xml"> > <!ENTITY erh "Elliotte Rusty Harold"> > ]> > <document> > &head; &torso; &foot; > </document> > > The only part of this that ends up in the internal subset is the "erh" > entity. That is, the internalEntityDecl() method gets called only for > the "erh" entity and is not notified at all for the other entities. The first three are external entity declarations. (i.e. even though they;re in the internal DTD subset they declare external entities.) Perhaps there's an externalEntityDecl method hiding somewhere? -- Elliotte Rusty Harold [email protected] XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim