Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 26978 invoked from network); 3 Mar 2007 20:44:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2007 20:44:08 -0000 Received: (qmail 11796 invoked by uid 500); 3 Mar 2007 20:44:16 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 11773 invoked by uid 500); 3 Mar 2007 20:44:16 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 11764 invoked by uid 99); 3 Mar 2007 20:44:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 12:44:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of evlach@aegean.gr designates 195.251.130.4 as permitted sender) Received: from [195.251.130.4] (HELO hermes2.aegean.gr) (195.251.130.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 12:44:06 -0800 Received: from [195.251.168.174] ([195.251.168.174]) by hermes2.aegean.gr with Microsoft SMTPSVC(6.0.3790.1830); Sat, 3 Mar 2007 22:42:42 +0200 Message-ID: <45E9DE00.6020505@aegean.gr> Date: Sat, 03 Mar 2007 22:43:44 +0200 From: Evangelos Vlachogiannis User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: Generating an aggregated xml from all the files in a directory References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Mar 2007 20:42:42.0435 (UTC) FILETIME=[7D8F6D30:01C75DD4] X-Virus-Checked: Checked by ClamAV on apache.org Hi Vasili, I think you need Xpathdirectory Generator (http://cocoon.apache.org/2.1/userdocs/xpathdirectory-generator.html). I hope this is included in forrest.. Then you just have a root element (elements) and call an xpath expression to include what ever elements you need from xmls in dir. hope that helps, Vangelis Vassilis Koutavas wrote: > What is the right way to create one aggregated xml file from all the > xml files in a directory? > I think I need to use map:aggregate, map:part, and dir:directory in my > sitemap.xml, but I don't quite understand how to put them together. I > don't know how many files will be in the directory, thus I don't know > how many parts the aggregation will have. > > Let's say that in my xdocs I have the directory called "the/dir/" in > which there are a number of xml files, and I want to create a file > called "the-list.xml" (in the same direcory) which will contain the > contents of all the xml files in that directory, under a common > element called "elements". After I have this I know how to transform > it using an xsl, and produce the final html file. > > Best -- --------------------------------------------------------------- Evangelos Vlachogiannis Researcher - PhD. Candidate Contact: http://www.syros.aegean.gr/users/evlach/contactme.php ---------------------------------------------------------------