Hi, I've worked out how to run Corb2. However, it's not clear to me how to access elements using a query that is equivalent to what you would run in the query console. For instance, I can run the following in the query console: declare namespace xh="http://library/";for $t in (/xh:books)/xh:titlereturn if ($t='Moby Dick')then xdmp:node-replace($t/text(), text{"Moby Dick (Classic)"} ) else if ($t='War of the Worlds')then xdmp:node-replace($t/text(), text{"War of the Worlds (Classic)"} )else () This goes through all of the documents in the namespace and converts the relevant titles. With corb, the get-uris.qry returns each of the individual uris. How does one then access the correct element to change it in the transform-docs.xqy? Ideally, I would like to be able to run the query in the query console first to test, using something like: xquery version "1.0-ml";let $URI := "16780628"**Code to do the transform based on the $URI that identifies a specific document** Thanks, Mark
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
