Thanks a lot for tracking this down. I have applied the patch.

Thanks again,

- Dmitri

----- Original Message -----
From: "Ulrich Nicolas Liss�" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to