<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) International Business Machines Corporation, 2002, 2003. (c) University of Edinburgh 2002, 2003.-->
<!-- See OGSA-DAI-Licence.txt for licencing information.-->

<gridDataServicePerform 
         xmlns="http://ogsadai.org.uk/namespaces/2003/07/gds/types"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://ogsadai.org.uk/namespaces/2003/07/gds/types
         ../../../../schema/ogsadai/xsd/activities/activities.xsd">

    <documentation>

      This perform document demonstrates how to use an xUpdateStatement 
      activity to perform an update against a single resource within a
      specified collection of the base collection of the data resource.
      
      In this example, the phone number for the entry with a resource id
      of "resource1" will be set to "123123123123". The output will be 
      delivered in the response document.
      
      Note that the "collection" element is optional and the children
      of the "expression" element could be wrapped in a CDATA section to
      optimise the activity by preventing unnecessary serialization of 
      the XML.

      Note that there is a bug in Xindice 1.0 that prevents XUpdate 
      from working. See the release notes for information on patching
      Xindice 1.0 to enable XUpdate.

    </documentation>

    <xUpdateStatement name="myActivity">
      <collection>burners/grid-config/config1</collection>
      <resourceId>locales</resourceId>
      <expression>
        <xu:modifications 
          version="1.0" 
          xmlns:xu="http://www.xmldb.org/xupdate">
          <xu:update select="/Grid/world/locale[@number="0"]/boundary[2]/normal">(123,123,123)</xu:update>
        </xu:modifications>
      </expression>
      <outputStream name="myActivityOutput"/>
    </xUpdateStatement>

</gridDataServicePerform>


