cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: xsl vs cocoon
Date Sun, 14 Jul 2002 16:33:22 GMT
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:ohaddad@neomalogic.com] 
Sent: Friday, July 12, 2002 3:52 AM
To: cocoon-users@xml.apache.org
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message