annotate xsls/dirmap.xsls @ 432:fbba1f292dc9

Generate mapping of directives to URIs in the nginx map format.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 28 Feb 2012 08:06:22 +0000
parents
children be54c443235a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
432
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
1 X:stylesheet {
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
3 X:output method="text";
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
4
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
5 X:template = "link" {
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 !{@id}
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7 X:text{ }
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8 !{substring-before(@doc, '.xml')}
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9 X:text{.html#}
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 !{@id}
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 X:text{;&#10;}
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12 }
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14 X:template = "links" {
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 !! "link";
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 }
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18 }