cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: [C2] Multiple stylesheets ?
Date Mon, 09 Oct 2000 22:22:15 GMT
Marcus Crafter wrote:
> 
> Hi All,
> 
>         Ok, I'm venturing out into the world of silly questions here,
>         apologies to all if this has already been answered.
> 
>         I've noticed there's been many emails regarding the processing of more
>         than one stylesheet using Cocoon1. Many methods such as inserting the
>         processing instructions, to using the posted
>         ChainedStylesheetProcessor code have been suggested - however all of
>         the answers say that Cocoon2 will provide a better way of handling the
>         situation using the sitemap.
> 
>         My question is then, how can one do this using the sitemap in Cocoon2 ?
>         I've tried a test with the following mapping:
> 
> <map:match pattern="w.xml">
>     <map:generate src="we.xml"/>
>     <map:transform src="we-format.xsl"/>
>     <map:transform src="we-html.xsl"/>
>     <map:serialize/>
> </map:match>
> 
>         But no luck. I receive the 'resource not found' page which I presume
>         is a generic error page (the files exist, and work as transforms
>         individually).
> 
>         Am I doing something wrong here ? Should this work ? How was it
>         intended to be done using Cocoon 2 ?

Generally this should work as you expected. You must have all the files
mentioned in you sitemap snippet above directly in the context path of
Cocoon 2 (ie Tomcat-4.0: [tomcat-build]/webapps/cocoon/we.xml)

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1  856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1  856 2201
Hintereichenstrasse 7                     Mobil: +41 (0)78 759 7703
CH-8166 Niederweningen                    Mailto:Giacomo.Pati@pwr.ch
                                          Web:   http://www.pwr.ch

Mime
View raw message