cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam" <sam_na...@rediffmail.com>
Subject Help needed with Content Aggregation ???
Date Tue, 11 May 2004 03:03:26 GMT
<P>
Hi group, <BR>
<BR>
I am not getting any clues how I could aggregate different XML documents into one lagre XML
document. What I am trying to do is fetching a list of URI from the database depending upon
the search keyword send by the client. I am able to get the following as a result of the search
made by the client.<BR>
<BR>
==================================================================<BR>
&lt;results&gt;<BR>
&nbsp; &nbsp; &lt;rowset&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;row&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;uri&gt;adh/resources/fragments/abstractlist.xml&lt;/uri&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;/row&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;row&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;uri&gt;adh/resources/fragments/arraylist.xml&lt;/uri&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;/row&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;row&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;uri&gt;adh/resources/fragments/linkedlist.xml&lt;/uri&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;/row&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;row&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;uri&gt;adh/resources/fragments/vector.xml&lt;/uri&gt;<BR>
&nbsp; &nbsp; &nbsp;  &lt;/row&gt;<BR>
&nbsp; &nbsp; &lt;/rowset&gt;<BR>
&lt;/results&gt;<BR>
<BR>
=================================================================<BR>
<BR>
The pipeline used for the above looks something like this:<BR>
<BR>
<BR>
&lt;map:match pattern=&quot;adh&quot;&gt;<BR>
&nbsp; &nbsp; &lt;map:generate src=&quot;adh/resources/start.xml&quot;/&gt;<BR>
&nbsp; &nbsp; &lt;map:transform src=&quot;adh/styles/start.xsl&quot;/&gt;<BR>
&nbsp; &nbsp; &lt;map:serialize type=&quot;html&quot;/&gt;<BR>
&lt;/map:match&gt;<BR>
<BR>
&lt;map:match pattern=&quot;adh/user/search&quot;&gt;<BR>
&nbsp; &nbsp;  &lt;map:generate src=&quot;adh/resources/search.xml&quot;/&gt;<BR>
&nbsp; &nbsp;  &lt;map:transform src=&quot;adh/styles/buildsearch.xsl&quot;&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;map:parameter name=&quot;use-request-parameters&quot;
value=&quot;true&quot;/&gt;<BR>
&nbsp; &nbsp;  &lt;/map:transform&gt;<BR>
&nbsp; &nbsp;  &lt;map:transform type=&quot;sql&quot;&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;map:parameter name=&quot;use-connection&quot;
value=&quot;portal&quot;/&gt;<BR>
&nbsp; &nbsp;  &lt;/map:transform&gt;<BR>
&nbsp; &nbsp;  &lt;map:serialize type=&quot;xml&quot;/&gt;<BR>
&lt;/map:match&gt;<BR>
<BR>
====================================================================<BR>
<BR>
What I am trying to do is build a large XML document on the fly from the contents of all the
search results as requested by the client(for ex: abstractlist.xml , arraylist.xml, linkedlist.xml,
vector.xml&nbsp; in&nbsp; my case) <BR>
<BR>
<BR>
But I am not getting ideas how will I aggregate this XML documents into one large XML document.
Mainly how should I define a pipeline to do this ???<BR>
<BR>
First I thought I would use a subsitemap for builing this large XML document, but was not
sure how to intergrate the existing pipeline with the subsitemap.<BR>
<BR>
Could anybody help me out with this thing ???<BR>
<BR>
All suggestions accepted !!!!<BR>
<BR>
Regards<BR>
Sam
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG
SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"
BORDER=0 VSPACE=0 HSPACE=0></a>

Mime
View raw message