You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by FOX GBLACK <fo...@hotmail.com> on 2003/11/14 04:38:47 UTC
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/process[@process_id='138']/@process_id">
new attrib name</xupdate:rename>
</xupdate:modifications>
Thanks
Fox
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to
http://ninemsn.com.au/mobilemania/default.asp
RE: Xupdate Rename attribiute values
Posted by Jeroen Breedveld <je...@x-hive.com>.
Hi,
|| -----Original Message-----
|| From: FOX GBLACK [mailto:foxgblackthunder@hotmail.com]
|| Sent: vrijdag 14 november 2003 04:39
|| To: xindice-users@xml.apache.org
|| 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/process[@process_id='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/address[@name='Andreas']/@name">newname</lexus:rename
>
</lexus:modifications>
regards,
Jeroen Breedveld
--
X-Hive Corporation
e-mail: jeroenb@x-hive.com
phone: +31 10 2818080
http://www.x-hive.com