Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 68476 invoked from network); 23 May 2004 23:01:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 May 2004 23:01:30 -0000 Received: (qmail 59542 invoked by uid 500); 23 May 2004 23:01:31 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 59414 invoked by uid 500); 23 May 2004 23:01:30 -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 59299 invoked by uid 98); 23 May 2004 23:01:29 -0000 Received: from dave@brondsema.net by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(65.42.175.124):. Processed in 0.056724 secs); 23 May 2004 23:01:29 -0000 X-Qmail-Scanner-Mail-From: dave@brondsema.net via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(65.42.175.124):. Processed in 0.056724 secs) Received: from unknown (HELO delorean.solidusdesign.com) (65.42.175.124) by hermes.apache.org with SMTP; 23 May 2004 23:01:28 -0000 Received: (qmail 2147 invoked from network); 23 May 2004 23:01:18 -0000 Received: from unknown (HELO localhost) (192.168.3.1) by 0 with SMTP; 23 May 2004 23:01:18 -0000 Received: from adsl-68-248-221-176.dsl.klmzmi.ameritech.net (adsl-68-248-221-176.dsl.klmzmi.ameritech.net [68.248.221.176]) by secure.solidusdesign.com (IMP) with HTTP for ; Sun, 23 May 2004 19:01:18 -0400 Message-ID: <1085353278.40b12d3e81536@secure.solidusdesign.com> Date: Sun, 23 May 2004 19:01:18 -0400 From: Dave Brondsema To: forrest-dev@xml.apache.org Subject: Re: Generating files with extensions other than .html References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 68.248.221.176 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on delorean.solidusdesign.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no version=2.60 X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Quoting Vlad Berditchevskiy : > Hi there! > > How can I generate HTML files with other extensions than .html? I looked > into sitemap.xmap and replaced all .html through .shtml, but there is > still one problem: when I generate static pages, the main page is called > index.html[1] and the navigation on that page is broken (in a webapp > everything is ok[2]). :-( Where does this filename come from? I can't find > it. > > ____ > [1] Actually I had to make rules for both .html and .shtml, otherwise > forrest would abort after the attempt to generate the first file, > which is index.html. > > [2] With the exception that I had to supply the indexfile attribute in > tabs.xml, otherwise all tabs would point to index.html, which does > not exist. First, it might be easiest to just have a script to rename all the html files afterwards. Hrm, maybe I could include this as a post-process target in the forrestbot. At any rate, using this method would also allow you to easily upgrade forrest without worring about merging your changes. Did you change cli.xconf? You can either provide one in your own project at (IIRC): src/documentation/conf/cli.xconf or modify Forrest's at core/context/WEB-INF/cli.xconf I'm not sure exactly how this file gets interpreted, but basically the cocoon static file generator (CLI) uses this file as it spiders through links, generate pages as it goes. Documentation is at http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine Of course you want to change . You might also want to specifically include index.shtml by using a . And maybe have an -- Dave Brondsema : dave@brondsema.net http://www.brondsema.net : personal http://www.splike.com : programming http://csx.calvin.edu : student org