commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dmi...@apache.org>
Subject Re: [jxpath][PATCH] namespaced DOM attributes bug
Date Mon, 02 Dec 2002 01:18:10 GMT
Thanks a lot for tracking this down. I have applied the patch.

Thanks again,

- Dmitri

----- Original Message -----
From: "Ulrich Nicolas Lissé" <u.n.l@gmx.net>
To: <commons-dev@jakarta.apache.org>
Cc: <joern.turner@web.de>
Sent: Saturday, November 30, 2002 1:08 PM
Subject: [jxpath][PATCH] namespaced DOM attributes bug


hi folks,

while playing around with the schmematron validation used for xmlforms
in cocoon 2.1 i had to face some strange misbehaviour with namespaced
DOM attributes. downtracking led me to a bug in JXPath's
DOMAttributeIterator: if you have an element with any qualified
attributes and if you specify a non-existent namespaced attribute
expression, JXPath will not return null() but one of the existing
attributes.

i've attached both a simple example illustrating the bug and the
patch. the misbehaviour occurs because the 'getAttribute' method will
return the last negatively tested attribute instead of [null].

i don't know if the jdom-adapter is affected too.

uli
--
Ulrich Nicolas Lissé


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message