cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
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
<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


Mime
View raw message