You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by logica <mi...@logica.com> on 2001/08/23 19:09:15 UTC
Session Parameters in Stylesheets
How do I access a session parameter from a stylesheet? I know how to get a
request parameter:
1. set
<use-request-parameters>true</use-request-parameters>
2. and use something like this in the stylesheet:
<xsl:param name="messageid">0</xsl:param>
...
<xsl:template match="mmsc:message[@id=$messageid]">
...
How can I do the same, but get session parameters instead?
Thanks
Mark Miller
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Session Parameters in Stylesheets
Posted by Vadim Gritsenko <vg...@hns.com>.
Use action to get session attributes and return them to sitemap.
Right now there is no such action, but it is easy to write it.
Vadim
> -----Original Message-----
> From: logica [mailto:millerm@logica.com]
> Sent: Thursday, August 23, 2001 1:09 PM
> To: cocoon-users@xml.apache.org
> Subject: Session Parameters in Stylesheets
>
>
> How do I access a session parameter from a stylesheet? I know how to get a
> request parameter:
>
> 1. set
>
> <use-request-parameters>true</use-request-parameters>
>
>
> 2. and use something like this in the stylesheet:
>
> <xsl:param name="messageid">0</xsl:param>
> ...
>
> <xsl:template match="mmsc:message[@id=$messageid]">
> ...
>
> How can I do the same, but get session parameters instead?
>
>
> Thanks
>
> Mark Miller
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>