No, this is not what I meant. You can replace:

        src="xq/discuss.xq"

by:

        src="cocoon:/insert-whtm-in-query/discuss.xq/path-to-whtm"

And create an new pipeline that includes the cleaned whtm into your xquery 
instruction.

:-)

Jonas Lundberg wrote:

The xquery stores the XML file in eXist.
Thus, if I try to insert the xml file using an Xinclude in discuss.xq,
and then use an xinclude transformer after generation,
then it will be put there *after* the query is executed. Which is not
useful in this case, since the XML is needed during execution.

Regards
Hans

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]