|
You can use this usecase to save a document. It reads XML data from a source
and saves as the content of the current document.
- If the document's resource type supports validation, the XML document is
validated and not saved if validation errors occur.
- All URL-based internal links in the XML source are converted to
UUID-based links before saving.
- A workflow event is invoked. The event defaults to "edit", you can
override it using the event parameter.
Parameters:
- sourceUri - the URI to read the XML data from
- event - the workflow event to invoke
A typical usage scenario is to save XML data entered in a form. In this case,
the sourceUri parameter refers to a Cocoon pipeline featuring the
stream generator.
version: $Id: EditDocument.java 509150 2007-02-19 10:43:07Z andreas $ |