incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1180991 - /incubator/public/trunk/site-author/stylesheets/project-index.xsl
Date Mon, 10 Oct 2011 14:25:20 GMT
Author: sebb
Date: Mon Oct 10 14:25:20 2011
New Revision: 1180991

URL: http://svn.apache.org/viewvc?rev=1180991&view=rev
Log:
Try to marry up spacing a bit better

Modified:
    incubator/public/trunk/site-author/stylesheets/project-index.xsl

Modified: incubator/public/trunk/site-author/stylesheets/project-index.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/stylesheets/project-index.xsl?rev=1180991&r1=1180990&r2=1180991&view=diff
==============================================================================
--- incubator/public/trunk/site-author/stylesheets/project-index.xsl (original)
+++ incubator/public/trunk/site-author/stylesheets/project-index.xsl Mon Oct 10 14:25:20 2011
@@ -33,19 +33,47 @@
 
 </xsl:comment>
 <document>
-<properties>
-<title>Incubated Projects</title>
-<link href="http://purl.org/DC/elements/1.0/" rel="schema.DC"/>
-</properties>
+<xsl:text>
+  </xsl:text>
+  <properties>
+<xsl:text>
+    </xsl:text>
+    <title>Incubated Projects</title>
+<xsl:text>
+    </xsl:text>
+    <link href="http://purl.org/DC/elements/1.0/" rel="schema.DC"/>
+<xsl:text>
+  </xsl:text>
+  </properties>
+<xsl:text>
+  </xsl:text>
   <body>
+<xsl:text>
+    </xsl:text>
     <section>
+<xsl:text>
+      </xsl:text>
       <title>This page lists all Incubator projects by status</title>
+<xsl:text>
+      </xsl:text>
       <ul>
+<xsl:text>
+        </xsl:text>
         <li><a href="#current">Currently in incubation</a></li>
+<xsl:text>
+        </xsl:text>
         <li><a href="#graduated">Graduated from incubation</a></li>
+<xsl:text>
+        </xsl:text>
         <li><a href="#dormant">Dormant Projects</a></li>
+<xsl:text>
+        </xsl:text>
         <li><a href="#retired">Retired from incubation</a></li>
+<xsl:text>
+      </xsl:text>
       </ul>
+<xsl:text>
+    </xsl:text>
     </section>
     <xsl:call-template name="section">
         <xsl:with-param name="status" select="'current'"/>
@@ -67,6 +95,8 @@
         <xsl:with-param name="title" select="'Retired from incubation'"/>
         <xsl:with-param name="date" select="'Started/Ended'"/>
     </xsl:call-template>
+<xsl:text>
+  </xsl:text>
   </body>
 </document>
 </xsl:template>
@@ -75,10 +105,10 @@
     <xsl:param name='status'/>
     <xsl:param name='title'/>
     <xsl:param name='date'/>
-        <xsl:element name="section">
+    <xsl:element name="section">
           <xsl:attribute name="id"><xsl:value-of select='$status'/></xsl:attribute>
         <title><xsl:value-of select='$title'/></title>
-        <xsl:element name="table">
+      <xsl:element name="table">
           <xsl:attribute name="id"><xsl:value-of select='$status'/></xsl:attribute>
         <tr>
           <th>Project</th>
@@ -90,18 +120,23 @@
         <xsl:apply-templates select="podling[@status = $status]">
             <xsl:sort select='@name'/>
         </xsl:apply-templates>
-        </xsl:element>
-        </xsl:element>
+<xsl:text>
+      </xsl:text>
+      </xsl:element>
+<xsl:text>
+    </xsl:text>
+    </xsl:element>
     </xsl:template>    
 
     <xsl:template match='podling'>
-      <!-- copy original spacing (could be removed) -->
+<xsl:text>
+        </xsl:text>
         <tr>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           <td>
-<xsl:text>
-</xsl:text>
+          <xsl:text>
+            </xsl:text>
             <xsl:element name="a">
                 <xsl:attribute name="href">
                     <xsl:value-of select="concat('../projects/', @resource, '.html')"/>
@@ -109,31 +144,29 @@
                 <xsl:value-of select="@name"/>
             </xsl:element>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           </td>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           <td><xsl:value-of select="description"/></td>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           <td><xsl:value-of select="@sponsor"/></td>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           <td>
           <xsl:call-template name="mentor-list"/>
           </td>
 <xsl:text>
-</xsl:text>
+          </xsl:text>
           <!-- TODO update when creating new enddate table column -->
-          <td><xsl:value-of select="@startdate"/><xsl:if test="@enddate">
/ <xsl:value-of select="@enddate"/></xsl:if></td>
+          <td><xsl:value-of select="@startdate"/><xsl:if test="@enddate">/<xsl:value-of
select="@enddate"/></xsl:if></td>
 <xsl:text>
-</xsl:text>
+        </xsl:text>
         </tr>
 <!-- Add EOL after each entry -->
 <xsl:text>
 </xsl:text>
-<xsl:text>
-</xsl:text>
     </xsl:template>
 
   <xsl:template name="mentor-list">



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


Mime
View raw message