annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3996
fc808f006ff4 skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
1 X:stylesheet {
4066
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
2
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
3 X:template = "directive" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
4 <hr/>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
5 <a name="{@name}"/>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
6 <!-- <center><h4> !{@name} </h4></center> -->
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
7 !! "syntax";
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
8 !! "default";
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
9 !! "context";
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
10 X:if "(@appeared-in)" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
11 <strong>appeared in version</strong>: !{@appeared-in}
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
12 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
13 !! "para";
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
14 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
15
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
16 X:template = "syntax" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
17 X:if "position() = 1" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
18 <strong>syntax</strong>:
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
19 } else {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
20 <code>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</code>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
21 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
22 <code> !!; </code> <br/>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
23 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
24
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
25 X:template = "default" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
26 <strong>default</strong>:
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
27 X:if "count(text()) = 0" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
28 <strong>none</strong>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
29 } else {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
30 <code> !!; </code>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
31 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
32 <br/>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
33 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
34
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
35 X:template = "context" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
36 X:if "position() = 1" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
37 <strong>context</strong>:
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
38 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
39 X:if "count(text()) = 0" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
40 <strong>any</strong>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
41 } else {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
42 <code> !!; </code>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
43 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
44 X:if "position() != last()" {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
45 X:text{, }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
46 } else {
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
47 <br/>
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
48 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
49 }
ac19e755a132 DTD and XSLS changes for modules.
Ruslan Ermilov <ru@nginx.com>
parents: 3996
diff changeset
50
3996
fc808f006ff4 skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
51 }