You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thorsten Scherler <th...@apache.org> on 2003/05/07 22:47:12 UTC

Re: Transform XSP and then aggregate them

Stephan Niedermeier wrote:
> Hello,
>  
> I would like to transform a XSP-Document with a serverpages transformer 
> which returns a xml file which is not written to file system. After that 
> i would like to merge the virtual xml (from XSP) with a xml file from 
> the file system.
>  
> How to access the virtual xml with the map:part element of the 
> map:aggregate in the sitemap?
>  
> Thank you very much.
>  
> Regards
> Stephan
<map:pipelines>
<!--Content Aggregation -->
<map:pipeline internal-only="true">
<!--header -->
<map:match pattern="header">
<map:generate src="xml/header.xml"/>
<map:serialize type="xml"/>
</map:match>
<!--footer-->
<map:match pattern="footer">
<map:generate src="xml/footer.xml"/>
<map:serialize type="xml"/>
</map:match>
<!--navigation -->
<map:match pattern="navigation">
<map:generate src="xml/navigation.xml"/>
<map:serialize type="xml"/>
</map:match>
<!-- content-->
<map:match pattern="*">
<map:generate src="xml/content/{1}.xml"/>
<map:serialize type="xml"/>
</map:match>
<!-- content-meta-->
<map:match pattern="*-meta">
<map:generate src="xml/content/{1}-meta.xml"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="page-*">
<map:aggregate element="document">
<!--Here you can access the internal pipline with cocoon:/. It will work 
with internal-only="false" (you do not write that) as well. -->
<map:part src="cocoon:/header" element="header"/>
<map:part src="cocoon:/navigation" element="navigation"/>
<map:part src="cocoon:/footer" element="footer"/>
<map:part src="cocoon:/{1}" element="content"/>
<map:part src="cocoon:/{1}-meta" element="metas"/>
</map:aggregate>
<map:transform src="xsl/all2html.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org