insert within repeat, dynamic build instances

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

insert within repeat, dynamic build instances

Hank Ratzesberger

Hi,

Is it possible to build or insert into one instance
by using a repeat on a second instance? e.g.:

<repeat nodeset="instance('sites')/sites/site">

   <insert context="instance('other-sites')/sites" origin="."/>

</repeat>

All working examples of <insert> I have seen are all
bound to triggers and events.

In any case, I must admit that the effect of nodeset binding
and syntax required to refer from one nodeset to another is
a source of confusion.  (E.g. the position in one
nodeset as a filter, [], or position in another.)

Maybe it is better to build xforms pages in xslt, rather
than try to use xforms within the page to build instances,
et.?

Hopefully that's not too "muddy" to have your thoughts.

Cheers,
Hank

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: insert within repeat, dynamic build instances

fl.schmitt(ops-users)
Hi Hank,

> Is it possible to build or insert into one instance
> by using a repeat on a second instance? e.g.:
>
> <repeat nodeset="instance('sites')/sites/site">
>   <insert context="instance('other-sites')/sites" origin="."/>
> </repeat>
>
> All working examples of <insert> I have seen are all
> bound to triggers and events.

Hmm - insert is a action, so it requires an event to get executed. So i suppose
it isn't sufficient to nest the insert into a repeat. Instead, you could use
[exforms|xxforms]:iterate [1]. The reference to different instances / models
should be no problem, according to the example in the docs.

HTH
florian

[1] http://www.orbeon.com/ops/doc/reference-xforms-2#exforms-iterate


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws