Heiko I through together a quick test which works. Let me know if this works with you? PS. I am using cocoon from CVS as of about 3 nights ago.
sitemap.xmap (extract) ====================== <map:pipeline> <map:match pattern="xsp/test.xsp"> <map:generate src="xsp/example.xsp" type="serverpages"/> <map:transform src="{session-attr:selected_stylesheet}"/> <map:serialize/> </map:match> </map:pipeline> xsp/example.xsp =============== <?xml version="1.0"?> <xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:xsp-session="http://apache.org/xsp/session/2.0" create-session="true"> <document> <xsp-session:set-attribute name="selected_stylesheet">xsp/example.xsl</xsp-session:set-attribute> <test>Example with the following stylesheet set: <xsp-session:get-attribute name="selected_stylesheet"/></test> </document> </xsp:page> xsp/example.xsl =============== <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="document"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="test"> <p><xsl:apply-templates/></p> </xsl:template> </xsl:stylesheet> Andrew On Thu, 2003-01-30 at 17:07, Heiko Milke wrote: > Hey Andrew, > > > Heiko > > > > Have you set the session to be created? > > > > In the xsp:page declaration: > > > > xmlns:xsp-session="http://apache.org/xsp/session/2.0" > > create-session="true" > > Yes I did. > > And if i "echo" the value from "selected_stylesheet" in the xsp page then it > is correctly set. The sitemap simply doesn't get notified about the new > session variable. =( > > Heiko > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> -- Andrew Timberlake <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>