xiao liang schrieb:

Hello,

> I am integrating Cocoon 2.1.7 with eXist-snapshot-20050620 by setting
> eXist driver in xmldb pseudo protocol definition.
> 
> Currently I am able to access any xml file in eXist by setting
> 'src="xmldb:exist///db/any_xml_file.xml"' in Cocoon pipeline. However,
> I have no idea how to upload an xml file directly into eXist by
> pipeline:
> 
> For example, if I want to load /tmp/foo.xml, how to define my pipeline?
> <!—The process will access with 'load_file?docURI=/tmp/foo.xml'-->
> <map:pipeline>
>      <map:match pattern="load_file">
>      ???
>      </map:match>
> </map:pipeline>
> 
> Thanks in advance for any suggestion.

I did this using flowscript and writing a function which saves a
document to the xml db.
See http://wiki.apache.org/cocoon/CformsExistAndFlow
There is a function saveDocumentAuth which does what you probably want.

HTH
Christoph

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

Reply via email to