Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 96527 invoked from network); 14 Feb 2009 15:00:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2009 15:00:18 -0000 Received: (qmail 20059 invoked by uid 500); 14 Feb 2009 15:00:17 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 20017 invoked by uid 500); 14 Feb 2009 15:00:17 -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 20004 invoked by uid 99); 14 Feb 2009 15:00:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 07:00:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.60.90.242] (HELO enterprise.16degrees.com.au) (202.60.90.242) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 15:00:08 +0000 Received: from developer (unknown [121.215.243.70]) by enterprise.16degrees.com.au (Postfix) with ESMTPA id 4FEE519020BB for ; Sun, 15 Feb 2009 00:59:33 +1000 (EST) From: "Gavin" To: References: <4996D919.8060902@free.fr> Subject: RE: Embedding existing HTML pages from a location outside src/documentation/content/xdocs Date: Sun, 15 Feb 2009 00:59:38 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4996D919.8060902@free.fr> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcmOsvfU/Gfh9SwxRqS8zENZx4g0YAAATAqg X-Antivirus: avast! (VPS 090213-0, 13/02/2009), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Mathieu Champlon [mailto:m.champlon@free.fr] > Sent: Sunday, 15 February 2009 12:46 AM > To: user@forrest.apache.org > Subject: Embedding existing HTML pages from a location outside > src/documentation/content/xdocs > > Hello, > > I'm trying to embed existing HTML pages into a site generated by Forrest. > Starting from a "forrest seed" everything works fine out of the box if > the pages are in a sub-directory of src/documentation/content/xdocs like > samples-b/embedded_html.html is. > However I would like to move them somewhere else, for instance let's say > in src/documentation/content/embedded/embedded_html.html, changing > site.xml like this : > > @@ -43,6 +43,8 @@ > > > description="Table of Contents for this example site"/> > + + description="Test of Embedded HTML"/> > > > > @@ -60,8 +62,6 @@ > > description="Test of How To documents"/> > - - description="Test of Embedded HTML"/> > description="Sample Ascii Art page"/> > > > > I cannot seem to come up with the proper modifications to sitemap.xmap > and/or locationmap.xml to make it work. > > I thought adding something like this to locationmap.xml would be enough : > > > > But the file is still being looked for in .../xdocs/... : > X [0] embedded/embedded_html.html > BROKEN: > c:\Users\Mat\Desktop\dev\perso\cpp\forrest_seed\src\documentation\content\ > xdocs\embedded\embedded_html.xml > (The system cannot find the path specified) This is a very quick suggestion very late at night for me, but {properties:content}/{0} would resolve to /src/documentation/content/embedded_html.html as you've stripped out the embedded directory included in the match. Try It will still look for it in xdocs as fallback of it does not find it in the match specified. If that's wrong either myself or someone else can look at a better time of day :) Gav... > > Is there a solution involving only altering the locationmap ? > > I also tried the "old_site" path, that is not touching locationmap.xml > but adding the following to the sitemap.xmap existing pipeline : > > > > > > ... > This somewhat succeeds, as in "build successful", but the page is not > really embedded as it misses the skinning. > Then I tried this instead : > > > > > src="{forrest:forrest.stylesheets}/html-to-document.xsl"/> > > > ... > And got the following error : > X [0] embedded/embedded_html.html > BROKEN: > C:\Users\Mat\Desktop\dev\tools\forrest\main\webapp\.\c:\Users\Mat\Desktop\ > dev\perso\cpp\forrest_seed\src\WEB-INF\jtidy.properties > (The filename, directory name, or volume label syntax is incorrect) > > I read https://issues.apache.org/jira/browse/FOR-679 and did what is > suggested but the same error remains. > I tried copying the jtidy.properties file to src/WEB-INF and still got > the same error. > > Did I miss something obvious ? > Am I completely misunderstanding how Forrest/Cocoon work ? > > Thanks ! > MAT.