comparison xslt/body.xslt @ 3045:91a2ee74ca72

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 Feb 2024 20:05:53 +0300
parents fdf1464e1977
children 55d1bf4bf7fd
comparison
equal deleted inserted replaced
3044:6c78190bc1cb 3045:91a2ee74ca72
6 6
7 <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">
8 8
9 <xsl:template name="body"><xsl:param name="lang"/> 9 <xsl:template name="body"><xsl:param name="lang"/>
10 10
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>
14
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>
18
19 <body> 11 <body>
20
21 <div id="banner">
22 </div>
23 12
24 <div id="main"> 13 <div id="main">
25 <div id="menu"> 14 <div id="menu">
26 <h1> 15 <h1>
27 <xsl:if test="@lang = 'he'"> <xsl:attribute name="align"> <xsl:text>left</xsl:text> </xsl:attribute> </xsl:if>
28 <a href="/"> 16 <a href="/">
29 <img src="/nginx.png" alt="nginx"/> 17 <img src="/nginx.png" alt="nginx"/>
30 </a> 18 </a>
31 </h1> 19 </h1>
32 <div> 20 <div>
43 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and 31 <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and
44 (not(@rev) or 32 (not(@rev) or
45 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)"> 33 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
46 <span> 34 <span>
47 35
48 <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
49
50 <blockquote class="note"> 36 <blockquote class="note">
51 37
52 <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml')) 38 <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml'))
53 /i18n/text[@lang = $lang]/item[@id='outdated']"> 39 /i18n/text[@lang = $lang]/item[@id='outdated']">
54 <xsl:apply-templates select="document(concat($XML, '/i18n.xml')) 40 <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))
61 </blockquote> 47 </blockquote>
62 </span> 48 </span>
63 </xsl:if> 49 </xsl:if>
64 50
65 <xsl:if test="@toc = 'yes' and section[@id and @name]"> 51 <xsl:if test="@toc = 'yes' and section[@id and @name]">
66 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> 52 <table width="100%"><tr><td>
67 <xsl:for-each select="section[@id and @name]"> 53 <xsl:for-each select="section[@id and @name]">
68 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> 54 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
69 <xsl:for-each select="section[@id and @name]"> 55 <xsl:for-each select="section[@id and @name]">
70 <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text> 56 <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text>
71 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/> 57 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>