Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 46469 invoked from network); 16 Dec 2005 11:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Dec 2005 11:26:17 -0000 Received: (qmail 88742 invoked by uid 500); 16 Dec 2005 11:26:17 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 88559 invoked by uid 500); 16 Dec 2005 11:26:16 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 88548 invoked by uid 99); 16 Dec 2005 11:26:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 03:26:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.169.145.166] (HELO natnoddy.rzone.de) (81.169.145.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 03:26:14 -0800 Received: from [172.26.0.5] (242.Red-213-97-135.staticIP.rima-tde.net [213.97.135.242]) (authenticated bits=0) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id jBGBPoTZ021136 for ; Fri, 16 Dec 2005 12:25:51 +0100 (MET) Subject: Re: Link to CSS howto-structurer-dsl.html From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <43A28DF5.4040202@pcotech.fr> References: <43A287D5.6050307@apache.org> <43A28DF5.4040202@pcotech.fr> Content-Type: text/plain; charset=utf-8 Date: Fri, 16 Dec 2005 12:25:49 +0100 Message-Id: <1134732349.8264.46.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N El vie, 16-12-2005 a las 10:50 +0100, Cyriaque Dupoirieux escribió: > Ross Gardler a écrit : > > > Paul Bolger wrote: > > > >> Can anyone explain how to link to an external CSS file from an .fv file? > > > > > > http://marc.theaimsgroup.com/?l=forrest-dev&m=113244185027121&w=2 > > > Hi, Paul, > > To summarise : > > * The tag to include css file has the following syntax : > > > > * url attribute indicates the name of the css file, the dispatcher > searches for this file in the following order : > o Does the css file exists in the following directory - if > yes, use this one : > > $PROJECT_HOME/src/documentation/resources/themes/yourtheme/css/layout.screen.css > > o Else, does the css file exists in the following directory - > if yes, use this one : > > $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/yourtheme/css/layout.screen.css > > o Else, does the css file exists in the following directory - > if yes, use this one : > > $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/css/layout.screen.css > > * media attribute indicates to the browser the stylesheets to use > depending on the detination media : > o screen : the stylesheet is used with the browser displaying > the page on the screen, > o print - the stylesheet is used while printing the document - > or print preview... > > (There is a bug with firefox, the bug is already declared twice > in bugzilla, so we are waiting...) > > * theme attribute indicates to the browser for which theme this > stylesheet should be used, letting you add several css files > corresponding to different themes of the same page. > > > HTH, > > Cyriaque, > :) Very nice, Cyriaque. I want to add the newest changes for the dispatcher transformer. We dropped the element because is was to much html specific. We decided to use a contract for the same functionality (I just checked it in): It is working like described from Cyriaque because I used the same code on which he is basing his description. The only difference is like you see from the sample that I had to drop the forrest: namespace. BTW IMO we have to rethink the default url prefixing/rewriting! Since css support is based now on contracts they can be as well requested with *.fv files (like I have shown in the xhtml2 & dispatcher thread). ...but since we rewrite e.g. to it is not possible to refer to a css fv that may resist in the same root like the request. e.g. the index-foo.fv has a type="css" meaning there is a match for index-foo.css, but we would not be able to match this since we rewrite it to "../themes/index-foo.fv". IMO we need an attribute to prevent this rewriting. like: Which will have to be outputted like: After "forrest site" you would find root |--index-foo.html `--index-foo.css wdyt? salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)