Hi all, || -----Original Message----- || From: [EMAIL PROTECTED] || [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir || R. Bossicard || Sent: maandag 24 februari 2003 10:10 || To: [EMAIL PROTECTED] || Subject: Re: Tests and other things || || || I have 2 tests failing: || || testInsertBeforeAttribute(org.xmldb.xupdate.unittests.XUpdat || eTests)org.w3c.dom.DOMException: || NOT_FOUND_ERR: An attempt is made to reference a node in a || context where || it does not exist.
This is a well kwown bug, it has to do with this: <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate"> <xupdate:insert-before select="/addresses/[EMAIL PROTECTED]'Andreas']/@name"> <xupdate:attribute name="id">2</xupdate:attribute> </xupdate:insert-before> </xupdate:modifications> Lexus tries to insert the white-spaces before <xupdate:attribute> and after </xupdate:attribute> before the selected attribute which is an illegal operation. This bug hasn't been solved yet because I think we should first discuss some kind of fundamental solution to handling white-spaces. || testInsertAfterNS(org.xmldb.xupdate.unittests.XUpdateTests)j unit.framework.AssertionFailedError: || NodeMatcher : Missing node, origin tagname : xmlns:address || || It's quite strange because once it's an "insert before" and || resp. an || "insert after" that fails (all insert before (or after) || tests failing || would have been more logical). It should be easy to fix, || shouldn't it? This is old bug which also requires some fundamental discussion before we fix it. The WD is not very clear about handling namespaces, in fact it doesn't state anything about although some functionality is implemented in Lexus. || I also fear that the XiveNodeWatcher doesn't verify the || order of the || attributes. If it's true I'm wondering how "insertBefore" and || "insertAfter" can be fully verified. XhiveNodeMatcher doesn't verify the order of the attributes because the XML spec. doesn't specify that attributes are ordered. It seems to me that we need some fundamental discussion on the maillinglist and fill the holes in the WD to make it a complete. At the moment there cannot be released a new version of Lexus because I haven't had the time to solve another namespace problem yet. Jeroen -- X-Hive Corporation e-mail: [EMAIL PROTECTED] phone: +31 10 2818080 http://www.x-hive.com ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
