22
|
1 X:stylesheet {
|
|
2
|
|
3 X:template = "directive" {
|
|
4 <a name="{@name}"/>
|
|
5 <!-- <center><h4> !{@name} </h4></center> -->
|
|
6 <div class="directive">
|
|
7 !! "syntax";
|
|
8 !! "default";
|
|
9 !! "context";
|
|
10 X:if "(@appeared-in)" {
|
|
11 <strong>appeared in version</strong>: !{@appeared-in}
|
|
12 }
|
|
13 </div>
|
|
14 !! "para";
|
|
15 }
|
|
16
|
|
17 X:template = "syntax" {
|
|
18 X:if "position() = 1" {
|
|
19 <strong>syntax</strong>:
|
|
20 } else {
|
|
21 <code>       </code>
|
|
22 }
|
|
23 <code> !!; </code> <br/>
|
|
24 }
|
|
25
|
|
26 X:template = "default" {
|
|
27 <strong>default</strong>:
|
|
28 X:if "count(text()) = 0" {
|
|
29 <strong>none</strong>
|
|
30 } else {
|
|
31 <code> !!; </code>
|
|
32 }
|
|
33 <br/>
|
|
34 }
|
|
35
|
|
36 X:template = "context" {
|
|
37 X:if "position() = 1" {
|
|
38 <strong>context</strong>:
|
|
39 }
|
|
40 X:if "count(text()) = 0" {
|
|
41 <strong>any</strong>
|
|
42 } else {
|
|
43 <code> !!; </code>
|
|
44 }
|
|
45 X:if "position() != last()" {
|
|
46 X:text{, }
|
|
47 } else {
|
|
48 <br/>
|
|
49 }
|
|
50 }
|
|
51
|
|
52 }
|