Eric van der Vlist wrote:

I have read in the changes for 2.6 that:

"1.7. Page Flow
XSLT views in Page Flow can now access the XForms instance using
document('oxf:instance') or doc('oxf:instance'). In the past, it was
often necessary for the model to aggregate its output with the XForms
instance to make both documents accessible from the view. "

However, this doesn't seem to be the case in pipelines defined for the
"xforms" attribute in a page definition.

> In these pipelines, 'oxf:instance' seems to be treated like a normal > file reference.

doc('oxf:instance') is now doc('input:instance'), in fact, based on on of your suggestions! Either way it is a mechanism that can be used from an XSLT stylesheet to access optional, user-defined processor inputs. This is now documented much better in the current CVS. But it is not a "pull" mechanism to call pipelines, as I remember we discussed a while ago.

In the case of a page view stylesheet called by the PFC, the "instance" input is automatically connected to the page view stylesheet, so you can always access the instance from the sylesheet with doc('input:instance') or document('input:instance').

This does not apply to a pipeline called from the PFC to build an XForms model. Even if just a stylesheet was used, it wouldn't have access to the XForms instance just yet, because the model must be built before. But you are probably just referring to the "pull" mechanism here.

Is that normal? Could that be done without breaking the architecture of
the page flow controller? If that was possible, this would let us group
the operations related to fetching and saving instances in a single
pipeline.

So yes it's normal. This said, you can always build a pipeline that fetches and saves instances and reuse it to your heart's content, by calling it from other pipelines.


-Erik


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to