Alfred: I tried as you said, and here how my row2include.xsl looks:
========================================================== <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sql="http://apache.org/cocoon/SQL/2.0" xmlns:cinclude="http://apache.org/cocoon/include/1.0"> <xsl:template match="results"> <frag> <xsl:for-each select="sql:rowset/sql:row/sql:uri"> <xsl:apply-templates select="sql:uri"/> </xsl:for-each> </frag> </xsl:template> <xsl:template match="sql:uri"> <cinclude:include src="{uri}"/> </xsl:template> </xsl:stylesheet> ============================================================= And for your reference, heres what I get the ouput from the buildsearch.xsl : <results> <rowset> <row> <uri>adh/resources/fragments/abstractlist.xml</uri> </row> <row> <uri>adh/resources/fragments/arraylist.xml</uri> </row> <row> <uri>adh/resources/fragments/linkedlist.xml</uri> </row> <row> <uri>adh/resources/fragments/vector.xml</uri> </row> </rowset> </results> ============================================================== But all I get is a blank page, I think something is wrong the way I am using for-each and cinclude. Might be you could help ??? Regards Sam On Tue, 11 May 2004 Nathaniel Alfred wrote : >Use a small stylesheet at the end of your current pipeline to transform >the result set rows into cinclude:include tags, and then add the >CIncludeTransformer as next pipeline step: > >Transform <row><uri/></row> ==> <include xmlns: ><http://apache.org/cocoon/include/1.0> >http://apache.org/cocoon/include/1.0 src="{uri}"/> > ><map:match pattern="adh/user/search"> > <map:generate src="adh/resources/search.xml"/> > <map:transform src="adh/styles/buildsearch.xsl"> > <map:parameter name="use-request-parameters" value="true"/> > </map:transform> > <map:transform type="sql"> > <map:parameter name="use-connection" value="portal"/> > </map:transform> > <map:transform src="row2include.xsl"/> > <map:transform type="cinclude"/> > <map:serialize type="xml"/> ></map:match> > >HTH, Alfred. > >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 in my >case) > >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 >??? > >Regards >Sam <http://clients.rediff.com/signature/track_sig.asp> > >This message is for the named person's use only. It may contain >confidential, proprietary or legally privileged information. No >confidentiality or privilege is waived or lost by any mistransmission. >If you receive this message in error, please notify the sender urgently >and then immediately delete the message and any copies of it from your >system. Please also immediately destroy any hardcopies of the message. >You must not, directly or indirectly, use, disclose, distribute, print, >or copy any part of this message if you are not the intended recipient. >The sender's company reserves the right to monitor all e-mail >communications through their networks. Any views expressed in this >message are those of the individual sender, except where the message >states otherwise and the sender is authorised to state them to be the >views of the sender's company. > >
