Create Instance from pipleline input

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

Create Instance from pipleline input

Hank Ratzesberger

OPS Colleagues:

I want to create an instance from a subset of data passed the view.
This is what I am trying:

<xforms:model id="main">
 <xforms:instance id="events">
  <xsl:copy-of select="/root/events" />
 </xforms:instance>
</xforms:model>

Should this work? The copy-of statement selects the
nodes I want in other contexts, but not here.

I am using Release 3.0.1.200604271526

Cheers,
Hank
Goleta, CA



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




--
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: Create Instance from pipleline input

Alessandro  Vernet
Administrator
Hi Hank,

Yes, this should work. The XPath expression will apply to the document
generated by the "data" output of your model. If you want the XPath
expression to run on the instance instead, use:

<xsl:copy-of select="doc('input:instance')/root/events"/>

Alex

On 6/19/06, [hidden email] <[hidden email]> wrote:

>
> OPS Colleagues:
>
> I want to create an instance from a subset of data passed the view.
> This is what I am trying:
>
> <xforms:model id="main">
>  <xforms:instance id="events">
>   <xsl:copy-of select="/root/events" />
>  </xforms:instance>
> </xforms:model>
>
> Should this work? The copy-of statement selects the
> nodes I want in other contexts, but not here.
>
> I am using Release 3.0.1.200604271526
>
> Cheers,
> Hank
> Goleta, CA
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
>
> --
> 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
>
>
>

--
Blog (XML, Web apps, Open Source):
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet