commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <>
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é" <>
To: <>
Cc: <>
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

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.

Ulrich Nicolas Lissé


> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message