Hi,

 || -----Original Message-----
 || From: FOX GBLACK [mailto:[EMAIL PROTECTED] 
 || Sent: vrijdag 14 november 2003 04:39
 || To: [email protected]
 || Subject: Xupdate Rename attribiute values
 || 
 || 
 || Hello ,
 || 
 || Does any one know how to change/rename/update an existing 
 || attribute value 
 || using Xupdate??
 || 
 || To rename an attribute it self not the value of the attribute i use
 || 
 || <xupdate:modifications version="1.0" 
 || xmlns:xupdate="http://www.xmldb.org/xupdate";>
 || <xupdate:rename 
 || select="/project/proceses/[EMAIL PROTECTED]'138']/@process_id">
 || new attrib name</xupdate:rename>
 || </xupdate:modifications>

This does not work because "new attrib name" contains spaces which are
not allowed in the name of an attribute.

I tried this and it works so you have to remove the spaces

<?xml version="1.0"?>
<lexus:modifications version="1.0"
xmlns:lexus="http://www.xmldb.org/xupdate";>
  <lexus:rename
select="/addresses/[EMAIL PROTECTED]'Andreas']/@name">newname</lexus:rename
>
</lexus:modifications>

regards,

Jeroen Breedveld

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

Reply via email to