diff xsls/link.xsls @ 57:12f1de4539b4

Initial English translation of ngx_http_core_module.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 03 Oct 2011 16:23:44 +0000
parents 666e85596e3c
children 56457a474903
line wrap: on
line diff
--- a/xsls/link.xsls	Mon Oct 03 15:54:53 2011 +0000
+++ b/xsls/link.xsls	Mon Oct 03 16:23:44 2011 +0000
@@ -66,4 +66,14 @@
 
 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>
+}
+
+}