Othman,
Try the following:
<map:match pattern="xsl-from-x">
<map:generate type="serverpages" src="get-xsl-from-param-x.xsp"/>
<map:transform src="strip-root.xsl"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="main">
<map:generate src="b.xml"/>
<map:transform src="cocoon:/xsl-from-x"/>
<map:serialize type="xml"/>
</map:match>
get-xsl-from-param-x.xsp will be close to:
<xsp:page .....>
<root>
<util:include-expr>
<util:expr><xsp:expr>request.getParameter(x)</xsp:expr></util:expr>
</util:include-expr>
</root>
</xsp:page>
Vadim
-----Original Message-----
From: Othman Haddad [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 3:52 AM
To: [EMAIL PROTECTED]
Subject: RE: xsl vs cocoon
ok,
imagine i have an xsp page witch contains a input file field named "x".
i want that the content of the field "x" will be a stylesheet which will
be applied on a fixed file "b.xml".
so how can you do that ? can you give an example ?
thanks.
PS:sorry fot HTML e-mails,i'm using IncrediMail which can't deliver
other thing than HTML!
�
...
---------------------------------------------------------------------
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]>