comparison xsls/content.xsls @ 473:cac48e2d0d9b

Added the "compact" attribute to the "list" element.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 30 Mar 2012 13:31:55 +0000
parents 6135f3c95bf6
children c611fe0c3cf5
comparison
equal deleted inserted replaced
472:7054e1c9c9c2 473:cac48e2d0d9b
37 X:text disable-output-escaping="yes" {&lt;/p&gt; } 37 X:text disable-output-escaping="yes" {&lt;/p&gt; }
38 <blockquote class="note"> !!; </blockquote> 38 <blockquote class="note"> !!; </blockquote>
39 X:text disable-output-escaping="yes" {&lt;p&gt; } 39 X:text disable-output-escaping="yes" {&lt;p&gt; }
40 } 40 }
41 41
42 X:template = "list[@type='bullet']" { <ul> !!; </ul> } 42 X:template = "list[@type='bullet']" {
43 X:if "@compact = 'yes'" {
44 <ul class="compact"> !!; </ul>
45 } else {
46 <ul> !!; </ul>
47 }
48 }
43 X:template = "para/list[@type='bullet']" { 49 X:template = "para/list[@type='bullet']" {
44 X:text disable-output-escaping="yes" {&lt;/p&gt; } 50 X:text disable-output-escaping="yes" {&lt;/p&gt; }
45 <ul> !!; </ul> 51 X:if "@compact = 'yes'" {
52 <ul class="compact"> !!; </ul>
53 } else {
54 <ul> !!; </ul>
55 }
46 X:text disable-output-escaping="yes" {&lt;p&gt; } 56 X:text disable-output-escaping="yes" {&lt;p&gt; }
47 } 57 }
48 58
49 X:template = "list[@type='enum']" { <ol> !!; </ol> } 59 X:template = "list[@type='enum']" {
60 X:if "@compact = 'yes'" {
61 <ol class="compact"> !!; </ol>
62 } else {
63 <ol> !!; </ol>
64 }
65 }
50 X:template = "para/list[@type='enum']" { 66 X:template = "para/list[@type='enum']" {
51 X:text disable-output-escaping="yes" {&lt;/p&gt; } 67 X:text disable-output-escaping="yes" {&lt;/p&gt; }
52 <ol> !!; </ol> 68 X:if "@compact = 'yes'" {
69 <ol class="compact"> !!; </ol>
70 } else {
71 <ol> !!; </ol>
72 }
53 X:text disable-output-escaping="yes" {&lt;p&gt; } 73 X:text disable-output-escaping="yes" {&lt;p&gt; }
54 } 74 }
55 75
56 X:template = "listitem" { <li> !!; </li> } 76 X:template = "listitem" { <li> !!; </li> }
57 77