le 01/05/2006 01:21 [EMAIL PROTECTED] a écrit :
Author: crossley
Date: Sun Apr 30 16:21:01 2006
New Revision: 398460
URL: http://svn.apache.org/viewcvs?rev=398460&view=rev
Log:
Increment default $year.
Modified:
forrest/trunk/main/webapp/skins/common/skinconf.xsl
Modified: forrest/trunk/main/webapp/skins/common/skinconf.xsl
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/skinconf.xsl?rev=398460&r1=398459&r2=398460&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/skinconf.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/skinconf.xsl Sun Apr 30 16:21:01 2006
@@ -81,7 +81,7 @@
<host-logo/>
</xsl:if>
<xsl:if test="not(year)">
- <year>2005</year>
+ <year>2006</year>
</xsl:if>
In the siteinfo-copyright.ft contract, there is a nice method which
calculates and layout the copyright date(s), here is the comments :
<xsl:template name="current-year">
<!-- Displays the current year after the inception year (in the
copyright i.e: 2002-2005)
- the copyright year (2005 by default) can be indicated in the
copyrightyear parameter,
- the year format (yyyy by default) can be indicated in the
dateformat parameter,
- the dates separator (- by default) can be indicated in the
dateseparator parameter.
For instance the following call will format the year on 2 digits
and separates the dates
with /
(copyright 02/05)
<xsl:call-template name="current-year">
<xsl:with-param name="copyrightyear" select="'02'"/>
<xsl:with-param name="dateformat" select="'yy'"/>
<xsl:with-param name="dateseparator" select="'/'"/>
</xsl:call-template>
Warning, to enable inception year, inception attribute must be
set to "true" in copyright/year/@inception
-->
It is not necessary to update the date every year.
Salutations,
Cyriaque,
<xsl:if test="not(vendor)">
<vendor>The Acme Software Foundation.</vendor>