From dev-return-18282-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Tue Aug 02 09:20:42 2005 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 83980 invoked from network); 2 Aug 2005 09:20:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2005 09:20:41 -0000 Received: (qmail 81936 invoked by uid 500); 2 Aug 2005 09:20:41 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 81741 invoked by uid 500); 2 Aug 2005 09:20:40 -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 81728 invoked by uid 99); 2 Aug 2005 09:20:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2005 02:20:39 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO 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; Tue, 02 Aug 2005 02:20:31 -0700 Received: from 172.26.0.5 (242.Red-213-97-135.pooles.rima-tde.net [213.97.135.242]) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id j729KZDG022593 for ; Tue, 2 Aug 2005 11:20:35 +0200 (MEST) Subject: Re: [
again] From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <42EF2CA5.8040100@pcotech.fr> References: <42E8F157.40604@pcotech.fr> <1122565916.5114.110.camel@localhost.localdomain> <42E9031A.6070800@pcotech.fr> <1122567979.5114.123.camel@localhost.localdomain> <42E9E7E9.4050709@pcotech.fr> <1122631254.5108.3.camel@localhost.localdomain> <42EA35BD.5080008@pcotech.fr> <42EA5245.1050303@pcotech.fr> <42EF2CA5.8040100@pcotech.fr> Content-Type: text/plain; charset=iso-8859-1 Date: Tue, 02 Aug 2005 11:20:32 +0200 Message-Id: <1122974432.7197.23.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 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 On Tue, 2005-08-02 at 10:19 +0200, Cyriaque Dupoirieux wrote: > Cyriaque Dupoirieux a écrit : > > > Ok, I think there is a problem - or at least something different - > > with cocoon transformations during views generation process. > > > > If I generate the site with the skin (not the view plug in) I have : > > > > *
> > > > * Because the style sheet does : > > *
> > o Credits calculation, but I have none... > > *
> > > > *
 
> > > > * Because the style sheet does : > > *
 
> > Why is that happening in skins and not in views? Maybe it is the sitemap.serializer.xhtml, because I just changed the serializer to "html" and get:
 
That means we have to look into the xhtml serializer to get our  . > > This is not the same behavior : > > > > * First, an empty div tag is kept with this form
> > * Second, the   appears like   in my source code which is > > what is expected (and not [Â ]). > > > I think I am the only one to have this problem since I am the only one > to participate to this thread ;-) . Thx for ignoring me ;-) > Anyway, here is what I think - When we put a hook in an *.fv file : > > * There is a css problem if the hook is transformed into an empty >
tag when generating XHTML, > * There is also a problem when we add a blank ( ) because if > the defined style has a background color, the tag
...> 
appears in the page as a box with the background > color > > So, the solution would be to skip the hook generation when the content > is empty. > Something like : > > | > > ... Generation of div tag and content ... > > > ... Skip the generation ... > > | > > But I don't know exactly where to put this control ? > /home/thorsten/apache/forrest-trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/resources/stylesheets/hooksMatcher.xsl ...but it is not that easy because normally you will have Now what you would have to do is to test whether the *transfomed* presentation model of the contract (remember a contract is right now only a xsl viewHelper template) will return something. You may test it via a xsl:variable but I am not sure. The hooksMatcher.xsl got imported in the prepare.xhtml.xsl all in the internal view plugin. HTH salu2 thorsten > Regards, > Cyriaque, > > > > > > > Cyriaque, > > > > Cyriaque Dupoirieux a écrit : > > > >> Thorsten Scherler a écrit : > >> > >>> On Fri, 2005-07-29 at 10:25 +0200, Cyriaque Dupoirieux wrote: > >>> > >>> > >>>> Ok, it works. > >>>> The only thing is when I edit the XHTML source, I have this : > >>>> > >>>>
Â
> >>>> > >>>> It seams that   is translated to  ? > >>>> Why don't you use ? > >>>> > >>>> > >>> > >>> > >>> > >>> http://www.html-world.de/program/html_sz.php > >>> > >>> It is in german, but you will understand. ;-) > >>> > >>> Did you try with ? What is the outcome? I will try after work. > >> > >> It gives this : > >>
! > >> > >> So I prefer   :-P > >> > >> You know, I don't really understand why browsers are disturbed by > >> empty
tags. > >> But it is a fact, and I have a proof ! > >> > >> Have a look here : > >> http://cyriaque.dupoirieux.free.fr/testviews1/testDiv.html > >> > >> Regards, > >> Cyriaque, > >> > >>> salu2 > >>> > >>> > >>> > >>>> Cordialement, > >>>> Cyriaque, > >>>> > >>>> Thorsten Scherler a écrit : > >>>> > >>>> > >>>> > >>>>> On Thu, 2005-07-28 at 18:08 +0200, Cyriaque Dupoirieux wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> Thorsten Scherler a écrit : > >>>>>> > >>>>>> > >>>>>> > >>>>>>>> in order to generate
if nbsp='true' instead of > >>>>>>>>
which is not well interpreted by browsers. > >>>>>>>> But this   is not enough, the generation still gives > >>>>>>>>
... > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> ¿? > >>>>>>> > >>>>>>> Are you sure? I tried it and is working fine for me. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> Actually, I don't understand what happens, if I write a trace to > >>>>>> see if it's the good template which is used, the generation is OK > >>>>>> because of my trace (the div tag is no more empty...) > >>>>>> (It's a little bit like Heisenberg uncertainty principle, the > >>>>>> observer disturb the result of the experiment :-) ) > >>>>>> > >>>>>> Let it as it is I will continue my investigations, it may come > >>>>>> from something else in my environment... > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> try a "forrest clean" in your project and build.sh clean in forrest. > >>>>> As well I recommend to "ant clean" all view plugins. > >>>>> > >>>>> After a build everything should work fine. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>> > >>>>>>> > >>>>>>>> I propose : > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Hmm, I do not like that much because the do not belong > >>>>>>> in there > >>>>>>> IMO. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> Sure you are right... > >>>>>> By the way, can you try to add something like this in your *.fv > >>>>>> and tell me the result : > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>>
> >>>>> > >>>>> HTH > >>>>> > >>>>> salu2 > >>>>> thorsten > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> Regard, > >>>>>> Cyriaque, > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> salu2 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> PS: Sorry, I have lost the thread... > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >> > >> > > > > -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)