Re: how do I detect internal subset when part of external subset?
Jacob Kjome <[email protected]> Fri, 07 Apr 2006 18:16:42 -0500
| Newsgroups | gmane.text.xml.general |
|---|---|
| Message-ID | <[email protected]> |
At 05:39 AM 4/7/2006, you wrote: >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? > Yep, that's what confused me. I figured it out shortly after I sent the email. later, Jake >-- >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 > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] > > >