Mercurial > hg > nginx-site
annotate xslt/article.xslt @ 2858:c2ac5ac83195
Added info about the Unit 1.27.0 release.
author | Artem Konev <artem.konev@nginx.com> |
---|---|
date | Thu, 02 Jun 2022 16:02:20 +0100 |
parents | fdf1464e1977 |
children | c704a743f269 |
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:output method="html" version="4.0" indent="no" encoding="utf-8"/> |
170 | 10 |
1085 | 11 <xsl:strip-space elements="article section"/> |
170 | 12 |
1085 | 13 <!-- |
14 .. a current directory of a XSLT script is where the script is stored, | |
15 .. but not where XSLT processor has been started to run the script | |
16 --> | |
17 <xsl:param select="'../xml'" name="XML"/> | |
18 <xsl:param name="YEAR"/> | |
19 <xsl:param name="ORIGIN"/> | |
20 <xsl:param name="TRANS"/> | |
722 | 21 |
1085 | 22 <xsl:variable select="/article/@link | /module/@link" name="LINK"/> |
23 <xsl:variable select="/article/@lang | /module/@lang" name="LANG"/> | |
722 | 24 |
1085 | 25 <xsl:include href="dirname.xslt"/> |
26 <xsl:include href="link.xslt"/> | |
27 <xsl:include href="style.xslt"/> | |
28 <xsl:include href="body.xslt"/> | |
29 <xsl:include href="menu.xslt"/> | |
2846
fdf1464e1977
Moved banner to the external file to make partial rollout possible.
Sergey Budnevitch <sb@waeme.net>
parents:
1085
diff
changeset
|
30 <xsl:include href="banner.xslt"/> |
1085 | 31 <xsl:include href="ga.xslt"/> |
32 <xsl:include href="content.xslt"/> | |
33 <xsl:include href="books.xslt"/> | |
34 <xsl:include href="directive.xslt"/> | |
35 <xsl:include href="donate.xslt"/> | |
36 <xsl:include href="download.xslt"/> | |
37 <xsl:include href="security.xslt"/> | |
38 <xsl:include href="versions.xslt"/> | |
170 | 39 |
803 | 40 |
1085 | 41 <xsl:template match="/article | /module"> |
42 <html> | |
170 | 43 |
1085 | 44 <xsl:if test="@lang = 'he'"> <xsl:attribute name="dir"> <xsl:text>rtl</xsl:text> </xsl:attribute> </xsl:if> |
170 | 45 |
1085 | 46 <xsl:if test="@lang = 'cn'"> <xsl:attribute name="lang"> <xsl:text>zh-CN</xsl:text> </xsl:attribute> </xsl:if> |
170 | 47 |
1085 | 48 <head> |
544 | 49 |
1085 | 50 <title> <xsl:value-of select="@name"/> </title> |
170 | 51 |
2846
fdf1464e1977
Moved banner to the external file to make partial rollout possible.
Sergey Budnevitch <sb@waeme.net>
parents:
1085
diff
changeset
|
52 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/><xsl:call-template name="ga"/></head> |
170 | 53 |
1085 | 54 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html> |
55 </xsl:template> | |
56 | |
170 | 57 |
707 | 58 </xsl:stylesheet> |