Mercurial > hg > nginx-site
annotate xslt/body.xslt @ 2047:593dfdc524ae
Documented the 405 error (Method Disabled) in yaml.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 06 Sep 2017 15:15:38 +0300 |
parents | 113a4c7cfeb0 |
children | cccce78e2b23 |
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 <xsl:variable name="MENU_ALIGN"> |
12 <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>left</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>right</xsl:text> </xsl:otherwise></xsl:choose> | |
13 </xsl:variable> | |
694 | 14 |
1085 | 15 <xsl:variable name="INDEX_ALIGN"> |
16 <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>right</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>left</xsl:text> </xsl:otherwise></xsl:choose> | |
17 </xsl:variable> | |
694 | 18 |
1085 | 19 <body> |
1313 | 20 |
21 <div id="banner"> | |
22 <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if> | |
2033 | 23 Learn how to configure caching, load balancing, cloud deployments, and other critical NGINX features.<br/> |
24 <a href="https://www.nginx.com/resources/library/complete-nginx-cookbook/?utm_source=nginxorg&utm_medium=homepagebanner&utm_campaign=complete_cookbook">Download the Complete NGINX Cookbook</a> | |
1313 | 25 </div> |
26 | |
27 <div id="main"> | |
28 <div id="menu"> | |
29 <h1> | |
1085 | 30 <xsl:if test="@lang = 'he'"> <xsl:attribute name="align"> <xsl:text>left</xsl:text> </xsl:attribute> </xsl:if> |
1313 | 31 <a href="/"> |
32 <img src="/nginx.png" alt="nginx"/> | |
1085 | 33 </a> |
1313 | 34 </h1> |
35 <div> | |
36 <xsl:apply-templates select="document(concat($XML, '/menu.xml')) | |
37 /menus/menu[@lang = $lang]/item"/> | |
38 </div> | |
39 </div> | |
694 | 40 |
1313 | 41 <div id="content"> |
42 <h2> | |
43 <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> | |
44 </h2> | |
170 | 45 |
1085 | 46 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and |
47 (not(@rev) or | |
48 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)"> | |
49 <span> | |
170 | 50 |
1085 | 51 <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if> |
170 | 52 |
1085 | 53 <blockquote class="note"> |
601 | 54 |
1085 | 55 <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml')) |
56 /i18n/text[@lang = $lang]/item[@id='outdated']"> | |
57 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) | |
58 /i18n/text[@lang = $lang]/item[@id='outdated']"/> | |
59 </xsl:when><xsl:otherwise> | |
60 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) | |
61 /i18n/text[@lang = 'en']/item[@id='outdated']"/> | |
62 </xsl:otherwise></xsl:choose> | |
601 | 63 |
1085 | 64 </blockquote> |
65 </span> | |
66 </xsl:if> | |
601 | 67 |
1085 | 68 <xsl:if test="@toc = 'yes' and section[@id and @name]"> |
69 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> | |
70 <xsl:for-each select="section[@id and @name]"> | |
71 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> | |
72 <xsl:for-each select="section[@id and @name]"> | |
73 <xsl:text>     </xsl:text> | |
74 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> | |
75 </xsl:for-each> | |
76 <xsl:if test="@id = 'directives'"> | |
77 <xsl:for-each select="directive[@name]"> | |
78 <xsl:text>     </xsl:text> | |
79 <a href="#{@name}"> <xsl:value-of select="@name"/> </a><br/> | |
80 </xsl:for-each> | |
81 </xsl:if> | |
2028
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
82 <xsl:if test="@id = 'endpoints'"> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
83 <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
|
84 <xsl:text>     </xsl:text> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
85 <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
|
86 </xsl:for-each> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
87 </xsl:if> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2020
diff
changeset
|
88 |
1085 | 89 </xsl:for-each> |
90 </td></tr></table> | |
91 </xsl:if> | |
170 | 92 |
1085 | 93 <xsl:apply-templates/> |
170 | 94 |
1085 | 95 <xsl:if test="@author or @editor or @translator"> |
96 <table width="100%"><tr><td align="right"> | |
170 | 97 |
1085 | 98 <xsl:if test="@author"> |
99 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
100 /i18n/text[@lang = $lang]/item[@id='author']"/> | |
101 <xsl:text> </xsl:text> <xsl:value-of select="@author"/> <br/> | |
102 </xsl:if> | |
170 | 103 |
1085 | 104 <xsl:if test="@editor"> |
105 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
106 /i18n/text[@lang = $lang]/item[@id='editor']"/> | |
107 <xsl:text> </xsl:text> <xsl:value-of select="@editor"/> <br/> | |
108 </xsl:if> | |
170 | 109 |
1085 | 110 <xsl:if test="@translator"> |
111 <xsl:value-of select="document(concat($XML, '/i18n.xml')) | |
112 /i18n/text[@lang = $lang]/item[@id='translator']"/> | |
113 <xsl:text> </xsl:text> <xsl:value-of select="@translator"/> <br/> | |
114 </xsl:if> | |
170 | 115 |
1085 | 116 </td></tr></table> |
117 </xsl:if> | |
1313 | 118 </div> |
119 </div> | |
1085 | 120 </body> |
170 | 121 |
1085 | 122 </xsl:template> |
170 | 123 |
722 | 124 </xsl:stylesheet> |