Hi Jeroen,

First thanks a lot for your answer. I will explain more carefully what I
asked :
Considering the code below :

<xupdate:update select="/addresses/address[2]/town">
   New York
 </xupdate:update>
 <xupdate:remove select="/addresses/address[2]"/>

I ask the system to update and to remove the same element. I believe that
the document order must be followed, especially when many commands must be
performed. Is that correct ?
I have a second question more important now because I made progress in my
work :
What's about two different commands on the same node like

<xupdate:update select="/addresses/address[2]/town">
   New York
 </xupdate:update>
<xupdate:update select="/addresses/address[2]/town">
   Atlanta
 </xupdate:update>

or like

<xupdate:update select="/addresses/address[2]/town">
   New York
 </xupdate:update>
<xupdate:update select="/addresses/address[position()=last()]/town">
   Atlanta
 </xupdate:update>
considering there is only two elements /addresses/address ???

Thanks in advance

Olivier Moises

 |
 | Is it possible to put more than one command in a xupdate
 | document (I believe yes)

Yes, it is.

 | In this case, how process removing and updating on the same node ?
 |
 |  <xupdate:update select="/addresses/address[1]/town">...
 | and
 |  <xupdate:remove select="/addresses/address[1]"/>  ..
 |

Which order do you mean? Can you give a full example of an XUpdate file
containing the xupdate you want to do?

greetings,

Jeroen
----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to