comparison xsls/directive.xsls @ 108:72524ae53106

Explicitly marked directives with the block syntax. Such directives will have curly braces around their syntax and defaults appear automatically. Other directives will have a semicolon after their syntax and defaults.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 20 Oct 2011 07:47:21 +0000
parents 3ae68fe2e938
children d3e240f7157c
comparison
equal deleted inserted replaced
107:ee725af08951 108:72524ae53106
35 <code> 35 <code>
36 !{../@name} 36 !{../@name}
37 X:if "count(node()) != 0" { 37 X:if "count(node()) != 0" {
38 X:text{ } !!; 38 X:text{ } !!;
39 } 39 }
40 X:if "@block = 'yes'" {
41 X:text{ \{ ... \}}
42 } else {
43 X:text{;}
44 }
40 </code> 45 </code>
41 <br/> 46 <br/>
42 X:if "position() = last()" { 47 X:if "position() = last()" {
43 X:text disable-output-escaping="yes" { 48 X:text disable-output-escaping="yes" {
44 &lt;/td&gt; 49 &lt;/td&gt;
67 !{document(concat($XML, '/i18n.xml')) 72 !{document(concat($XML, '/i18n.xml'))
68 /i18n/text[@lang = $LANG]/item[@id='none']} 73 /i18n/text[@lang = $LANG]/item[@id='none']}
69 </strong> 74 </strong>
70 } else { 75 } else {
71 <strong>&#8203;</strong> 76 <strong>&#8203;</strong>
72 <code> !{../@name} X:text{ } !!; </code> 77 <code>
78 !{../@name}
79 X:if "count(../syntax[@block='yes'])" {
80 X:text{ \{} !!; X:text{\}}
81 } else {
82 X:text{ } !!; X:text{;}
83 }
84 </code>
73 } 85 }
74 <br/> 86 <br/>
75 X:if "position() = last()" { 87 X:if "position() = last()" {
76 X:text disable-output-escaping="yes" { 88 X:text disable-output-escaping="yes" {
77 &lt;/td&gt; 89 &lt;/td&gt;