W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 2982] [Update] library of built-in updating functions

From: <bugzilla@wiggum.w3.org>
Date: Thu, 24 Aug 2006 19:09:04 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GGKZc-0003O3-Uz@wiggum.w3.org>


jonathan.robie@datadirect.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

------- Comment #1 from jonathan.robie@datadirect.com  2006-08-24 19:09 -------
We recognize that we will need some functions, but we would like to
keep the number of functions small in order to release the first
version of updates quickly. So far, our library contains only one
function, fn:put().

The example you suggest, changing a document from one namespace to
another, is in our use cases:


It's not particularly hard to do this in the current Update
Facility. For instance, here's the solution used in the above use

 declare namespace nara = "http://www.anr.fr/nara"; 

 for $e in doc("grant.xml")//* 
 where not (namespace-uri($e) eq "http://www.anr.fr/nara") 
   do rename $e 
       as QName("http://www.anr.fr/nara", 
Received on Thursday, 24 August 2006 19:09:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:13 UTC