Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOMHandler with DocType.setInternalSubset() bug

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: Elliotte Harold <elharo AT metalab.unc.edu>, xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOMHandler with DocType.setInternalSubset() bug
  • Date: Thu, 22 Sep 2005 13:58:57 -0700

I think the fix you just checked into Verifier.java solves the problem. All my tests now pass, both with crimson and xerces.

(Though you'll want to remove the System.out.println statement leftover from debugging)

Thanks.
Wolfgang.

On Sep 22, 2005, at 1:37 PM, Wolfgang Hoschek wrote:

On Sep 22, 2005, at 11:36 AM, Elliotte Harold wrote:


OK. I think I see the problem now. It's not quite where I thought
it was. The issue is the parser used to check the internal DTD
subset, not the parser used to build the document at all.


Right. The issue is that setInternalSubset() does not accept what
parsing did accept happily. This breaks round tripping.
In order words, the Verifier's subset parser should not reject what
the original xml file parser accepted previously.
Wolfgang.



It's easy enough to fix, though I don't know how to write a
reproducible test case for this short of using a custom ClassLoader.


No idea why that might be necessary.

Wolfgang.

_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest






Archive powered by MHonArc 2.6.24.

Top of Page