cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mats Noren <m...@spectral.se>
Subject Contentaggregation in subsitemaps
Date Fri, 17 Aug 2001 11:10:25 GMT
Hello,
I'm having problems using the sitemap contentaggregation within a
subsitemap.

Here is my sample sitemap code (shamelessly stolen from the sample file)

	<map:pipelines>
		<map:pipeline>
			<!--map:pipeline-->
			<map:match pattern="app/*">
				<map:aggregate element="root">
					<map:part
src="cocoon:/test/sidebar"/>
					<map:part src="cocoon:/doc/{1}"/>
				</map:aggregate>
				<map:serialize/>
			</map:match>
			<map:handle-errors>
				<map:transform
src="stylesheets/error2html.xsl"/>
				<map:serialize status-code="500"/>
			</map:handle-errors>
		</map:pipeline>
		<map:pipeline internal-only="true">
			<map:match pattern="test/sidebar">
				<map:generate src="menu/menu.xml"/>
				<map:serialize/>
			</map:match>
			<map:match pattern="doc/*.html">
				<map:generate src="pages/*.xml"/>
				<map:serialize/>
			</map:match>
		</map:pipeline>
	</map:pipelines>

None of the resources are found. And by looking at the log I that C2 is
trying to lookup the files relative to the cocoon webapp catalog.
Isn't the src attribute in a generator relative to the current subsitemap?
What is the correct syntax in my case?
Should I use the context url in some form?

Thanks in advance,
Mats

ps.
I'm using C2.1-dev from 20010815 on resin2.0.0
ds.



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message