Commit b6d27f19 by Chris Burdess Committed by Tom Tromey

SAXEventSink.java: Ignore element declarations if not currently parsing the DTD.

2005-03-10  Chris Burdess  <dog@bluezoo.org>

	* gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if
	not currently parsing the DTD.

From-SVN: r96255
parent 18744d9b
2005-03-10 Chris Burdess <dog@bluezoo.org>
* gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if
not currently parsing the DTD.
2005-03-10 Bryce McKinlay <mckinlay@redhat.com>
New Stack Trace infrastructure.
......
......@@ -486,6 +486,13 @@ class SAXEventSink
{
return;
}
// Ignore fake element declarations generated by ValidationConsumer.
// If an element is not really declared in the DTD it will not be
// declared in the document model.
if (!(ctx instanceof DomDoctype))
{
return;
}
DomDoctype doctype = (DomDoctype) ctx;
doctype.elementDecl(name, model);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment