incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1356600 - /incubator/public/trunk/report-next-month.xsl
Date Tue, 03 Jul 2012 08:04:34 GMT
Author: ilgrosso
Date: Tue Jul  3 08:04:33 2012
New Revision: 1356600

URL: http://svn.apache.org/viewvc?rev=1356600&view=rev
Log:
Changing heading from '...in ' to '..for '

Modified:
    incubator/public/trunk/report-next-month.xsl

Modified: incubator/public/trunk/report-next-month.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report-next-month.xsl?rev=1356600&r1=1356599&r2=1356600&view=diff
==============================================================================
--- incubator/public/trunk/report-next-month.xsl (original)
+++ incubator/public/trunk/report-next-month.xsl Tue Jul  3 08:04:33 2012
@@ -28,7 +28,6 @@
 
 <xsl:template match="/">
   <xsl:variable name="thisMonth" select="datetime:monthName()"/>
-  <xsl:variable name="thisYear" select="datetime:year()"/>
   <xsl:variable name="nextMonthGroup">
     <xsl:choose>
       <xsl:when test="$thisMonth = 'January' or $thisMonth = 'April' or $thisMonth = 'July'
or $thisMonth = 'October'">2</xsl:when>
@@ -36,10 +35,26 @@
       <xsl:when test="$thisMonth = 'March' or $thisMonth = 'June' or $thisMonth = 'September'
or $thisMonth = 'December'">1</xsl:when>
     </xsl:choose>
   </xsl:variable>
+  <xsl:variable name="nextMonth">
+    <xsl:choose>
+      <xsl:when test="$thisMonth = 'January'">February</xsl:when>
+      <xsl:when test="$thisMonth = 'February'">March</xsl:when>
+      <xsl:when test="$thisMonth = 'March'">April</xsl:when>
+      <xsl:when test="$thisMonth = 'April'">May</xsl:when>
+      <xsl:when test="$thisMonth = 'May'">June</xsl:when>
+      <xsl:when test="$thisMonth = 'June'">July</xsl:when>
+      <xsl:when test="$thisMonth = 'July'">August</xsl:when>
+      <xsl:when test="$thisMonth = 'August'">September</xsl:when>
+      <xsl:when test="$thisMonth = 'September'">October</xsl:when>
+      <xsl:when test="$thisMonth = 'October'">November</xsl:when>
+      <xsl:when test="$thisMonth = 'November'">December</xsl:when>
+      <xsl:when test="$thisMonth = 'December'">January</xsl:when>
+    </xsl:choose>
+  </xsl:variable>
 
   <html>
     <head>
-      <title>Apache Incubator Podlings needing to prepare report in <xsl:value-of
select="$thisMonth"/><xsl:text> </xsl:text><xsl:value-of select="$thisYear"/></title>
+      <title>Apache Incubator Podlings needing to prepare report for <xsl:value-of
select="$nextMonth"/></title>
       <link rel="stylesheet" href="http://incubator.apache.org/style/bootstrap-1-3-0-min.css"
type="text/css" />
       <link rel="stylesheet" href="http://incubator.apache.org/style/style.css" type="text/css"
/>
       
@@ -103,7 +118,7 @@
       </style>
     </head>
     <body>
-      <h1><a href="http://incubator.apache.org">Apache Incubator</a> Podlings
needing to prepare report in <xsl:value-of select="$thisMonth"/>&#160;<xsl:value-of
select="$thisYear"/></h1>
+      <h1><a href="http://incubator.apache.org">Apache Incubator</a> Podlings
needing to prepare report for <xsl:value-of select="$nextMonth"/></h1>
       <div style="text-align:right;"><i>Generated on <xsl:value-of select="datetime:date-time()"/></i></div>
       <nav>
 	<ul>



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message