Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Re: Yet another crimson DTD bug

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Re: Yet another crimson DTD bug
  • Date: Fri, 08 Apr 2005 09:23:10 -0400

I think I finally figured out how to use Locator to determine whether we're in the internal or external DTD subset. Basically XOM now compares the document base URL (system ID) to the system ID provided by Locator.getSystemID() in each declaration callback such as elementDecl. If they match we;'re in the internal DTD subset. if they don't, then we're in the external DTD subset.

This seems to work. i.e. all the tests pass. However, there may be unexpected side effects, so if anyone notices anything else breaking, please holler.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
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




Archive powered by MHonArc 2.6.24.

Top of Page