cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: Transform XSP and then aggregate them
Date Wed, 07 May 2003 20:47:12 GMT
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
<!--Content Aggregation -->
<map:pipeline internal-only="true">
<!--header -->
<map:match pattern="header">
<map:generate src="xml/header.xml"/>
<map:serialize type="xml"/>
<map:match pattern="footer">
<map:generate src="xml/footer.xml"/>
<map:serialize type="xml"/>
<!--navigation -->
<map:match pattern="navigation">
<map:generate src="xml/navigation.xml"/>
<map:serialize type="xml"/>
<!-- content-->
<map:match pattern="*">
<map:generate src="xml/content/{1}.xml"/>
<map:serialize type="xml"/>
<!-- content-meta-->
<map:match pattern="*-meta">
<map:generate src="xml/content/{1}-meta.xml"/>
<map:serialize type="xml"/>
<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:transform src="xsl/all2html.xsl"/>
<map:serialize type="html"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message