You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ulrich Nicolas Lissé <u....@gmx.net> on 2004/11/02 18:00:40 UTC
[JXPath][PATCH] Wrong default namespace handling
Hi,
although
http://nagoya.apache.org/eyebrowse/ReadMsg?listId=15&msgNo=58025
indicates that this issue has been fixed, there still remains a problem
with DOMNodePointer.asPath(), at least when using a namespace
declaration like <... xmlns="" .../>.
I attached a test illustrating the wrong behaviour as well as a patch
for DOMNodePointer.java. The patch simply lets
DOMNodePointer.getNamespaceURI(Node) return <null> instead of "" for an
empty default namespace. All tests run green after applying the patch.
I'm currently updating Chiba to use JXPath 1.2 in order to provide full
namespace support for XForms instance data, but the issue described
above is a showstopper, since Chiba depends on Pointer.asPath() to work
correctly. So I'd appreciate you to apply the patch to CVS HEAD as soon
as you have verified it. TIA.
Regards, Uli.
--
Ulrich Nicolas Lissé
Chiba Admin