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

Reply via email to