changeset 492:2a061496979a

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 19 Apr 2012 12:44:26 +0000
parents 5a3362234a4d
children 5bb373c6e502
files xslt/link.xslt
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/link.xslt	Thu Apr 19 12:44:09 2012 +0000
+++ b/xslt/link.xslt	Thu Apr 19 12:44:26 2012 +0000
@@ -7,9 +7,19 @@
       </img>
    </xsl:template>
 
-   <xsl:template match="link[@url]"> 
+   <xsl:template match="link[@url]">
+
       <a href="{@url}">
-         <xsl:apply-templates/>
+         <xsl:choose>
+
+            <xsl:when test="count(node()) != 0">
+               <xsl:apply-templates/>
+            </xsl:when>
+            <xsl:otherwise>
+               <xsl:value-of select="@url"/>
+            </xsl:otherwise>
+         </xsl:choose>
+
       </a>
    </xsl:template>