You could investigate the use of the "mode=" attribute of xsl:apply-templates which allows the use of different templates within the xsl for the same element type Conrad ---------- From: cocoon-users[SMTP:[EMAIL PROTECTED]] Sent: 09 January 2002 13:00 To: <[EMAIL PROTECTED]> Subject: Does cocoon2 support xslt translation t Hi The question is: Can I have an xml document written as jsp or xsp that has different xslt translations denpended on the http parameters the page gets. Can cocoon be cofigured to do this and how to do it. Thanks. Gasper an example: <?xml version="1.0"?> <% String s=request.getParameter("action"); if (s.equals("insert)) { %> <?xml-stylesheet href="insert.xsl" type="text/xsl"?> <% } else if (s.equals("edit")) { %> <?xml-stylesheet href="edit.xsl" type="text/xsl"?> <% } else if (s.equals("remove")) { %> <?xml-stylesheet href="remove.xsl" type="text/xsl"?> <% } %> <stuff> ... </stuff> --------------------------------------------------------------------- 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]>