On Thu, 30 Sep 2004 10:43:47 -0400, "Summers, William V"
<[EMAIL PROTECTED]> said:
>
> I am new to Orbeon and am having difficulties returning raw xml (content-
> type text/xml).
>
> My page-flow.xml contains the following lines:
>
> <page path-info="/uri/html" model="/uri/model.xpl"
> view="/uri/view.xsl" /> <page path-info="/uri/xml"
> model="/uri/model.xpl" />
>
> The first line works properly and returns my transformed document.  My
> understanding is that a page without a view would simply return the
> resulting xml.

One must use a http serializer to send results back to the browser. In
the first case this happens because the Page Flow Controller is sending
the results through the epilogue _and_ the epilogue invokes an http
serializer.

Now the PFC only involves the epilogue if there is a view.  So in the
second case the pipeline output is just thrown away. You can change this
by adding an invocation of an http serializer at the end of your
model.xpl.

In the attached war file is modified version of a template project 
, minus all the .jar files, that
a.) shows all valid page configs
b.) gives the results you were expecting from <page path-info="/uri/xml"
    model="/uri/model.xpl" />

    The relevant page is
    <c:page path-info='/model-only' model='oxf:/model-only.xpl' />

Finally, FWIW, the doc on the PFC can be found at
http://www.orbeon.com/ois/doc/reference-
controller#d29174e676
.

-- Regards, Dan S

Attachment: t.war
Description: Binary data

Reply via email to