cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cocoon User <>
Subject map:resource and map:aggregate about (where is the problem)
Date Fri, 21 Feb 2003 10:56:43 GMT


i try to use a xml file as a data repository
and get data (generate xml output using .xsl)

i have into my sitemap this match

<map:match pattern="xmldb/*.*">
	<map:generate src="../htdocs/xmldb/{1}_{../locale}.xml"/>
	<map:transform src="../htdocs/xmldb/{2}.xsl"/>
	<map:serialize type="xml"/>

when i make a call using a URL just like


where data_el.xml is my data repository
and   trans.xsl   is my xsl file

everything work fine

but !!!!!

i want this xml output to be a part of a greater xml output
so i try to use aggregate

my code

		<map:resource name="dynbuilder">
			<map:aggregate element="site">
				<map:part src="cocoon:/xmldb/{../1}.{../2}.trans" label="content"/>

			<map:serialize type="xml"/>

in this code <map:part src="cocoon:/....... />

seems to bring No content

i try to modify my map:resource as
                <map:resource name="dynbuilder">
                        <map:generate src="cocoon:/xmldb/{../1}.{../2}.trans" label="content"/>

                        <map:serialize type="xml"/>

and i get no content too

i call this resource using

				<map:match pattern="dynbuilder.*.*">
					<map:call resource="dynbuilder"/>


is here something i do wrong?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message