Re: How can I get at the document url?

Posted by Mathias Picker on
URL: https://discuss.orbeon.com/How-can-I-get-at-the-document-url-tp44819p44824.html

Am Sonntag, den 02.08.2009, 13:55 -0700 schrieb Hank Ratzesberger:
[snip]

> I see.  You can get known parameter values with the extended
> functions, e.g.:
>
> <xforms:setvalue ref="my-param" value="xxforms:get-request-parameter('myparam')"/>
>
> http://www.orbeon.com/ops/doc/reference-xforms-functions
> To get the url, you can use the request generator processor
>
> http://www.orbeon.com/ops/doc/processors-generators-request
>
> in an xpl file with an output param.  And the file is the
> model attribute of your page flow.  Then, e.g.:
>
> <xforms:instance src="input:data"/>
Ja, that's what I'm doing right now.

>
> (If I have it right this time)

:-) Thanks for still thinking about it.

I was looking for something not orbeon-specific, but included in xforms,
but maybe there is no such thing.

Cheers, Mathias



PS:

I thought with xforms 1.1 I could do something like

<submission replace="instance" instance="instanceToBeEdited">
    <resource
        value="concat(instance('conf')/path/to/data, string-after(document-uri(/), '?'))"/>
</submission>

and trigger it at xforms-ready. (The "parsing" here obviously sketchy, and it's not tested
and I'm not yet fluent in xforms so the example is probably faulty, but I hope good
enough to show what I thought could work.)

I will test it in a few days, but I hoped I could get an obvious
solution on this list, freeing me from experimenting.


PPS: searching for a solution I found
http://www.ibm.com/developerworks/xml/library/x-xformsdynamic/index.html
which is a javascript way to do it in xforms 1.0. I still hope for
something within xforms.

>
>
>
> Cheers,
> Hank
>
>
>
> einfaches Textdokument-Anlage (message-footer.txt)
> --
> 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