Content reprocessing in bulk
Java XQuery Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 13 commits ahead, 74 commits behind ableasdale:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt
README.textile
release.sh

README.textile

For more information see http://marklogic.github.com/corb/

This fork turns Corb into a text export tool. The return value of the tranform module is written to a file – one line per document. Useful for generating CSV files etc.

(: transform.xqy :)
declare variable $URI external;

let $doc := fn:doc($URI)
return 
  fn:string-join((
    $doc/foo/fn:string(),
    $doc/bar/fn:string()
  ), ",")

CORB will create output.log:

foo,bar
foo1,bar1
etc...