jakarta-site-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r154224 - jakarta/site/xdocs/downloads/downloads-cgi.xsl
Date Fri, 18 Feb 2005 01:16:00 GMT
Author: bayard
Date: Thu Feb 17 17:15:59 2005
New Revision: 154224

URL: http://svn.apache.org/viewcvs?view=rev&rev=154224
Log:
now generates cgi page for all html pages that need the mirroring logic

Modified:
    jakarta/site/xdocs/downloads/downloads-cgi.xsl

Modified: jakarta/site/xdocs/downloads/downloads-cgi.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/downloads-cgi.xsl?view=diff&r1=154223&r2=154224
==============================================================================
--- jakarta/site/xdocs/downloads/downloads-cgi.xsl (original)
+++ jakarta/site/xdocs/downloads/downloads-cgi.xsl Thu Feb 17 17:15:59 2005
@@ -4,16 +4,26 @@
     xmlns:redirect="http://xml.apache.org/xalan/redirect"
         extension-element-prefixes="redirect">
 
-  <xsl:template match="project">
+  <xsl:template match="project" name="project">
     <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
-    <redirect:write file="downloads_{$id}.cgi">
+
+    <xsl:if test="downloads">
+      <xsl:if test="downloads/@mirrored != 'false'">
+        <redirect:write file="downloads_{$id}.cgi">
 #!/bin/sh
 # Wrapper script around mirrors.cgi script
 # (we must change to that directory in order for python to pick up the
 #  python includes correctly)
 cd /www/www.apache.org/dyn/mirrors
 /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
-    </redirect:write>
+        </redirect:write>
+      </xsl:if>
+    </xsl:if>
+
+    <xsl:for-each select="project">
+      <xsl:call-template name="project"/>
+    </xsl:for-each>
+
   </xsl:template>
 
 </xsl:stylesheet>



---------------------------------------------------------------------
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