Maybe you should send some code to find the bug as your solution should work in theory. Of course you can generate a "dynamic" String, the problem must be somewhere else. Stop focusing on it and maybe the solution will just appear to be obvious ;-)
----- Original Message ----- From: "Shane Dempsey" <[EMAIL PROTECTED]> To: <xindice-users@xml.apache.org> Sent: Wednesday, August 13, 2003 8:35 PM Subject: XUpdate - delete a node using dynamic vars > Hi, > > This task has been driving me crazy for months. I want to delete nodes > based on user input. The usual example I have seen is the static > <xupdate:remove select="/addresses/address[1]"/> which is great if I want to > delete node 1 or 2 or 3 etc. but most real world applications require the > dynamic deletion of nodes. I am using php and tried <xupdate:remove > select="/addresses/address[$index]"/> and every concievable variation. I > have also tried using the <xupdate:variable name=index select="..."> > > Is there a way to get xupdate to work with dynamic variables in the > select query or if not is there another way of deleting nodes using dynamic > queries. > > > Regards > Shane Dempsey > > Software Development Engineer > Claddagh Resources > Links Business Centre > Lisfannon > Co. Donegal > Tel: +353 77 20400 (direct: 20402) (ext:202) > Fax: +353 77 20401 > email: [EMAIL PROTECTED] > > > >