Apply xslt on before submission (save)

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

Apply xslt on before submission (save)

Teun van Eijsden
Apply xslt on before submission (save) Is it possible to apply an xslt to the data that is to be saved in an xforms:submission?
I tried to do it with

        <p:processor name="oxf:xslt">
                <p:input name="data" href="#xfoutput"/>
                <p:input name="config" href="oxf:fixpcs.xsl"/>
                <p:output name="outdata" ref="outdata"/>
        </p:processor>

In the model.xpl but this seems to work on the input only.

Thanks in advance, Teun van Eijsden







































































-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

--
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: Apply xslt on before submission (save)

Hank Ratzesberger
Teun,

If you post the data to your own service (at a different
url than your page), then you can
perform this translation in the xpl file that handles
it, but I don't see how you can do this within xforms.

I think what you were hoping is that the code below would
be invoked in the default submission, etc.  I think yes,
it only gets invoked when the page is first created
(by the epilogue).

HTH,
Hank


On May 29, 2008, at 6:46 AM, teijsden wrote:

> Is it possible to apply an xslt to the data that is to be saved in  
> an xforms:submission?
> I tried to do it with
>
>         <p:processor name="oxf:xslt">
>                 <p:input name="data" href="#xfoutput"/>
>                 <p:input name="config" href="oxf:fixpcs.xsl"/>
>                 <p:output name="outdata" ref="outdata"/>
>         </p:processor>
>
> In the model.xpl but this seems to work on the input only.
>
> Thanks in advance, Teun van Eijsden
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -- The information contained in this communication and any  
> attachments is confidential and may be privileged, and is for the  
> sole use of the intended recipient(s). Any unauthorized review,  
> use, disclosure or distribution is prohibited. Unless explicitly  
> stated otherwise in the body of this communication or the  
> attachment thereto (if any), the information is provided on an AS-
> IS basis without any express or implied warranties or liabilities.  
> To the extent you are relying on this information, you are doing so  
> at your own risk. If you are not the intended recipient, please  
> notify the sender immediately by replying to this message and  
> destroy all copies of this message and any attachments. ASML is  
> neither liable for the proper and complete transmission of the  
> information contained in this communication, nor for any delay in  
> its receipt.
>
> --
> 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
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