Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 86723 invoked from network); 5 Feb 2011 07:54:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2011 07:54:53 -0000 Received: (qmail 679 invoked by uid 500); 5 Feb 2011 07:54:53 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 557 invoked by uid 500); 5 Feb 2011 07:54:51 -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 545 invoked by uid 99); 5 Feb 2011 07:54:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 07:54:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Feb 2011 07:54:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9D32F1907F2 for ; Sat, 5 Feb 2011 07:54:30 +0000 (UTC) Date: Sat, 5 Feb 2011 07:54:30 +0000 (UTC) From: "David Crossley (JIRA)" To: dev@forrest.apache.org Message-ID: <1438453168.1531.1296892470625.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1231921702.1530.1296892350813.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (FOR-1220) trouble with config variable and skins, only in WAR mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FOR-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990931#comment-12990931 ] David Crossley commented on FOR-1220: ------------------------------------- See mail discussion: http://s.apache.org/Yqd Subject: an XSLT issue with seed-sample WAR and Java-1.5 Date: 4 Feb 2011 > trouble with config variable and skins, only in WAR mode > -------------------------------------------------------- > > Key: FOR-1220 > URL: https://issues.apache.org/jira/browse/FOR-1220 > Project: Forrest > Issue Type: Bug > Components: Launch servlet WAR, Skins (general issues) > Affects Versions: 0.9-dev, 0.10 > Reporter: David Crossley > Fix For: 0.10 > > > When using a WAR, and our provided skins, it seems that the $config (i.e. //skinconf) variable is not instantiated until it has actually been used. In a stylesheet (e.g. main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl) the $config variable is set by the imported "common" related stylesheet. The first use of the $config variable (i.e. motd) is failing in WAR mode, but all is fine in 'forrest run' and 'forrest site' modes. The fix seems to be to actually use the variable (e.g. with count() function) before trying to process it. > This seems to be only a problem on Java 1.5 and is okay on Java 6. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira