on 2/27/07 9:59 AM, Sébastien Geindre at [EMAIL PROTECTED] wrote:
> i need to execute a xquery on the eXist cocoon embedded database, in a
> cocoon pipe.

e.g., from one of my apps (all on one line, gasp):
<map:generate 
src="http://{global:db-server}/rest/{global:offering-collection}/{1}.xml?_ho
wmany=-1&amp;_query=declare namespace
util='http://exist-db.org/xquery/util'; declare namespace
xmldb='http://exist-db.org/xquery/xmldb'; for $item in //Term return
(xmldb:last-modified('/db/offerings',
util:document-name($item)),/Root/ProgramName, $item)" />

Also,
<map:generate 
src="http://{global:db-server}/rest/{global:program-collection}?_howmany=-1&;
amp;_query=/Root/ProgramName|/Root/ProgramAbbrev|/Root/ProgramDescription|//
Number|//Title|//Status|//Director/DName" />

Note that I run eXist as a separate app, rather than embedded, for
independent upgrades of cocoon and eXist.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to