comparison xslt/article.xslt @ 1085:c454373427ef

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 28 Feb 2014 20:12:47 +0400
parents 6c3349baa1d3
children fdf1464e1977
comparison
equal deleted inserted replaced
1084:be1d72ba7e5f 1085:c454373427ef
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) Igor Sysoev
4 Copyright (C) Nginx, Inc.
5 -->
6
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 8
4 <xsl:output indent="no" version="4.0" encoding="utf-8" method="html"/> 9 <xsl:output method="html" version="4.0" indent="no" encoding="utf-8"/>
5 10
6 <xsl:strip-space elements="article section"/> 11 <xsl:strip-space elements="article section"/>
7 12
8 <xsl:param select="'../xml'" name="XML"/> 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"/>
9 21
10 <xsl:param name="YEAR"/> 22 <xsl:variable select="/article/@link | /module/@link" name="LINK"/>
23 <xsl:variable select="/article/@lang | /module/@lang" name="LANG"/>
11 24
12 <xsl:param name="ORIGIN"/> 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"/>
30 <xsl:include href="ga.xslt"/>
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"/>
13 38
14 <xsl:param name="TRANS"/>
15 39
16 <xsl:variable select="/article/@link | /module/@link" name="LINK"/> 40 <xsl:template match="/article | /module">
41 <html>
17 42
18 <xsl:variable select="/article/@lang | /module/@lang" name="LANG"/> 43 <xsl:if test="@lang = 'he'"> <xsl:attribute name="dir"> <xsl:text>rtl</xsl:text> </xsl:attribute> </xsl:if>
19 44
20 <xsl:include href="dirname.xslt"/> 45 <xsl:if test="@lang = 'cn'"> <xsl:attribute name="lang"> <xsl:text>zh-CN</xsl:text> </xsl:attribute> </xsl:if>
21 46
22 <xsl:include href="link.xslt"/> 47 <head>
23 48
24 <xsl:include href="style.xslt"/> 49 <title> <xsl:value-of select="@name"/> </title>
25 50
26 <xsl:include href="body.xslt"/> 51 <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="ga"/></head>
27 52
28 <xsl:include href="menu.xslt"/> 53 <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
54 </xsl:template>
29 55
30 <xsl:include href="ga.xslt"/>
31
32 <xsl:include href="content.xslt"/>
33
34 <xsl:include href="books.xslt"/>
35
36 <xsl:include href="directive.xslt"/>
37
38 <xsl:include href="donate.xslt"/>
39
40 <xsl:include href="download.xslt"/>
41
42 <xsl:include href="security.xslt"/>
43
44 <xsl:include href="versions.xslt"/>
45
46 <xsl:template match="/article | /module">
47
48 <html>
49
50 <xsl:if test="@lang = 'he'">
51 <xsl:attribute name="dir">
52 <xsl:text>rtl</xsl:text>
53 </xsl:attribute>
54 </xsl:if>
55
56 <xsl:if test="@lang = 'cn'">
57 <xsl:attribute name="lang">
58 <xsl:text>zh-CN</xsl:text>
59 </xsl:attribute>
60 </xsl:if>
61
62 <head>
63
64 <title>
65 <xsl:value-of select="@name"/>
66 </title>
67
68 <xsl:call-template name="style">
69 <xsl:with-param select="@lang" name="lang"/>
70 </xsl:call-template>
71
72 <xsl:call-template name="ga"/>
73
74 </head>
75
76 <xsl:call-template name="body">
77 <xsl:with-param select="@lang" name="lang"/>
78 </xsl:call-template>
79
80 </html>
81 </xsl:template>
82 56
83 </xsl:stylesheet> 57 </xsl:stylesheet>