Mercurial > hg > nginx-site
annotate xslt/body.xslt @ 3078:7437050401cf
Renamed support page.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 09 Apr 2024 18:26:01 +0300 |
parents | 55d1bf4bf7fd |
children |
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 name="body"><xsl:param name="lang"/> |
170 | 10 |
1085 | 11 <body> |
1313 | 12 |
13 <div id="main"> | |
14 <div id="menu"> | |
15 <h1> | |
16 <a href="/"> | |
3050 | 17 <img src="/nginx.png" alt="free nginx"/> |
1085 | 18 </a> |
1313 | 19 </h1> |
20 <div> | |
21 <xsl:apply-templates select="document(concat($XML, '/menu.xml')) | |
22 /menus/menu[@lang = $lang]/item"/> | |
23 </div> | |
24 </div> | |
694 | 25 |
1313 | 26 <div id="content"> |
27 <h2> | |
28 <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> | |
29 </h2> | |
170 | 30 |
1085 | 31 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and |
32 (not(@rev) or | |
33 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)"> | |
34 <span> | |
170 | 35 |
1085 | 36 <blockquote class="note"> |
601 | 37 |
1085 | 38 <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml')) |
39 /i18n/text[@lang = $lang]/item[@id='outdated']"> | |
40 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) | |
41 /i18n/text[@lang = $lang]/item[@id='outdated']"/> | |
42 </xsl:when><xsl:otherwise> | |
43 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) | |
44 /i18n/text[@lang = 'en']/item[@id='outdated']"/> | |
45 </xsl:otherwise></xsl:choose> | |
601 | 46 |
1085 | 47 </blockquote> |
48 </span> | |
49 </xsl:if> | |
601 | 50 |
1085 | 51 <xsl:if test="@toc = 'yes' and section[@id and @name]"> |
3045 | 52 <table width="100%"><tr><td> |
1085 | 53 <xsl:for-each select="section[@id and @name]"> |
54 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> | |
55 <xsl:for-each select="section[@id and @name]"> | |
56 <xsl:text>     </xsl:text> | |
57 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> | |
58 </xsl:for-each> | |
59 <xsl:if test="@id = 'directives'"> | |
60 <xsl:for-each select="directive[@name]"> | |
61 <xsl:text>     </xsl:text> | |
62 <a href="#{@name}"> <xsl:value-of select="@name"/> </a><br/> | |
63 </xsl:for-each> | |
64 </xsl:if> | |
2028
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
65 <xsl:if test="@id = 'endpoints'"> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
66 <xsl:for-each select="para/list/tag-name[@name]"> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
67 <xsl:text>     </xsl:text> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
68 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
69 </xsl:for-each> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
70 </xsl:if> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
71 |
1085 | 72 </xsl:for-each> |
73 </td></tr></table> | |
74 </xsl:if> | |
170 | 75 |
1085 | 76 <xsl:apply-templates/> |
170 | 77 |
1085 | 78 <xsl:if test="@author or @editor or @translator"> |
79 <table width="100%"><tr><td align="right"> | |
170 | 80 |
1085 | 81 <xsl:if test="@author"> |
82 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
83 /i18n/text[@lang = $lang]/item[@id='author']"/> | |
84 <xsl:text> </xsl:text> <xsl:value-of select="@author"/> <br/> | |
85 </xsl:if> | |
170 | 86 |
1085 | 87 <xsl:if test="@editor"> |
88 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
89 /i18n/text[@lang = $lang]/item[@id='editor']"/> | |
90 <xsl:text> </xsl:text> <xsl:value-of select="@editor"/> <br/> | |
91 </xsl:if> | |
170 | 92 |
1085 | 93 <xsl:if test="@translator"> |
94 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
95 /i18n/text[@lang = $lang]/item[@id='translator']"/> | |
96 <xsl:text> </xsl:text> <xsl:value-of select="@translator"/> <br/> | |
97 </xsl:if> | |
170 | 98 |
1085 | 99 </td></tr></table> |
100 </xsl:if> | |
1313 | 101 </div> |
102 </div> | |
1085 | 103 </body> |
170 | 104 |
1085 | 105 </xsl:template> |
170 | 106 |
722 | 107 </xsl:stylesheet> |