On Mon, 30 Jul 2001 16:14:54 +0200 "Jeroen Breedveld" <[EMAIL PROTECTED]> wrote:
> | -----Original Message----- > | From: [EMAIL PROTECTED] > | [mailto:[EMAIL PROTECTED] > | Behalf Of Lars Martin > | Sent: vrijdag 27 juli 2001 19:22 > | To: [EMAIL PROTECTED] > | Subject: Re: No xupdate:move element? > | > | Ok, I see this point. With this we would have to new > | elements for a new > | version of the WD: "xupdate:move" and "xupdate:swap". > | > | <xupdate:swap firstNode="XPath" secondNode="XPath"/> > > I suggest the following to keep the names of the attributes in sync with > other elements > > <xupdate:swap select="XPath" with="XPath"/> Ok. > > | <xupdate:move fromNode="XPath" toNode="XPath" > | position="before|after"/> > > This position attribute is totally new, maybe it's a better idea to use > something that's already there. This is true. The elements I proposed were just an example to show the usage of the elements. But however, reusing existing attributes is a good idea anyway. > > | <xupdate:move-before firstNode="XPath" toNode="XPath"/> > | <xupdate:move-after firstNode="XPath" toNode="XPath"/> > > I suggest the following to keep the names of the attributes in sync with > other elements and use the "-before" and "-after" pattern from the > insert element > > <xupdate:move-before select="XPath" to="XPath"/> > <xupdate:move-after select="XPath" to="XPath"/> > > or > > <xupdate:move select="XPath" before="XPath"/> > <xupdate:move select="XPath" after="XPath"/> > > it should not be possible to use "before" and "after" at the same time. > Maybe this is also a good idea for the insert element? (I dont't know > how open the discussion about that element is?) I like the second proposal. This would make the names of the elements easier to remember, easier to read and shorter to write. And of course we should keep the name patterns in sync (move and insert). -- ______________________________________________________________________ Lars Martin mailto:[EMAIL PROTECTED] SMB GmbH http://www.smb-tec.com ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact adminstrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
