Posted by
Duane Gran on
URL: https://discuss.orbeon.com/Basic-output-of-instance-doc-tp26306p26309.html
On Nov 29, 2005, at 4:24 PM,
[hidden email] wrote:
>> The easiest thing to do is to setup a simple service, with OPS or
>> otherwise, which is able to receive and display the result of your
>> submission with a POST. This is in fact almost trivial with OPS:
>> setup
>> a page matchint the URL of your submission, and use either a model or
>> action pipeline to read its "instance" input and save it on disk with
>> the File serializer.
>
> Thank you for the explanation. Can you tell me if there is a good
> example to follow for this? I'm pouring over the tutorial and the
> samples, but I'm having a hard time pairing your advice with proper
> syntax.
>
Upon further reflection, I believe I may be closer to understanding
your answer but I must be overlooking something. I have two pages,
one for data entry and the other for results. Eventually I want the
results page to display the instance document, but in the meantime
writing to the filesystem is a good start. Below is my page flow:
<page id="initial_form" path-info="/xforms-mods" view="mods-
editor-view.xml"/>
<page id="results" path-info="/xforms-mods/results"
model="model.xpl" view="mods-results-view.xml"/>
And here is the model (model.xpl) for the second page (results),
which should create the file, but doesn't:
<p:config xmlns:p="
http://www.orbeon.com/oxf/pipeline"
xmlns:oxf="
http://www.orbeon.com/oxf/processors">
<p:processor name="oxf:file-serializer">
<p:input name="config">
<config>
<file>mods-result.xml</file>
<directory>/tmp</directory>
</config>
</p:input>
<p:input name="data" href="#instance"/>
</p:processor>
</p:config>
Any ideas why this may be happening? I'm at a loss and appreciate
any suggestions on this.
Duane
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws