Mercurial > hg > nginx-site
comparison xslt/download.xslt @ 728:d900707102c6
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Sat, 13 Oct 2012 18:16:23 +0000 |
parents | 91dd4a7fadbb |
children | c454373427ef |
comparison
equal
deleted
inserted
replaced
727:b2b10d564893 | 728:d900707102c6 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
3 | 3 |
4 <xsl:template match="download"> | 4 <xsl:template match="download"> |
5 <table width="100%"> | 5 |
6 <xsl:apply-templates select="item"/> | 6 <xsl:variable select="@last" name="last"/> |
7 </table> | 7 |
8 <xsl:for-each select="document(concat($XML, '/versions.xml')) /versions/download[@tag = current()/@tag]"> | |
9 | |
10 <table width="100%"> | |
11 | |
12 <xsl:apply-templates select="item[position() <= $last]"/> | |
13 | |
14 </table> | |
15 </xsl:for-each> | |
8 </xsl:template> | 16 </xsl:template> |
9 | 17 |
10 <xsl:template match="download/item[position() <= ../@last]"> | 18 <xsl:template match="download/item"> |
11 | 19 |
12 <tr> | 20 <tr> |
13 | 21 |
14 <td width="20%"> | 22 <td width="20%"> |
15 | 23 |
16 <xsl:if test="position() = 1"> | 24 <xsl:if test="position() = 1"> |
17 | 25 |
18 <a> | 26 <a> |
19 | 27 |
20 <xsl:attribute name="href"> | 28 <xsl:attribute name="href"> |
29 | |
21 <xsl:text>/</xsl:text> | 30 <xsl:text>/</xsl:text> |
22 <xsl:value-of select="/article/@lang"/> | 31 <xsl:value-of select="$LANG"/> |
23 <xsl:text>/</xsl:text> | 32 <xsl:text>/CHANGES</xsl:text> |
24 <xsl:value-of select="../@changes"/> | 33 |
34 <xsl:if test="$LANG != 'en'"> | |
35 <xsl:text>.</xsl:text> | |
36 <xsl:value-of select="$LANG"/> | |
37 </xsl:if> | |
38 | |
39 <xsl:if test="../@changes != ''"> | |
40 <xsl:text>-</xsl:text> | |
41 <xsl:value-of select="../@changes"/> | |
42 </xsl:if> | |
25 </xsl:attribute> | 43 </xsl:attribute> |
26 | 44 |
27 <xsl:value-of select="../@changes"/> | 45 <xsl:text>CHANGES</xsl:text> |
46 | |
47 <xsl:if test="$LANG != 'en'"> | |
48 <xsl:text>.</xsl:text> | |
49 <xsl:value-of select="$LANG"/> | |
50 </xsl:if> | |
51 | |
52 <xsl:if test="../@changes != ''"> | |
53 <xsl:text>-</xsl:text> | |
54 <xsl:value-of select="../@changes"/> | |
55 </xsl:if> | |
28 | 56 |
29 </a> | 57 </a> |
30 </xsl:if> | 58 </xsl:if> |
31 | 59 |
32 </td> | 60 </td> |
107 </td> | 135 </td> |
108 | 136 |
109 </tr> | 137 </tr> |
110 </xsl:template> | 138 </xsl:template> |
111 | 139 |
112 <xsl:template match="download/item[position() > ../@last]"/> | |
113 | |
114 </xsl:stylesheet> | 140 </xsl:stylesheet> |