incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1798941 - /incubator/public/trunk/content/stylesheets/project-index.xsl
Date Fri, 16 Jun 2017 15:30:38 GMT
Author: sebb
Date: Fri Jun 16 15:30:38 2017
New Revision: 1798941

URL: http://svn.apache.org/viewvc?rev=1798941&view=rev
Log:
Fix XSL to correctly prefer @link over @name

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

Modified: incubator/public/trunk/content/stylesheets/project-index.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/stylesheets/project-index.xsl?rev=1798941&r1=1798940&r2=1798941&view=diff
==============================================================================
--- incubator/public/trunk/content/stylesheets/project-index.xsl (original)
+++ incubator/public/trunk/content/stylesheets/project-index.xsl Fri Jun 16 15:30:38 2017
@@ -125,7 +125,14 @@
                         <xsl:text>
             </xsl:text>
                         <img src="../images/redarrow.gif" />
-                        <xsl:value-of select="resolution/@link | @name" />
+                        <xsl:choose>
+                            <xsl:when test="resolution/@link">
+                                <xsl:value-of select="resolution/@link" />
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <xsl:value-of select="@name" />
+                            </xsl:otherwise>
+                        </xsl:choose>
                         <xsl:text>
             </xsl:text>
                     </xsl:element>



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


Mime
View raw message