cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <>
Subject RE: two xml source files
Date Tue, 23 Apr 2002 11:22:37 GMT
Use aggregation. Add something like this to a matcher:
<map:aggregate element="site">
    <map:part src="cocoon:/menu/main.xml"/>
    <map:part src="cocoon:/content/{1}.xml" label="content"/>
<map:transform src="site2html.xsl"/>
You should define also separate matchers for /content/*.xml and /menu/*.xml.
See Cocoon samples sitemap to get the idea (/src/webapp/samples).
Konstantin Piroumian 
kpiroumian@ <>
-----Original Message-----
From: Arda Balci [] 
Sent: Tuesday, April 23, 2002 3:15 PM
Subject: two xml source files

I have two xml files. One is for the menu content, the other is for the body
content. I want to read from these two different files with one xsl file,
and serialize html.
The menu file is to be used with each page.
I couldn't solve the problem. Do I need a special pipeline in the sitemap?
Arda Balci
It Consultant

View raw message