multiple XPL models

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple XPL models

r.brefort
I have an Xhtml page with two Xforms models, both build by XPL pipelines. What is the good syntax for the page tag in page-flow.xml ?
I tried different things like :
<page....>
<param name="model" id="model1" href="m1.xpl" />
<param name="model" id="model2" href="m2.xpl" />
</page>
or
<page....>
<model id="model1" href="m1.xpl" />
<model id="model2" href="m2.xpl" />
</page>
but I didn't find the solution.
Can anybody help me ?

Remy



--
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
Reply | Threaded
Open this post in threaded view
|

Re: multiple XPL models

Hank Ratzesberger
Remy,

As I understand, the page flow follows a kind of
xslt model -- input data (model=", xslt data (view=) and
output, which gets passed to the epilogue.

You can access the output "data" of an xpl piplene from the
model= attribute of the page flow as the hyperlink reference
"input:data" from within your view. e.g.

<xforms:instance id="main">
  <xi:include href="input:data" />
</xforms:instance>

Sorry, i cannot answer how to do multiple models
this way, I believe they require a service or
xinclude.  O

--Hank
Goleta, CA


----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Monday, April 24, 2006 5:29 PM
Subject: [ops-users] multiple XPL models


>I have an Xhtml page with two Xforms models, both build by XPL pipelines. What is the good syntax for the page tag in page-flow.xml
>?
> I tried different things like :
> <page....>
> <param name="model" id="model1" href="m1.xpl" />
> <param name="model" id="model2" href="m2.xpl" />
> </page>
> or
> <page....>
> <model id="model1" href="m1.xpl" />
> <model id="model2" href="m2.xpl" />
> </page>
> but I didn't find the solution.
> Can anybody help me ?
>
> Remy
>
>


>
> --
> 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
>




--
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
Reply | Threaded
Open this post in threaded view
|

Re: multiple XPL models

Erik Bruchez
Administrator
In reply to this post by r.brefort
Remy,

A <page> element in the page flow can have only one page model, set
with the @model attribute, e.g. <page model="my.xpl" .../>. Similarly
it can only have on page view (@view attribute).

If you want to build several XForms models in your page model
dynamically, then you have to aggregate them before sending them to
the page view.

The page view can then extract and include the page models, for
example with XSLT.

Another way to proceed is to make the page model produce the entire
<xhtml:head> section of your page, including XForms models. Then your
view can include this with XSLT or XInclude.

I hope this helps,

-Erik

[hidden email] wrote:
 > I have an Xhtml page with two Xforms models, both build by XPL
pipelines. What is the good syntax for the page tag in page-flow.xml ?
 > I tried different things like :
 > <page....>
 > <param name="model" id="model1" href="m1.xpl" />
 > <param name="model" id="model2" href="m2.xpl" />
 > </page>
 > or
 > <page....>
 > <model id="model1" href="m1.xpl" />
 > <model id="model2" href="m2.xpl" />
 > </page>
 > but I didn't find the solution.
 > Can anybody help me ?

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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