changeset 474:eececc9281f4

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 30 Mar 2012 13:32:16 +0000
parents cac48e2d0d9b
children cfc69ee2f0a0
files xslt/content.xslt xslt/style.xslt
diffstat 2 files changed, 65 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/content.xslt	Fri Mar 30 13:31:55 2012 +0000
+++ b/xslt/content.xslt	Fri Mar 30 13:32:16 2012 +0000
@@ -89,36 +89,86 @@
       <xsl:text disable-output-escaping="yes">&lt;p&gt; </xsl:text>
    </xsl:template>
 
-   <xsl:template match="list[@type='bullet']"> 
-      <ul>
-         <xsl:apply-templates/>
-      </ul>
+   <xsl:template match="list[@type='bullet']">
+      <xsl:choose>
+
+         <xsl:when test="@compact = 'yes'">
+
+            <ul class="compact">
+               <xsl:apply-templates/>
+            </ul>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <ul>
+               <xsl:apply-templates/>
+            </ul>
+         </xsl:otherwise>
+      </xsl:choose>
    </xsl:template>
 
    <xsl:template match="para/list[@type='bullet']">
 
       <xsl:text disable-output-escaping="yes">&lt;/p&gt; </xsl:text>
+      <xsl:choose>
 
-      <ul>
-         <xsl:apply-templates/>
-      </ul>
+         <xsl:when test="@compact = 'yes'">
+
+            <ul class="compact">
+               <xsl:apply-templates/>
+            </ul>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <ul>
+               <xsl:apply-templates/>
+            </ul>
+         </xsl:otherwise>
+      </xsl:choose>
 
       <xsl:text disable-output-escaping="yes">&lt;p&gt; </xsl:text>
    </xsl:template>
 
-   <xsl:template match="list[@type='enum']"> 
-      <ol>
-         <xsl:apply-templates/>
-      </ol>
+   <xsl:template match="list[@type='enum']">
+      <xsl:choose>
+
+         <xsl:when test="@compact = 'yes'">
+
+            <ol class="compact">
+               <xsl:apply-templates/>
+            </ol>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <ol>
+               <xsl:apply-templates/>
+            </ol>
+         </xsl:otherwise>
+      </xsl:choose>
    </xsl:template>
 
    <xsl:template match="para/list[@type='enum']">
 
       <xsl:text disable-output-escaping="yes">&lt;/p&gt; </xsl:text>
+      <xsl:choose>
 
-      <ol>
-         <xsl:apply-templates/>
-      </ol>
+         <xsl:when test="@compact = 'yes'">
+
+            <ol class="compact">
+               <xsl:apply-templates/>
+            </ol>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <ol>
+               <xsl:apply-templates/>
+            </ol>
+         </xsl:otherwise>
+      </xsl:choose>
 
       <xsl:text disable-output-escaping="yes">&lt;p&gt; </xsl:text>
    </xsl:template>
--- a/xslt/style.xslt	Fri Mar 30 13:31:55 2012 +0000
+++ b/xslt/style.xslt	Fri Mar 30 13:32:16 2012 +0000
@@ -5,7 +5,7 @@
       <xsl:param name="lang"/>
 
       <style type="text/css">
-         <xsl:value-of select=" normalize-space('         body              { font-family:    Georgia, serif; }         p                 { text-align:     justify; }         table.news p      { margin-top:     0; }         table.news td     { vertical-align: baseline; }         table.news .date  { text-align:     right;                             padding-right:  0.5em;                             white-space:    nowrap; }         div.directive     { background:     #EEEEEE;                             padding:        10pt 10pt 10pt 0; }         div.directive td  { vertical-align: baseline; }         div.directive pre { padding:        0;                             margin:         0; }         div.directive p   { margin:         5pt 0 0 0;                             font-size:      80%; }         span.initial      { font-size:      200%;                             float:          left;                             padding-right:  10pt;}         li                { text-align:     justify; }         dd                { text-align:     justify; }         td.list           { background:     #EEEEEE; }         blockquote.note   { text-align:     justify;                             background:     #EEEEEE;                             border:         none;                             margin:         1em;                             padding:        0.5em; }         blockquote.example {                             background:     transparent;                             border:         none;                             margin:         1em;                             padding:        0.5em; }         blockquote.example pre {                             padding:        0;                             margin:         0; }         sup               { font-size:      50%; }         ')"/>
+         <xsl:value-of select=" normalize-space('         body              { font-family:    Georgia, serif; }         p                 { text-align:     justify; }         table.news p      { margin-top:     0; }         table.news td     { vertical-align: baseline; }         table.news .date  { text-align:     right;                             padding-right:  0.5em;                             white-space:    nowrap; }         div.directive     { background:     #EEEEEE;                             padding:        10pt 10pt 10pt 0; }         div.directive td  { vertical-align: baseline; }         div.directive pre { padding:        0;                             margin:         0; }         div.directive p   { margin:         5pt 0 0 0;                             font-size:      80%; }         span.initial      { font-size:      200%;                             float:          left;                             padding-right:  10pt;}         li                { text-align:     justify;                             padding-top:    0.5em; }         .compact li       { padding-top:    0; }         dd                { text-align:     justify; }         td.list           { background:     #EEEEEE; }         blockquote.note   { text-align:     justify;                             background:     #EEEEEE;                             border:         none;                             margin:         1em;                             padding:        0.5em; }         blockquote.example {                             background:     transparent;                             border:         none;                             margin:         1em;                             padding:        0.5em; }         blockquote.example pre {                             padding:        0;                             margin:         0; }         sup               { font-size:      50%; }         ')"/>
 
          <xsl:if test="$lang = 'he'">