Uwe, I think what you are looking for is passing request parameters to the stylesheet. To do that you must pass the paramters in the sitemap. For example:
<map:transform type="xslt" src="stylesheets/myStyleSheet.xsl"> <map:parameter name="use-request-parameters" value="true"/> </map:transform> This declares that all the request parameters will be passed to the Stylesheet. Then in the stylesheet you must declare the variable at the top: <xsl:param name="usertype"/> Then in the body of the stylesheet you can use the xsl syntax to substitute the value. For example: <input type="hidden" name="usertype" value="{$usertype}"></input> Hope this helps, Aaron -----Original Message----- From: Uwe Stelzer [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 5:55 AM To: [EMAIL PROTECTED] Subject: Re: from session-attribute to xsl-variable not quite... your construct is used when selecting attributes or text nodes from an xml document. But I want to get the value from a session attribute! ----- Original Message ----- From: "Steven Punte" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 14, 2002 3:37 AM Subject: Re: from session-attribute to xsl-variable > The construct is something like > > <xsl:variable name="usertype" > select="@someattribute"/> > > That is, if I understand your queestion correctly. > > steve > > --- Uwe Stelzer <[EMAIL PROTECTED]> wrote: > > Hello Cocoon fellows, > > > > How can I only copy the content of a session > > attribute to a xsl variable in my xsl-logicsheet? > > > > I have tried this here, but I only get an empty > > string in $usertype: > > <xsl:variable > > name="usertype"><session:get-attribute > > name="usertype"/></xsl:variable> > > > > If I do a simple > > <xsl:variable > > name="usertype">student</xsl:variable> > > then it works! > > > > If I put <session:get-attribute name="benutzertyp"/> > > elsewhere in my template, it works also. > > > > What am I doing wrong? > > > > TIA > > > > Uwe Stelzer > > > > > > > > > --------------------------------------------------------------------- > > 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: > > <[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <[EMAIL PROTECTED]> > > > > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>