changeset 497:3309e66c35fb

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Apr 2012 21:24:17 +0000
parents a57994ede438
children 65843513cff5
files xslt/content.xslt xslt/style.xslt
diffstat 2 files changed, 33 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/content.xslt
+++ b/xslt/content.xslt
@@ -179,19 +179,44 @@
       </li>
    </xsl:template>
 
-   <xsl:template match="list[@type='tag']"> 
-      <dl compact="">
-         <xsl:apply-templates/>
-      </dl>
+   <xsl:template match="list[@type='tag']">
+      <xsl:choose>
+
+         <xsl:when test="@compact = 'yes'">
+
+            <dl class="compact">
+               <xsl:apply-templates/>
+            </dl>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <dl>
+               <xsl:apply-templates/>
+            </dl>
+         </xsl:otherwise>
+      </xsl:choose>
    </xsl:template>
 
    <xsl:template match="para/list[@type='tag']">
 
       <xsl:text disable-output-escaping="yes">&lt;/p&gt; </xsl:text>
+      <xsl:choose>
 
-      <dl compact="">
-         <xsl:apply-templates/>
-      </dl>
+         <xsl:when test="@compact = 'yes'">
+
+            <dl class="compact">
+               <xsl:apply-templates/>
+            </dl>
+         </xsl:when>
+
+         <xsl:otherwise>
+
+            <dl>
+               <xsl:apply-templates/>
+            </dl>
+         </xsl:otherwise>
+      </xsl:choose>
 
       <xsl:text disable-output-escaping="yes">&lt;p&gt; </xsl:text>
    </xsl:template>
--- a/xslt/style.xslt
+++ b/xslt/style.xslt
@@ -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;                             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: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; }         dt                { padding-top:    0.5em; }         .compact dt       { 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'">