diff options
Diffstat (limited to 'docs/xsls')
| -rw-r--r-- | docs/xsls/content.xsls | 19 | ||||
| -rw-r--r-- | docs/xsls/directive.xsls | 15 | ||||
| -rw-r--r-- | docs/xsls/module.xsls | 33 |
3 files changed, 67 insertions, 0 deletions
diff --git a/docs/xsls/content.xsls b/docs/xsls/content.xsls new file mode 100644 index 000000000..cf9dcf5b6 --- /dev/null +++ b/docs/xsls/content.xsls @@ -0,0 +1,19 @@ +X:stylesheet { + +X:template = "section[@name and @title]" { + <a name="{@name}" /> <center><h4> !{@title} </h4></center> + !!; +} + +X:template = "section[not(@name) and @title]" { + <center><h4> !{@title} </h4></center> + !!; +} + +X:template = "section[not(@name) and not(@title)]" { !!; } + +X:template = "para" { <p> !!; </p> } + +X:template = "value" { <i> !!; </i> } + +} diff --git a/docs/xsls/directive.xsls b/docs/xsls/directive.xsls new file mode 100644 index 000000000..09bb834fd --- /dev/null +++ b/docs/xsls/directive.xsls @@ -0,0 +1,15 @@ +X:stylesheet { + +X:template = "directive" { + <a name="{@name}" /> <center><h4> !{@name} </h4></center> + !! "syntax"; + !! "default"; + !! "context"; + !! "para"; +} + +X:template = "syntax" { X:text {syntax: } !!; <br/> } +X:template = "default" { X:text {default: } !!; <br/> } +X:template = "context" { X:text {context: } !!; <br/> } + +} diff --git a/docs/xsls/module.xsls b/docs/xsls/module.xsls new file mode 100644 index 000000000..17b28ebe3 --- /dev/null +++ b/docs/xsls/module.xsls @@ -0,0 +1,33 @@ +X:stylesheet { + +X:output method="html" indent="no" encoding="utf-8"; + +X:strip-space elements = "*"; + +<!-- + -- a current directory of a XSLT script is where the script is stored, + -- but not where XSLT processor has been started to run the script + --> +X:param XML = "'../xml'"; + +X:var LINK = "/module/@link"; + +X:include href = "directive.xslt"; +X:include href = "content.xslt"; + + +X:template = "/module" { + <html><head> + + <title> !{@title} </title> + + </head> + <body> + + !!; + + </body> + </html> +} + +} |
