|| -----Original Message----- || From: [EMAIL PROTECTED] || [mailto:[EMAIL PROTECTED] On Behalf Of Ronald Bourret || Sent: dinsdag 25 februari 2003 18:50 || To: [EMAIL PROTECTED] || Subject: Re: Tests and other things || || || > 1. Let Lexus ignore / stop on illegal combinations || > Doesn't sound very attractive to me: How many of these || combinations do || > there exist? Do we have keep on patching Lexus' code when || new illegal || > combinations are discovered? || || What's the illegal combination here? The whitespace? Or the || insert-before with an attribute?
The illegal combination is the insert-before operation selecting an attribute and the whitespaces before and after the <xupdate:attribute> elements which results in an insertBefore operation on an Attr node off Text nodes which is an illegal operation in DOM || In either case, it seems that the XUpdate spec should || clearly enumerate each of these (so the user can create || valid input) and Lexus should stop on them. Yes, it might || be a lot of work to do this, but it's the only way to || guarantee interoperability of XUpdate implementations. Ok, I agree. So the WD should specify that insert-before(-after) operations selecting attributes should only contain <xupdate:attributes> constructor elements. Also, insert-before(-after) operations selecting elements should in my opinion not contain <xupdate:attributes> constructor elements because I see no logic in inserting attribute before (or after) elements. At the moment Lexus allows you to do it but it appends the attribute to the parent of the selected element, not very logical. || I'm not very familiar with XUpdate, but based on the || examples above, I can see the following rules: || || 1) The entire content of an xupdate:element or || xupdate:attribute element is the new content of that || element or attribute. This includes all whitespace. || || 2) The entire content of an xupdate:insert-before or || xupdate:insert-after element is the new content of that || element. This includes all whitespace. I agree with those rules. regards, 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/ ----------------------------------------------------------------------
