xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Breedveld" <jero...@x-hive.com>
Subject RE: Xupdate Rename attribiute values
Date Fri, 14 Nov 2003 08:50:04 GMT
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 


Mime
View raw message