dynamic submission resource

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

dynamic submission resource

Frank
Hi all

I have been using static xhtml xforms pages (ie view.xhtml) and have  
submissions that look like:

<xforms:submission id="save-submission" reference="instance"    
replace="instance" instance="saveResult-instance" method="post" va
                            resource="http://somehost:8080/experiment/ 
{instance('instance')/id}">

note the dynamic resource url.

If I  try the same idea in dynamic xforms (say view.xsl) i get an  
error saying the instance function is not found - I assume this is  
because of the
xpath curly brackets {} being used in xslt.

How can I get the same effect when using xslt to generate the xforms?

Thanks,
Franco


Franco Pace
[hidden email]





--
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: dynamic submission resource

Alessandro  Vernet
Administrator
Franco,

You do because the AVT is interpreted by XSLT before it is interpreted
by the XForms engine, and XSLT doesn't know about
"instance('instance')/id". So you need to escape that AVT for XSLT,
which you can do by doubling the {{ and }}.

Alex

On Mon, Mar 15, 2010 at 9:05 PM, Franco Pace <[hidden email]> wrote:

> Hi all
>
> I have been using static xhtml xforms pages (ie view.xhtml) and have
> submissions that look like:
>
> <xforms:submission id="save-submission" reference="instance"
> replace="instance" instance="saveResult-instance" method="post" va
>
> resource="http://somehost:8080/experiment/{instance('instance')/id}">
>
> note the dynamic resource url.
>
> If I  try the same idea in dynamic xforms (say view.xsl) i get an error
> saying the instance function is not found - I assume this is because of the
> xpath curly brackets {} being used in xslt.
>
> How can I get the same effect when using xslt to generate the xforms?
>
> Thanks,
> Franco
>
>
> Franco Pace
> [hidden email]
>
>
>
>
>
> --
> 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: dynamic submission resource

Frank
Terrific - Thanks a million Alex.

Regards,
Franco

Alessandro Vernet wrote:

> Franco,
>
> You do because the AVT is interpreted by XSLT before it is interpreted
> by the XForms engine, and XSLT doesn't know about
> "instance('instance')/id". So you need to escape that AVT for XSLT,
> which you can do by doubling the {{ and }}.
>
> Alex
>
> On Mon, Mar 15, 2010 at 9:05 PM, Franco Pace <[hidden email]> wrote:
>  
>> Hi all
>>
>> I have been using static xhtml xforms pages (ie view.xhtml) and have
>> submissions that look like:
>>
>> <xforms:submission id="save-submission" reference="instance"
>> replace="instance" instance="saveResult-instance" method="post" va
>>
>> resource="http://somehost:8080/experiment/{instance('instance')/id}">
>>
>> note the dynamic resource url.
>>
>> If I  try the same idea in dynamic xforms (say view.xsl) i get an error
>> saying the instance function is not found - I assume this is because of the
>> xpath curly brackets {} being used in xslt.
>>
>> How can I get the same effect when using xslt to generate the xforms?
>>
>> Thanks,
>> Franco
>>
>>
>> Franco Pace
>> [hidden email]
>>
>>
>>
>>
>>
>> --
>> 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
>>
>>
>>    
>
>
>
>  


--
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: Re: Re: dynamic submission resource

Alessandro  Vernet
Administrator
I'm glad it worked!

Alex

On Tue, Mar 16, 2010 at 7:34 PM, franco pace <[hidden email]> wrote:

> Terrific - Thanks a million Alex.
>
> Regards,
> Franco
>
> Alessandro Vernet wrote:
>>
>> Franco,
>>
>> You do because the AVT is interpreted by XSLT before it is interpreted
>> by the XForms engine, and XSLT doesn't know about
>> "instance('instance')/id". So you need to escape that AVT for XSLT,
>> which you can do by doubling the {{ and }}.
>>
>> Alex
>>
>> On Mon, Mar 15, 2010 at 9:05 PM, Franco Pace <[hidden email]>
>> wrote:
>>
>>>
>>> Hi all
>>>
>>> I have been using static xhtml xforms pages (ie view.xhtml) and have
>>> submissions that look like:
>>>
>>> <xforms:submission id="save-submission" reference="instance"
>>> replace="instance" instance="saveResult-instance" method="post" va
>>>
>>> resource="http://somehost:8080/experiment/{instance('instance')/id}">
>>>
>>> note the dynamic resource url.
>>>
>>> If I  try the same idea in dynamic xforms (say view.xsl) i get an error
>>> saying the instance function is not found - I assume this is because of
>>> the
>>> xpath curly brackets {} being used in xslt.
>>>
>>> How can I get the same effect when using xslt to generate the xforms?
>>>
>>> Thanks,
>>> Franco
>>>
>>>
>>> Franco Pace
>>> [hidden email]
>>>
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
> --
> 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: Re: Re: dynamic submission resource

Frank
Of course  it worked - you guys are geniuses!

thanks again,
Franco

Alessandro Vernet wrote:

> I'm glad it worked!
>
> Alex
>
> On Tue, Mar 16, 2010 at 7:34 PM, franco pace <[hidden email]> wrote:
>  
>> Terrific - Thanks a million Alex.
>>
>> Regards,
>> Franco
>>
>> Alessandro Vernet wrote:
>>    
>>> Franco,
>>>
>>> You do because the AVT is interpreted by XSLT before it is interpreted
>>> by the XForms engine, and XSLT doesn't know about
>>> "instance('instance')/id". So you need to escape that AVT for XSLT,
>>> which you can do by doubling the {{ and }}.
>>>
>>> Alex
>>>
>>> On Mon, Mar 15, 2010 at 9:05 PM, Franco Pace <[hidden email]>
>>> wrote:
>>>
>>>      
>>>> Hi all
>>>>
>>>> I have been using static xhtml xforms pages (ie view.xhtml) and have
>>>> submissions that look like:
>>>>
>>>> <xforms:submission id="save-submission" reference="instance"
>>>> replace="instance" instance="saveResult-instance" method="post" va
>>>>
>>>> resource="http://somehost:8080/experiment/{instance('instance')/id}">
>>>>
>>>> note the dynamic resource url.
>>>>
>>>> If I  try the same idea in dynamic xforms (say view.xsl) i get an error
>>>> saying the instance function is not found - I assume this is because of
>>>> the
>>>> xpath curly brackets {} being used in xslt.
>>>>
>>>> How can I get the same effect when using xslt to generate the xforms?
>>>>
>>>> Thanks,
>>>> Franco
>>>>
>>>>
>>>> Franco Pace
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>>
>>>>        
>>>
>>>
>>>      
>>
>> --
>> 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
>>
>>
>>    
>
>
>
>  


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