|| -----Original Message----- || From: [EMAIL PROTECTED] || [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir || R. Bossicard || Sent: dinsdag 25 februari 2003 13:55 || To: [EMAIL PROTECTED] || Subject: Re: Tests and other things || || || > This bug hasn't been solved yet because I think we should first || > discuss some kind of fundamental solution to handling || white-spaces. || || What do you propose?
Let's discuss this using some use-cases: <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> Clearly, in this case your not interested in the white-spaces outside the <xupdate:attribute> elements (in fact it causes problems in Lexus right now). Solutions would be: 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? 2. Let Lexus ignore whitespaces May be difficult to implement (I'm not very familiar with SAX), whitespaces in text nodes cannot be ignored ofcourse but can whitespaces before and after text-nodes be ignored? <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate"> <xupdate:insert-before select="/addresses/[EMAIL PROTECTED]'Andreas']"> <xupdate:element name="address"> <xupdate:attribute name="name"> Jeroen </xupdate:attribute> <xupdate:element name="town">Rotterdam</xupdate:element> </xupdate:element> </xupdate:insert-before> </xupdate:modifications> In this case it seems to me that the whitespace between the elements could be ignored but can the whitespaces before the new attribute value " Jeroen "? <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate"> <xupdate:insert-before select="/addresses/[EMAIL PROTECTED]'Andreas']"> <address name="Jeroen"> <town>Rotterdam</town> </address> </xupdate:insert-before> </xupdate:modifications> In this case the whitespaces between elements cannot be all ignored because it may be the intention of the user to have whitespaces after the <address name="Jeroen"> and </town> elements. Any other solutions or interesting use-case? 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/ ----------------------------------------------------------------------
