Mercurial > hg > nginx-site
annotate xslt/versions.xslt @ 1098:bc2a379c4cb6
nginx-1.5.12, nginx-1.4.7
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 18 Mar 2014 20:21:27 +0400 |
parents | 75a88c406dfc |
children | 9abeeeb61d0e |
rev | line source |
---|---|
170 | 1 <?xml version="1.0" encoding="utf-8"?> |
1085 | 2 <!-- |
3 Copyright (C) Igor Sysoev | |
4 Copyright (C) Nginx, Inc. | |
5 --> | |
6 | |
170 | 7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
8 | |
1085 | 9 <xsl:template match="mainline_version"> |
10 <xsl:apply-templates select="document(concat($XML, '/versions.xml')) | |
11 /versions/download[@tag='mainline'][1]/item[1]/@ver"/> | |
12 </xsl:template> | |
170 | 13 |
1085 | 14 <xsl:template match="stable_version"> |
15 <xsl:apply-templates select="document(concat($XML, '/versions.xml')) | |
16 /versions/download[@tag='stable'][1]/item[1]/@ver"/> | |
17 </xsl:template> | |
170 | 18 |
1085 | 19 <xsl:template match="commercial_version"> |
1087 | 20 <a href="http://nginx.com/products/"> |
21 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
22 /i18n/text[@lang = $LANG]/item[@id='commercial_subscription']"/> | |
23 </a> | |
1085 | 24 </xsl:template> |
953
aded7086e84f
Commercial version documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
923
diff
changeset
|
25 |
170 | 26 </xsl:stylesheet> |