Mercurial > hg > nginx-site
annotate xslt/article.xslt @ 2947:39a5ac34d794
nginx-1.23.4
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 28 Mar 2023 18:06:29 +0300 |
parents | c704a743f269 |
children | 91a2ee74ca72 |
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="content.xslt"/> |
32 <xsl:include href="books.xslt"/> | |
33 <xsl:include href="directive.xslt"/> | |
34 <xsl:include href="donate.xslt"/> | |
35 <xsl:include href="download.xslt"/> | |
36 <xsl:include href="security.xslt"/> | |
37 <xsl:include href="versions.xslt"/> | |
170 | 38 |
803 | 39 |
1085 | 40 <xsl:template match="/article | /module"> |
41 <html> | |
170 | 42 |
1085 | 43 <xsl:if test="@lang = 'he'"> <xsl:attribute name="dir"> <xsl:text>rtl</xsl:text> </xsl:attribute> </xsl:if> |
170 | 44 |
1085 | 45 <xsl:if test="@lang = 'cn'"> <xsl:attribute name="lang"> <xsl:text>zh-CN</xsl:text> </xsl:attribute> </xsl:if> |
170 | 46 |
1085 | 47 <head> |
544 | 48 |
1085 | 49 <title> <xsl:value-of select="@name"/> </title> |
170 | 50 |
2875
c704a743f269
Removed google analytics.
Sergey Budnevitch <sb@waeme.net>
parents:
2846
diff
changeset
|
51 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/></head> |
170 | 52 |
1085 | 53 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html> |
54 </xsl:template> | |
55 | |
170 | 56 |
707 | 57 </xsl:stylesheet> |