Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 10842 invoked by uid 500); 22 Jun 2003 06:32:40 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 10833 invoked from network); 22 Jun 2003 06:32:40 -0000 Received: from grunt21.ihug.com.au (203.109.249.141) by daedalus.apache.org with SMTP; 22 Jun 2003 06:32:40 -0000 Received: from p264-tnt3.syd.ihug.com.au (expresso.localdomain) [203.173.133.10] by grunt21.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 19TyPC-0000yx-00; Sun, 22 Jun 2003 16:32:50 +1000 Received: from jeff by expresso.localdomain with local (Exim 3.35 #1 (Debian)) id 19TyT7-0001ju-00 for ; Sun, 22 Jun 2003 16:36:53 +1000 Date: Sun, 22 Jun 2003 16:36:53 +1000 From: Jeff Turner To: forrest-dev@xml.apache.org Subject: Re: how can I add a directory for additional resources ??? Please help! Message-ID: <20030622063653.GD338@expresso.localdomain> Mail-Followup-To: forrest-dev@xml.apache.org References: <20030621232646.GA338@expresso.localdomain> <000001c33887$1fe249d0$0101c80a@mx2002> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c33887$1fe249d0$0101c80a@mx2002> User-Agent: Mutt/1.5.3i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Sun, Jun 22, 2003 at 08:25:49AM +0200, Mikael Sitruk wrote: > > Sent: Sunday, June 22, 2003 01:27 by Jeff Turner > > >On Sun, Jun 22, 2003 at 01:08:26AM +0200, Mikael Sitruk wrote: > >> Hi > >> > >> I would like to add a directory in the site under the resources > >> directory named "xml-samples". When I create it in the > >> "src/documentation/content/resources", the directory is not copied to > > >> the generated site! > > >Put the directory in src/documentation/content/ if you want it copied > over >as-is. > > In fact I need something more complicated! > I need this directory to be copied to the 'build' area but not in the > final generated site. > The reason is quite simple, I need the files there in order to load them > in the document2html stylesheet. The original document being processed > contains a reference to another document that must be processed, like a > document contains images. > Therefore in the stylesheet, I use there the "document()" > function. But I can't just put the name of the file or the relative > location of the file from the document being processed since the XSLT > processor is not executed from the place where the original document is, > but from the skin directory. > Therefore the document("file_name") doesn't work and need to > document(concat('../../../../content/xml-samples/',$file)) > Anyway I don't need this directory to be copied in the generated site, > but in the build area only in order to be able to find the referenced > file. If you're using CVS Forrest, I just modified forrest.build.xml to copy across everything from src/documentation/resources/*, as I think your kind of use-case will become much commoner in future. For Forrest 0.4, I think the options are: - Put the content in src/documentation/skins/common/xslt/html/* - Hack the forrest.build.xml file --Jeff > > >--Jeff > > >> I presume that the sitemap is the answer but I really don't see how > to > >> configure it! > >> > >> > >> Thanks. > >> Mikael.S >