jakarta-site-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r151665 - jakarta/site/xdocs/downloads/download-pages.xsl jakarta/site/xdocs/downloads/downloads.xml
Date Mon, 07 Feb 2005 02:39:37 GMT
Author: bayard
Date: Sun Feb  6 18:39:35 2005
New Revision: 151665

URL: http://svn.apache.org/viewcvs?view=rev&rev=151665
Log:
concept of links added, and implemented in the various places in the xml. The xsl also checks
if a download is mirrored or not, if not mirrored then it uses the primary as the base of
the download url instead of the [preferred] tag

Modified:
    jakarta/site/xdocs/downloads/download-pages.xsl
    jakarta/site/xdocs/downloads/downloads.xml

Modified: jakarta/site/xdocs/downloads/download-pages.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/download-pages.xsl?view=diff&r1=151664&r2=151665
==============================================================================
--- jakarta/site/xdocs/downloads/download-pages.xsl (original)
+++ jakarta/site/xdocs/downloads/download-pages.xsl Sun Feb  6 18:39:35 2005
@@ -93,6 +93,9 @@
       <xsl:if test="@keys">
         <p><span class="keys"><a href="{$primary}{$keys}">KEYS</a></span></p>
       </xsl:if>
+      <xsl:apply-templates select="link">
+        <xsl:with-param name="primary" select="@primary"/>
+      </xsl:apply-templates>
       <xsl:apply-templates select="group">
         <xsl:with-param name="primary" select="@primary"/>
       </xsl:apply-templates>
@@ -109,6 +112,9 @@
     <xsl:param name="primary"/>
     <li class="group">
       <span class="label"><xsl:value-of select="@label"/></span>
+      <xsl:apply-templates select="link">
+        <xsl:with-param name="primary" select="$primary"/>
+      </xsl:apply-templates>
       <ul>
       <xsl:apply-templates select="group">
         <xsl:with-param name="primary" select="@primary"/>
@@ -120,11 +126,22 @@
     </li>
   </xsl:template>
 
+  <xsl:template match="link">
+    <xsl:param name="primary"/>
+    <xsl:variable name="href"><xsl:value-of select="@href"/></xsl:variable>
+    <a href="{$href}"><xsl:value-of select="@name"/></a> 
+  </xsl:template>
+
   <xsl:template match="download">
     <xsl:param name="primary"/>
     <xsl:variable name="href"><xsl:value-of select="@href"/></xsl:variable>
     <li class="download">
-      <a href="[preferred]/{$href}"><xsl:value-of select="@name"/></a>

+      <xsl:if test="ancestor::downloads/@mirrored = 'true'">
+          <a href="[preferred]/{$href}"><xsl:value-of select="@name"/></a>

+      </xsl:if>
+      <xsl:if test="not(ancestor::downloads/@mirrored = 'true')">
+          <a href="{$primary}{$href}"><xsl:value-of select="@name"/></a>

+      </xsl:if>
       <xsl:if test="not(@md5 and @md5 = 'false')">
         [<a href="{$primary}{$href}.md5">md5</a>] 
       </xsl:if>

Modified: jakarta/site/xdocs/downloads/downloads.xml
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/downloads.xml?view=diff&r1=151664&r2=151665
==============================================================================
--- jakarta/site/xdocs/downloads/downloads.xml (original)
+++ jakarta/site/xdocs/downloads/downloads.xml Sun Feb  6 18:39:35 2005
@@ -2,7 +2,6 @@
 <project-downloads title="Jakarta Downloads">
 
     <!-- TODO: <downloads dir="bcel" would add a piece of text saying that the bcel
downloads are available from... -->
-    <!-- TODO: <link> instead of <download> to imply a link to another page
-->
 
     <project id="bcel" name="BCEL" href="http://jakarta.apache.org/bcel/">
       <downloads keys="jakarta/bcel/KEYS" primary="http://www.apache.org/dist/" mirrored="true"
archive="http://archive.apache.org/dist/jakarta/bcel/">
@@ -24,15 +23,14 @@
       </downloads>
     </project>
 
-    <!-- TODO: cactus has no pgp's, need to turn this off somehow -->
     <project id="cactus" name="Cactus" href="http://jakarta.apache.org/cactus/">
-      <downloads keys="jakarta/cactus/KEYS" primary="http://www.apache.org/dist/" mirrored="true"
archive="http://archive.apache.org/dist/jakarta/cactus/">
+      <downloads keys="jakarta/cactus/KEYS" primary="http://www.apache.org/dist/" mirrored="true"
archive="http://archive.apache.org/dist/jakarta/cactus/" pgp-text="false">
           <group label="Binary">
-              <download name="1.7 zip for J2EE API 1.2" href="jakarta/cactus/binaries/jakarta-cactus-12-1.7.zip"/>
-              <download name="1.7 zip for J2EE API 1.3" href="jakarta/cactus/binaries/jakarta-cactus-13-1.7.zip"/>
+              <download name="1.7 zip for J2EE API 1.2" href="jakarta/cactus/binaries/jakarta-cactus-12-1.7.zip"
pgp="false"/>
+              <download name="1.7 zip for J2EE API 1.3" href="jakarta/cactus/binaries/jakarta-cactus-13-1.7.zip"
pgp="false"/>
           </group>
           <group label="Source">
-              <download name="1.7 zip" href="jakarta/cactus/source/jakarta-cactus-src-1.7.zip"/>
+              <download name="1.7 zip" href="jakarta/cactus/source/jakarta-cactus-src-1.7.zip"
pgp="false"/>
           </group>
       </downloads>
     </project>
@@ -121,6 +119,7 @@
       <project id="commons-collections" name="Commons Collections" href="http://jakarta.apache.org/commons/collections/">
         <downloads keys="jakarta/commons/collections/KEYS" primary="http://www.apache.org/dist/"
mirrored="true" archive="http://archive.apache.org/dist/jakarta/commons/collections/">
             <group label="3.0">
+              <link name="Release notes" href="http://www.apache.org/dist/jakarta/commons/collections/RELEASE-NOTES.html"/>
               <group label="Binary">
                   <download name="3.0.tar.gz" href="jakarta/commons/collections/binaries/commons-collections-3.0.tar.gz"/>
                   <download name="3.0.zip" href="jakarta/commons/collections/binaries/commons-collections-3.0.zip"/>
@@ -131,6 +130,7 @@
               </group>
             </group>
             <group label="2.1.1">
+              <link name="Release notes" href="http://www.apache.org/dist/jakarta/commons/collections/RELEASE-NOTES-2.1.1.html"/>
               <group label="Binary">
                   <download name="2.1.1.tar.gz" href="jakarta/commons/collections/binaries/commons-collections-2.1.1.tar.gz"/>
                   <download name="2.1.1.zip" href="jakarta/commons/collections/binaries/commons-collections-2.1.1.zip"/>
@@ -143,9 +143,9 @@
         </downloads>
       </project>
 
-      <!-- Configuration has a link to the changes-report -->
       <project id="commons-configuration" name="Commons Configuration" href="http://jakarta.apache.org/commons/configuration/">
         <downloads keys="jakarta/commons/configuration/KEYS" primary="http://www.apache.org/dist/"
mirrored="true" archive="http://archive.apache.org/dist/jakarta/commons/configuration/">
+            <link name="Changes Report" href="http://jakarta.apache.org/commons/configuration/changes-report.html"/>
             <group label="Binary">
                 <download name="1.0.jar" href="jakarta/commons/configuration/binaries/commons-commons-configuration-1.0.jar"/>
                 <download name="1.0.tar.gz" href="jakarta/commons/configuration/binaries/commons-commons-configuration-1.0.tar.gz"/>
@@ -374,9 +374,9 @@
         </downloads>
       </project>
 
-      <!-- Math has a link to the changes report -->
       <project id="commons-math" name="Commons Math" href="http://jakarta.apache.org/commons/math/">
         <downloads keys="jakarta/commons/math/KEYS" primary="http://www.apache.org/dist/"
mirrored="true" archive="http://archive.apache.org/dist/jakarta/commons/math/">
+            <link name="Changes Report" href="http://jakarta.apache.org/commons/math/changes-report.html"/>
             <group label="Binary">
                 <download name="1.0.tar.gz" href="jakarta/commons/math/binaries/commons-math-1.0.tar.gz"/>
                 <download name="1.0.zip" href="jakarta/commons/math/binaries/commons-math-1.0.zip"/>
@@ -652,7 +652,7 @@
       <downloads keys="jakarta/tomcat-5/KEYS" primary="http://www.apache.org/dist/" mirrored="true"
archive="http://archive.apache.org/dist/jakarta/tomcat-5/">
           <group label="5.5.7-alpha">
             <group label="Binary">
-                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.5.7/README.html"/>
+                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.5.7/README.html"
pgp="false" md5="false"/>
                 <download name="5.5.7-alpha exe" href="jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7.exe"/>
                 <download name="5.5.7-alpha tar.gz" href="jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7.tar.gz"/>
                 <download name="5.5.7-alpha zip" href="jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7.zip"/>
@@ -672,7 +672,7 @@
           </group>
           <group label="5.5.4">
             <group label="Binary">
-                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.5.4/README.html"/>
+                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.5.4/README.html"
pgp="false" md5="false"/>
                 <download name="5.5.4 exe" href="jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.exe"/>
                 <download name="5.5.4 tar.gz" href="jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.tar.gz"/>
                 <download name="5.5.4 zip" href="jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.zip"/>
@@ -692,7 +692,7 @@
           </group>
           <group label="5.0.30-beta">
             <group label="Binary">
-                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.0.30/README.html"/>
+                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.0.30/README.html"
pgp="false" md5="false"/>
                 <download name="5.0.30-beta exe" href="jakarta/tomcat-5/v5.0.30/bin/jakarta-tomcat-5.0.30.exe"/>
                 <download name="5.0.30-beta tar.gz" href="jakarta/tomcat-5/v5.0.30/bin/jakarta-tomcat-5.0.30.tar.gz"/>
                 <download name="5.0.30-beta zip" href="jakarta/tomcat-5/v5.0.30/bin/jakarta-tomcat-5.0.30.zip"/>
@@ -709,7 +709,7 @@
           </group>
           <group label="5.0.28">
             <group label="Binary">
-                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.0.28/README.html"/>
+                <download name="README (contains packaging information)" href="jakarta/tomcat-5/v5.0.28/README.html"
pgp="false" md5="false"/>
                 <download name="5.0.28 exe" href="jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.exe"/>
                 <download name="5.0.28 tar.gz" href="jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz"/>
                 <download name="5.0.28 zip" href="jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.zip"/>



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


Mime
View raw message