Mercurial > hg > nginx-site
comparison xslt/article.xslt @ 170:cd2698ea00ab
Added generated XSLTs.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 02 Nov 2011 19:31:11 +0000 |
parents | |
children | 2681cad309d2 |
comparison
equal
deleted
inserted
replaced
169:b7b160e4e046 | 170:cd2698ea00ab |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
3 | |
4 <xsl:output indent="no" version="4.0" encoding="utf-8" method="html"/> | |
5 | |
6 <xsl:strip-space elements="*"/> | |
7 | |
8 <xsl:param select="'../xml'" name="XML"/> | |
9 | |
10 <xsl:param name="YEAR"/> | |
11 | |
12 <xsl:variable select="/article/@link | /module/@link" name="LINK"/> | |
13 | |
14 <xsl:variable select="/article/@lang | /module/@lang" name="LANG"/> | |
15 | |
16 <xsl:include href="dirname.xslt"/> | |
17 | |
18 <xsl:include href="link.xslt"/> | |
19 | |
20 <xsl:include href="style.xslt"/> | |
21 | |
22 <xsl:include href="body.xslt"/> | |
23 | |
24 <xsl:include href="menu.xslt"/> | |
25 | |
26 <xsl:include href="donate.xslt"/> | |
27 | |
28 <xsl:include href="directive.xslt"/> | |
29 | |
30 <xsl:include href="content.xslt"/> | |
31 | |
32 <xsl:include href="versions.xslt"/> | |
33 | |
34 <xsl:template match="/article | /module"> | |
35 | |
36 <html> | |
37 | |
38 <head> | |
39 | |
40 <title> | |
41 <xsl:value-of select="@name"/> | |
42 </title> | |
43 | |
44 <xsl:call-template name="style"> | |
45 <xsl:with-param select="@lang" name="lang"/> | |
46 </xsl:call-template> | |
47 | |
48 </head> | |
49 | |
50 <xsl:call-template name="body"> | |
51 <xsl:with-param select="@lang" name="lang"/> | |
52 </xsl:call-template> | |
53 | |
54 </html> | |
55 </xsl:template> | |
56 | |
57 <xsl:template match="/article[@lang='he'] | /module[@lang='he']"> | |
58 | |
59 <html dir="rtl"> | |
60 | |
61 <head> | |
62 | |
63 <title> | |
64 <xsl:value-of select="@name"/> | |
65 </title> | |
66 | |
67 <xsl:call-template name="style"> | |
68 <xsl:with-param select="@lang" name="lang"/> | |
69 </xsl:call-template> | |
70 | |
71 </head> | |
72 | |
73 <xsl:call-template name="body"> | |
74 <xsl:with-param select="@lang" name="lang"/> | |
75 </xsl:call-template> | |
76 | |
77 </html> | |
78 </xsl:template> | |
79 | |
80 </xsl:stylesheet> |