Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 26257 invoked from network); 7 Dec 2005 16:43:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Dec 2005 16:43:52 -0000 Received: (qmail 15105 invoked by uid 500); 7 Dec 2005 16:43:45 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 15023 invoked by uid 500); 7 Dec 2005 16:43:44 -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 14951 invoked by uid 99); 7 Dec 2005 16:43:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 08:43:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [81.80.68.197] (HELO daikiri.pcotech.fr) (81.80.68.197) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 08:43:41 -0800 Received: from macadam.pcotech.fr (macadam.pcotech.fr [192.168.108.3]) by daikiri.pcotech.fr (8.11.6/Aquarel-5.5.8) with SMTP id jB7GhHs08204 for ; Wed, 7 Dec 2005 17:43:17 +0100 (MET) X-Url: http://www.pcotech.fr Received: from b52.pcotech.fr ([192.168.101.124]) by macadam.pcotech.fr (SMSSMTP 4.1.0.19) with SMTP id M2005120717431722653 for ; Wed, 07 Dec 2005 17:43:17 +0100 Received: from [192.168.106.27] (dhcp-tlse-27.pcotech.fr [192.168.106.27]) by b52.pcotech.fr (8.12.8/8.12.8) with ESMTP id jB7GhGV4004494 for ; Wed, 7 Dec 2005 17:43:16 +0100 Message-ID: <4397119C.4080703@pcotech.fr> Date: Wed, 07 Dec 2005 17:45:16 +0100 From: Cyriaque Dupoirieux User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Forrest Developers List Subject: Re: svn commit: r354793 - in /forrest/trunk: main/webapp/resources/chaperon/grammars/ main/webapp/resources/chaperon/stylesheets/ whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/ References: <20051207163447.19722.qmail@minotaur.apache.org> In-Reply-To: <20051207163447.19722.qmail@minotaur.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed 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 cdupoirieux@apache.org a écrit : >Author: cdupoirieux >Date: Wed Dec 7 08:34:33 2005 >New Revision: 354793 > >URL: http://svn.apache.org/viewcvs?rev=354793&view=rev >Log: >Add the ability to "escape" mailto addresses or links in order to avoid they are automatically rewritten by forrest. >If a link or an address must appear in the text of the site, but the user does not need a real link he can prefix both by '\' character. >Examples : >- \xxx.yyy@zzz.www will not be rewritten as a mailto link but just like text - without the \ - >This corrects the http://issues.apache.org/jira/browse/FOR-743 > > > Thorsten, I don't know if you have followed what I have done for the previous issue ? It is now possible to disable the behaviour of link.xlex and pattern2links.xsl by "escaping" the links or e-mail addresses we want to keep as full text. I think it may solve your problem of links apparition in url(...) defined in css styles directly integrated in the page... Salutations, Cyriaque, > >Modified: > forrest/trunk/main/webapp/resources/chaperon/grammars/link.xlex > forrest/trunk/main/webapp/resources/chaperon/stylesheets/pattern2link.xsl > forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/siteinfo-feedback.ft > >Modified: forrest/trunk/main/webapp/resources/chaperon/grammars/link.xlex >URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/resources/chaperon/grammars/link.xlex?rev=354793&r1=354792&r2=354793&view=diff >============================================================================== >--- forrest/trunk/main/webapp/resources/chaperon/grammars/link.xlex (original) >+++ forrest/trunk/main/webapp/resources/chaperon/grammars/link.xlex Wed Dec 7 08:34:33 2005 >@@ -19,6 +19,10 @@ > > > >+ >+ >+ >+ > > > >@@ -64,6 +68,7 @@ > > > >+ > > > >@@ -152,6 +157,9 @@ > > > >+ >+ >+ > > > > >Modified: forrest/trunk/main/webapp/resources/chaperon/stylesheets/pattern2link.xsl >URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/resources/chaperon/stylesheets/pattern2link.xsl?rev=354793&r1=354792&r2=354793&view=diff >============================================================================== >--- forrest/trunk/main/webapp/resources/chaperon/stylesheets/pattern2link.xsl (original) >+++ forrest/trunk/main/webapp/resources/chaperon/stylesheets/pattern2link.xsl Wed Dec 7 08:34:33 2005 >@@ -21,16 +21,32 @@ > xmlns:lex="http://chaperon.sourceforge.net/schema/lexemes/2.0"> > > >- >- >- >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ >+ > > > >- >- at >- >- >+ >+ >+ >+ >+ at >+ >+ >+ >+ @ >+ >+ > > > > >Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/siteinfo-feedback.ft >URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/siteinfo-feedback.ft?rev=354793&r1=354792&r2=354793&view=diff >============================================================================== >--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/siteinfo-feedback.ft (original) >+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/siteinfo-feedback.ft Wed Dec 7 08:34:33 2005 >@@ -19,14 +19,24 @@ > xmlns:forrest="http://apache.org/forrest/templates/1.0"> > >-

siteinfo-feedback
The feedback element will be used to construct a >+

The feedback element will be used to construct a > feedback link in the page appending: <a href="@href">{@to}</a>

>+
>+
Beware the link rewritting !
>+
>+

Forrest recognise links or e-mail address in the text of the site and automatically converts them into real links or mailto.
>+ if the to attribute is of the following form : \xxx.yyy@zzz.www it is recognised as a mailto link and will be converted too.
>+

>+

To avoid this, you can escape the conversion by prefixing the email adress by the '\' character : \\xxx.yyy@zzz.www will not be converted.
>+ (Note that none of the previous examples are rewritten because we used the '\' character in the source !).

>+
>+
>
> > > >- - href="mailto:webmaster@foo.com?subject=Feedback " > >+ + href="\mailto:webmaster@foo.com?subject=Feedback " > > Send feedback about the website to: > > > > > > >