diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2011-09-08 13:26:06 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2011-09-08 13:26:06 +0000 |
| commit | aab747108d26006b90dd3390799a15c0f6c77ba0 (patch) | |
| tree | 45340b10d70a46c596b142025b579a46c5cc413c /docs/xsls | |
| parent | ecf83ef9556d9aa6598423c9115a686c370418d7 (diff) | |
| download | nginx-aab747108d26006b90dd3390799a15c0f6c77ba0.tar.gz nginx-aab747108d26006b90dd3390799a15c0f6c77ba0.tar.bz2 | |
Basic inter-document and external linking support.
Diffstat (limited to 'docs/xsls')
| -rw-r--r-- | docs/xsls/content.xsls | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/xsls/content.xsls b/docs/xsls/content.xsls index 9d4bd02e3..c6fe14e9f 100644 --- a/docs/xsls/content.xsls +++ b/docs/xsls/content.xsls @@ -39,7 +39,14 @@ X:stylesheet { X:text{ (} !{@code} X:text{)} } + X:template = "link[@url]" { <a href="{@url}"> !!; </a> } X:template = "link[@id and not(@doc)]" { <a href="#{@id}"> !!; </a> } + X:template = "link[@doc and not(@id)]" { + <a href="{substring-before(@doc, '.xml')}.html"> !!; </a> + } + X:template = "link[@id and @doc]" { + <a href="{substring-before(@doc, '.xml')}.html#{@id}"> !!; </a> + } X:template = "link" { <u> !!; </u> } X:template = "list[@type='bullet']" { <ul> !!; </ul> } |
