comparison docs/xsls/directive.xsls @ 4066:ac19e755a132

DTD and XSLS changes for modules.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 05 Sep 2011 09:32:00 +0000
parents fc808f006ff4
children 24f511e94057
comparison
equal deleted inserted replaced
4065:227a819b46db 4066:ac19e755a132
1 X:stylesheet { 1 X:stylesheet {
2 2
3 X:template = "directive" { 3 X:template = "directive" {
4 <a name="{@name}" /> <center><h4> !{@name} </h4></center> 4 <hr/>
5 !! "syntax"; 5 <a name="{@name}"/>
6 !! "default"; 6 <!-- <center><h4> !{@name} </h4></center> -->
7 !! "context"; 7 !! "syntax";
8 !! "para"; 8 !! "default";
9 !! "context";
10 X:if "(@appeared-in)" {
11 <strong>appeared in version</strong>: !{@appeared-in}
12 }
13 !! "para";
14 }
15
16 X:template = "syntax" {
17 X:if "position() = 1" {
18 <strong>syntax</strong>:
19 } else {
20 <code>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</code>
21 }
22 <code> !!; </code> <br/>
23 }
24
25 X:template = "default" {
26 <strong>default</strong>:
27 X:if "count(text()) = 0" {
28 <strong>none</strong>
29 } else {
30 <code> !!; </code>
31 }
32 <br/>
33 }
34
35 X:template = "context" {
36 X:if "position() = 1" {
37 <strong>context</strong>:
38 }
39 X:if "count(text()) = 0" {
40 <strong>any</strong>
41 } else {
42 <code> !!; </code>
43 }
44 X:if "position() != last()" {
45 X:text{, }
46 } else {
47 <br/>
48 }
49 }
50
9 } 51 }
10
11 X:template = "syntax" { X:text {syntax: } !!; <br/> }
12 X:template = "default" { X:text {default: } !!; <br/> }
13 X:template = "context" { X:text {context: } !!; <br/> }
14
15 }