Hi Stavros, Well, yes, why not. I haven't done it and haven't tested it, but it should be something like the following...
<map:match pattern="*.xsp"> <map:generate src="xsp_xmls/{1}.xml"/> <map:transform src="xml2xsp.xsl"/> <map:serialize type="xml"/> </map:match> <map:match pattern="*.html"> <map:generate src="cocoon:/{1}.xsp" type="serverpages" /> <map:transform src="something2html.xsl" /> <map:serialize/> </map:match> The first match will answer a request to an xsp, and create it using your xml and xsl. The second match will answer the user request of some html page. For example: if the user requests "boskabouter.html", the second match will try to find the boskabouter.xsp, run the xsp and transform it using the something2html.xsl. By looking for the boskabouter.xsp it will trigger the first match, which will look for the boskabouter.xml in the xsp_xmls directory, transform it using the xml2xsp.xsl and return the result. Warning: this is just to get you started, there are probably some errors in the example. Also, this *.xsp should not be requested from outside, so you have to protect it from the user. You don't want him/her to see the xsp, do you? I guess you have to use <map:pipeline internal-only="true"> somewhere.... Have fun, Jelle -----Oorspronkelijk bericht----- Van: Cocoon User [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 10 december 2002 12:37 Aan: [EMAIL PROTECTED] Onderwerp: xml+xsl -> xsp is i possible to create an .xsp from a xml-xsl compination (through cocoon) an then ask from cocoon to execute this .xsp? and all this on the fly? i want to call http://....../some.xsp and cocoon create the some.xsp and then execute it thnx stavros Kounis --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]>