Submission and Serialize in xpl

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

Submission and Serialize in xpl

Hank Ratzesberger-2
Hi Well Formed List,

I have a web service written xpl to support a submission from a
form to reformat some data.

After writing it, I realize that the service must serialize the
content to xml.

However, this is only for internal use, so it would be great if
I could just call the service directly because it does some directory
scanning and the serializing is just an extra step.

Can I use an insert element and xxforms:call-xpl for this?

 <xforms:insert context="instance('target')"
    nodeset="xxforms:call-xpl('oxf:/wiki.xpl', 'data', atom:content/html:div, 'data')"/>

Sorry if I don't try it first, but it is the kind of thing that I
could spend a lot of time debugging.

Thanks,
Hank



Hank Ratzesberger
NEES@UCSB
Earth Research Institute
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: Submission and Serialize in xpl

Alessandro  Vernet
Administrator
Hi Hank,

How can one resist answering your message when addressed as being
"well formed"! :) Yes, you can, but using nodeset to point to the
instance, and origin to the new document:

<xforms:insert nodeset="instance('your-instance')"
origin="xxforms:call-xpl(...)/*"/>

Alex

On Wed, Aug 11, 2010 at 3:33 PM, Hank Ratzesberger <[hidden email]> wrote:

> Hi Well Formed List,
>
> I have a web service written xpl to support a submission from a
> form to reformat some data.
>
> After writing it, I realize that the service must serialize the
> content to xml.
>
> However, this is only for internal use, so it would be great if
> I could just call the service directly because it does some directory
> scanning and the serializing is just an extra step.
>
> Can I use an insert element and xxforms:call-xpl for this?
>
>  <xforms:insert context="instance('target')"
>    nodeset="xxforms:call-xpl('oxf:/wiki.xpl', 'data', atom:content/html:div, 'data')"/>
>
> Sorry if I don't try it first, but it is the kind of thing that I
> could spend a lot of time debugging.
>
> Thanks,
> Hank
>
>
>
> Hank Ratzesberger
> NEES@UCSB
> Earth Research Institute
> 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Submission and Serialize in xpl

Hank Ratzesberger-2

Thanks Alex.  That closes the tag on this issue.

Being able to call xpl this way is very helpful, because I
can write generic scripts that scan directories for content,
but don't have to expose it as a service.

The other option would be to specify that the http request
use localhost only, but it is not clear what issues would
arrive configuring various servlet engines.

Best,
Hank

On Aug 12, 2010, at 6:09 PM, Alessandro Vernet wrote:

> Hi Hank,
>
> How can one resist answering your message when addressed as being
> "well formed"! :) Yes, you can, but using nodeset to point to the
> instance, and origin to the new document:
>
> <xforms:insert nodeset="instance('your-instance')"
> origin="xxforms:call-xpl(...)/*"/>
>
> Alex
>
> On Wed, Aug 11, 2010 at 3:33 PM, Hank Ratzesberger <[hidden email]> wrote:
>> Hi Well Formed List,
>>
>> I have a web service written xpl to support a submission from a
>> form to reformat some data.
>>
>> After writing it, I realize that the service must serialize the
>> content to xml.
>>
>> However, this is only for internal use, so it would be great if
>> I could just call the service directly because it does some directory
>> scanning and the serializing is just an extra step.
>>
>> Can I use an insert element and xxforms:call-xpl for this?
>>
>>  <xforms:insert context="instance('target')"
>>    nodeset="xxforms:call-xpl('oxf:/wiki.xpl', 'data', atom:content/html:div, 'data')"/>
>>
>> Sorry if I don't try it first, but it is the kind of thing that I
>> could spend a lot of time debugging.
>>
>> Thanks,
>> Hank
>>
>>
>>
>> Hank Ratzesberger
>> NEES@UCSB
>> Earth Research Institute
>> 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
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>
> --
> 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
Hank Ratzesberger
NEES@UCSB
Earth Research Institute
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