diff xslt/body.xslt @ 1085:c454373427ef

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 28 Feb 2014 20:12:47 +0400
parents 441a71c4e5ef
children d2a2fce38adf
line wrap: on
line diff
--- a/xslt/body.xslt	Fri Feb 21 20:15:37 2014 +0400
+++ b/xslt/body.xslt	Fri Feb 28 20:12:47 2014 +0400
@@ -1,248 +1,139 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright (C) Igor Sysoev
+  Copyright (C) Nginx, Inc.
+  -->
+
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-   <xsl:template name="body">
-      <xsl:param name="lang"/>
-
-      <xsl:variable name="MENU_ALIGN">
-         <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>
-      </xsl:variable>
-
-      <xsl:variable name="INDEX_ALIGN">
-         <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>
-      </xsl:variable>
-
-      <body>
+<xsl:template name="body"><xsl:param name="lang"/>
 
-         <table width="100%">
-
-            <tr>
-
-               <td width="70%">
-
-                  <div id="banner">
-
-                     <xsl:if test="@lang = 'he'">
-                        <xsl:attribute name="class">
-                           <xsl:text>ltr</xsl:text>
-                        </xsl:attribute>
-                     </xsl:if>
-
-                     <center>
+    <xsl:variable name="MENU_ALIGN">
+        <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>
+    </xsl:variable>
 
-                        <table>
-
-                           <tr>
-
-                              <td align="center">
-
-                                 <strong>Looking to make your web app faster? Look no further!</strong>
-
-                              </td>
-
-                           </tr>
-
-                           <tr>
-
-                              <td align="center">
+    <xsl:variable name="INDEX_ALIGN">
+        <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>
+    </xsl:variable>
 
-                                 <i>NGINX Plus for HTTP load balancing, caching and SSL offload —
-
-                                    <a href="http://nginx.com/products/">Free 30-Day Trial</a>.
-                                 </i>
-
-                              </td>
-
-                           </tr>
-
-                        </table>
-
-                     </center>
-
-                  </div>
-
-               </td>
-
-               <td align="right">
-
-                  <xsl:if test="@lang = 'he'">
-                     <xsl:attribute name="align">
-                        <xsl:text>left</xsl:text>
-                     </xsl:attribute>
-                  </xsl:if>
-
-                  <a href="http://nginx.org">
-
-                     <img src="http://nginx.org/nginx.gif" alt="nginx" border="0"/>
+    <body>
+    <table width="100%">
+    <tr>
+        <td width="70%">
+            <div id="banner">
+                <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
+                <center>
+                <table>
+                    <tr>
+                        <td align="center">
+                            <strong>Looking to make your web app faster? Look no further!</strong>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td align="center">
+                            <i>NGINX Plus for HTTP load balancing, caching and SSL offload &#8212;
+                            <a href="http://nginx.com/products/">Free 30-Day Trial</a>.</i>
+                        </td>
+                    </tr>
+                </table>
+                </center>
+            </div>
+        </td>
+        <td align="right">
+            <xsl:if test="@lang = 'he'"> <xsl:attribute name="align"> <xsl:text>left</xsl:text> </xsl:attribute> </xsl:if>
+            <a href="http://nginx.org">
+                <img src="http://nginx.org/nginx.gif" alt="nginx" border="0"/>
+            </a>
+        </td>
+    </tr>
 
-                  </a>
-
-               </td>
-
-            </tr>
+    <tr>
+        <td width="70%"><center><h3>
+            <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if>
+        </h3></center></td>
 
-            <tr>
-
-               <td width="70%">
-                  <center>
-                     <h3>
+        <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
+            <br/>
 
-                        <xsl:value-of select="@name"/>
-                        <xsl:if test="$YEAR">
-                           <xsl:text>: </xsl:text>
-                           <xsl:value-of select="$YEAR"/>
-                        </xsl:if>
+            <xsl:apply-templates select="document(concat($XML, '/menu.xml'))
+                         /menus/menu[@lang = $lang]/item"/>
+        </td>
 
-                     </h3>
-                  </center>
-               </td>
+    </tr>
 
-               <td rowspan="2" align="{$MENU_ALIGN}" valign="top">
-
-                  <br/>
+    <tr><td valign="top">
 
-                  <xsl:apply-templates select="document(concat($XML, '/menu.xml'))                          /menus/menu[@lang = $lang]/item"/>
+        <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and
+              (not(@rev) or
+              @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
+            <span>
 
-               </td>
-
-            </tr>
+            <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
 
-            <tr>
-               <td valign="top">
-
-                  <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and               (not(@rev) or               @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
-
-                     <span>
-
-                        <xsl:if test="@lang = 'he'">
-                           <xsl:attribute name="class">
-                              <xsl:text>ltr</xsl:text>
-                           </xsl:attribute>
-                        </xsl:if>
+            <blockquote class="note">
 
-                        <blockquote class="note">
-                           <xsl:choose>
-
-                              <xsl:when test="document(concat($XML, '/i18n.xml'))                            /i18n/text[@lang = $lang]/item[@id='outdated']">
-
-                                 <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))                              /i18n/text[@lang = $lang]/item[@id='outdated']"/>
-                              </xsl:when>
+            <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml'))
+                           /i18n/text[@lang = $lang]/item[@id='outdated']">
+                <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))
+                             /i18n/text[@lang = $lang]/item[@id='outdated']"/>
+            </xsl:when><xsl:otherwise>
+                <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))
+                             /i18n/text[@lang = 'en']/item[@id='outdated']"/>
+            </xsl:otherwise></xsl:choose>
 
-                              <xsl:otherwise>
-
-                                 <xsl:apply-templates select="document(concat($XML, '/i18n.xml'))                              /i18n/text[@lang = 'en']/item[@id='outdated']"/>
-                              </xsl:otherwise>
-                           </xsl:choose>
-
-                        </blockquote>
+            </blockquote>
+            </span>
+        </xsl:if>
 
-                     </span>
-                  </xsl:if>
-
-                  <xsl:if test="@toc = 'yes' and section[@id and @name]">
-
-                     <table width="100%">
-                        <tr>
-                           <td align="{$INDEX_ALIGN}">
-
-                              <xsl:for-each select="section[@id and @name]">
-
-                                 <a href="#{@id}">
-                                    <xsl:value-of select="@name"/>
-                                 </a>
-                                 <br/>
-
-                                 <xsl:for-each select="section[@id and @name]">
-
-                                    <xsl:text>     </xsl:text>
-
-                                    <a href="#{@id}">
-                                       <xsl:value-of select="@name"/>
-                                    </a>
-                                    <br/>
-                                 </xsl:for-each>
-
-                                 <xsl:if test="@id = 'directives'">
-
-                                    <xsl:for-each select="directive[@name]">
-
-                                       <xsl:text>     </xsl:text>
+        <xsl:if test="@toc = 'yes' and section[@id and @name]">
+            <table width="100%"><tr><td align="{$INDEX_ALIGN}">
+            <xsl:for-each select="section[@id and @name]">
+                <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
+                <xsl:for-each select="section[@id and @name]">
+                    <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text>
+                    <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
+                </xsl:for-each>
+                <xsl:if test="@id = 'directives'">
+                    <xsl:for-each select="directive[@name]">
+                        <xsl:text>&#160;&#160;&#160;&#160;&#160;</xsl:text>
+                        <a href="#{@name}"> <xsl:value-of select="@name"/> </a><br/>
+                    </xsl:for-each>
+                </xsl:if>
+            </xsl:for-each>
+            </td></tr></table>
+        </xsl:if>
 
-                                       <a href="#{@name}">
-                                          <xsl:value-of select="@name"/>
-                                       </a>
-                                       <br/>
-                                    </xsl:for-each>
-                                 </xsl:if>
-                              </xsl:for-each>
+        <xsl:apply-templates/>
 
-                           </td>
-                        </tr>
-                     </table>
-                  </xsl:if>
-
-                  <xsl:apply-templates/>
+        <xsl:if test="@author or @editor or @translator">
+            <table width="100%"><tr><td align="right">
 
-                  <xsl:if test="@author or @editor or @translator">
-
-                     <table width="100%">
-                        <tr>
-                           <td align="right">
-
-                              <xsl:if test="@author">
-
-                                 <xsl:value-of select="document(concat($XML, '/i18n.xml'))                            /i18n/text[@lang = $lang]/item[@id='author']"/>
-
-                                 <xsl:text> </xsl:text>
-                                 <xsl:value-of select="@author"/>
-                                 <br/>
-                              </xsl:if>
+            <xsl:if test="@author">
+                <xsl:value-of select="document(concat($XML, '/i18n.xml'))
+                           /i18n/text[@lang = $lang]/item[@id='author']"/>
+                <xsl:text> </xsl:text> <xsl:value-of select="@author"/> <br/>
+            </xsl:if>
 
-                              <xsl:if test="@editor">
-
-                                 <xsl:value-of select="document(concat($XML, '/i18n.xml'))                            /i18n/text[@lang = $lang]/item[@id='editor']"/>
-
-                                 <xsl:text> </xsl:text>
-                                 <xsl:value-of select="@editor"/>
-                                 <br/>
-                              </xsl:if>
-
-                              <xsl:if test="@translator">
-
-                                 <xsl:value-of select="document(concat($XML, '/i18n.xml'))                            /i18n/text[@lang = $lang]/item[@id='translator']"/>
+            <xsl:if test="@editor">
+                <xsl:value-of select="document(concat($XML, '/i18n.xml'))
+                           /i18n/text[@lang = $lang]/item[@id='editor']"/>
+                <xsl:text> </xsl:text> <xsl:value-of select="@editor"/> <br/>
+            </xsl:if>
 
-                                 <xsl:text> </xsl:text>
-                                 <xsl:value-of select="@translator"/>
-                                 <br/>
-                              </xsl:if>
+            <xsl:if test="@translator">
+                <xsl:value-of select="document(concat($XML, '/i18n.xml'))
+                           /i18n/text[@lang = $lang]/item[@id='translator']"/>
+                <xsl:text> </xsl:text> <xsl:value-of select="@translator"/> <br/>
+            </xsl:if>
 
-                           </td>
-                        </tr>
-                     </table>
-                  </xsl:if>
+            </td></tr></table>
+        </xsl:if>
+
+    </td></tr>
 
-               </td>
-            </tr>
+    </table>
+    </body>
 
-         </table>
-
-      </body>
-   </xsl:template>
+</xsl:template>
 
 </xsl:stylesheet>