Hi All!!
I have a matcher creating a XML result given a certain request parameter.
Now I need to call this matcher X times with different request parameters
and aggregate the output into one XML document. I don't know how many times
this matcher will be called, or with which request parameters.
The way I do this kind of thing is to write a pipeline generator which
makes include statements. Then run a cinclude transformer to resolve the
includes.
ie. Generator 1 does some business logic and creates SAX like this:
cinclude:include cocoon:/generator2?parm=x/
cinclude:include
Hi all,
I have these entries in a sub-sitemap:
map:match pattern=autolayout.xml
map:read src=docs2/autolayout.xml mime-type=text/xml/map:read
map:serialize type=xml /
/map:match
map:match pattern=test.xml
map:aggregate element=site
Hi Arnaud,
It is necessary to define element for each map:part also:
map:part src=cocoon:/autolayout.xml element=uuu/
map:part src=cocoon:/coco.xml element=ooo/
Best regards.
Roman
Arnaud Vandyck wrote:
Hi all,
I have these entries in a sub-sitemap:
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Hi Arnaud,
It is necessary to define element for each map:part also:
map:part src=cocoon:/autolayout.xml element=uuu/
map:part src=cocoon:/coco.xml element=ooo/
This is *not* necessary.
Best regards.
Roman
Vadim Gritsenko [EMAIL PROTECTED] wrote:
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Hi Arnaud,
It is necessary to define element for each map:part also:
map:part src=cocoon:/autolayout.xml element=uuu/
map:part src=cocoon:/coco.xml element=ooo/
This is
Hi All,
I am facing a problem on aggregation of xml and xsp
page.
It works fine if there is no xsp:logic tag
in xsp.
If I put it in Xsp and aggregating with xml file.
It doesnot show screen properly and also donot execute logic tag.
Pls guide me for the same asap.
Thanks,
Niket
you generate before you aggregate, right?
map:match pattern=*.frag
map:generate src={1}.xsp type=serverpages/
map:transform src=page2html.xsl
map:serialize/
/map:match
map:match pattern=*.xsp
map:aggregate
map:part src=cocoon:/{1}.frag/
map:part src=anotherxmlfile.xml/
/map:aggregate