Using URL parameters in a pipeline

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

Using URL parameters in a pipeline

Daniel Vaughan
Hi,

I have an XSL stylesheet that takes two parameters from a XPL
pipeline: id and section and they are passed to the XSL somewhat like
this:

        <p:processor name="oxf:xslt">
                <p:input name="data" href="#xml" />
                <p:input name="config">
                        <xsl:stylesheet version="2.0">
                                <xsl:import href="view.xsl" />
                                <xsl:param name="id" select="'43'" />
                                <xsl:param name="section" select="'ip'" />
                        </xsl:stylesheet>
                </p:input>
                <p:output name="data" id="html" />
        </p:processor>


That works fine however instead of hard coding my parameters in the
XPL I would like to be able to specify them in the URL so I could have
a URL along the lines of:

http://myserver/.../view?id=43&section=ip

I cannot work out how to get the parameters from the URL and send them
to my XSL using the XPL.

I guess this is possible but I cannot work out how. Can anyone help please?

Thanks

Dan


--
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: Using URL parameters in a pipeline

Jurģis Lukss-2
Hi,

I believe you can use page-flow's default-submission, to capture URL
params and put them in XPL's input instance. Here is doc, with examples:
http://www.orbeon.com/ops/doc/reference-page-flow#url-extraction


Jurgis

Daniel Vaughan wrote:

> Hi,
>
> I have an XSL stylesheet that takes two parameters from a XPL
> pipeline: id and section and they are passed to the XSL somewhat like
> this:
>
> <p:processor name="oxf:xslt">
> <p:input name="data" href="#xml" />
> <p:input name="config">
> <xsl:stylesheet version="2.0">
> <xsl:import href="view.xsl" />
>                                 <xsl:param name="id" select="'43'" />
> <xsl:param name="section" select="'ip'" />
> </xsl:stylesheet>
> </p:input>
> <p:output name="data" id="html" />
> </p:processor>
>
>
> That works fine however instead of hard coding my parameters in the
> XPL I would like to be able to specify them in the URL so I could have
> a URL along the lines of:
>
> http://myserver/.../view?id=43&section=ip
>
> I cannot work out how to get the parameters from the URL and send them
> to my XSL using the XPL.
>
> I guess this is possible but I cannot work out how. Can anyone help please?
>
> Thanks
>
> Dan
>  


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