xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Goei <edwi...@sun.com>
Subject Re: Crimson: 'Attribute "xmlns" is not declared' bug?
Date Mon, 22 Oct 2001 17:36:15 GMT
Jeff Turner wrote:
> I have some standard JAXP 1.1 code (listed at the end) that works with Xerces
> and fails with Crimson. It seems Crimson doesn't like XML namespaces. If I try
> to create a DOM by parsing:
> <!DOCTYPE foo [
> <!ELEMENT foo (#PCDATA)>
> ]>
> <foo xmlns="http://www.foo.com"/>
> I'll get an error claiming 'Attribute "xmlns" is not declared for element "foo".'
> That makes perfect sense from a pre-namespaces perspective, but shouldn't a
> namespace-aware parser be able to handle this?

Turning on validation performs DTD validation which does not know
anything about namespaces.  In your DTD, you specify an element "foo"
but no attributes for "foo".  Try adding something like the following to
you DTD:


Not sure why it would work using Xerces.  Which version?  May be a bug.


In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message