> > Why not generate SQL string *in* this XSP? That's would give > the best performance. > > Or, other way is to obtain this SQL string into String > programmatically, without using include. >
Okay I understand the suggestion but it doesn't work that well in my case. The reason is that the sql string is generated as a series of xslt transforms: <map:match pattern="dynamicSql.sql"> <map:generate type="request"/> <map:transform src="stylesheets/requestQuery.xslt"/> <map:serialize type="text"/> </map:match> And I like this approach, especially since I much prefer writing in XSLT than in Java. But in theory I could redo my (not trivial) xslt scripts in Java. Could I take the dynamic xslt-generated sql string and shove it into a cocoon parameter, and then read the parameter inside my xslt? Other place I thought about about sticking the sql was inside the session or (shudder) inside a file. Steve --------------------------------------------------------------------- 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]>