cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Delahaye <nico...@imediation.com>
Subject [cocoon2][sitemap] multiple filters problem
Date Mon, 20 Mar 2000 17:12:26 GMT
Hi,

I need to create a sitemap that uses two xsl filters as: xml files --
Xslt process --> xml -- Xslt process --> html.
I try to define :

<cocoon version="2.0">
	<component role="parser"
class="org.apache.cocoon.components.parser.XercesParser"/>

	<generator name="file"
class="org.apache.cocoon.generators.FileGenerator"/>

	<filter name="xslt"
class="org.apache.cocoon.filters.XalanFilter"/>
	<filter name="uri"
class="org.apache.cocoon.filters.XalanFilter"/>

  	<serializer name="xml"
class="org.apache.cocoon.serializers.XMLSerializer"/>
	<serializer name="html"
class="org.apache.cocoon.serializers.HTMLSerializer"/>

	<sitemap>
		<partition>
			<process uri="**.xml" source="**.xml">
				<generator name="file"/>
				<filter name="uri">
					<parameter name="stylesheet"
value="first.xsl"/>
				</filter>
				<filter name="xslt">
					<parameter name="stylesheet"
value="second.xsl"/>
				</filter>
				<serializer name="html">
					<parameter name="contentType"
value="text/html"/>
				</serializer>
			</process>
		</partition>
	</sitemap>
</cocoon>

Why the last filter is the only one applied ? Can we apply more than
one filter with Cocoon 2 ?

Best Regards
Nicolas Delahaye

Mime
View raw message