Hey there,
My problem is to setup the Cocoon sitemap.xmap in a way, that it first makes a transformation of an XML file with XSL, which I can then use for my own transformation.
I have following files:
start.xml : Contains references of files which are put together applying combine_start.xsl
transform.xsl: This is my own XSL file which I want to use on the transformation made with the combine_start.xsl (output XML)
Since start.xml is kind of an index for all the files needed in the process, the following sitemap wont show any results, if any XSL functions are applied (no tags are found). I've search the net, but I havent found a way to setup a pipeline which first makes a transformation, before applying another transformation.
Hopefully my problem istn too confusing and I appreciate any help I can get. Below you'll find the sitemap I tried.
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:match pattern="*">
<map:generate src="start.xml"/>
<map:transform src="transform.xsl">
<map:parameter name="X" value="{request-param:X}"/>
<map:parameter name="Semester" value="{request-param:Semester}"/>
<map:parameter name="Name" value="{request-param:Name}"/>
<map:parameter name="XXX" value="{request-param:XXX}"/>
</map:transform>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>