Mercurial > hg > nginx-site
comparison xslt/link.xslt @ 492:2a061496979a
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 19 Apr 2012 12:44:26 +0000 |
parents | aa00b4d476c8 |
children | eea23daa6e57 |
comparison
equal
deleted
inserted
replaced
491:5a3362234a4d | 492:2a061496979a |
---|---|
5 <img src="{@href}"> | 5 <img src="{@href}"> |
6 <xsl:apply-templates/> | 6 <xsl:apply-templates/> |
7 </img> | 7 </img> |
8 </xsl:template> | 8 </xsl:template> |
9 | 9 |
10 <xsl:template match="link[@url]"> | 10 <xsl:template match="link[@url]"> |
11 | |
11 <a href="{@url}"> | 12 <a href="{@url}"> |
12 <xsl:apply-templates/> | 13 <xsl:choose> |
14 | |
15 <xsl:when test="count(node()) != 0"> | |
16 <xsl:apply-templates/> | |
17 </xsl:when> | |
18 <xsl:otherwise> | |
19 <xsl:value-of select="@url"/> | |
20 </xsl:otherwise> | |
21 </xsl:choose> | |
22 | |
13 </a> | 23 </a> |
14 </xsl:template> | 24 </xsl:template> |
15 | 25 |
16 <xsl:template match="link[@id and not(@doc)]"> | 26 <xsl:template match="link[@id and not(@doc)]"> |
17 | 27 |