diff xsls/content.xsls @ 0:61e04fc01027

Initial import of the nginx.org website.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Aug 2011 12:19:13 +0000
parents
children 2f7420346aee
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xsls/content.xsls	Thu Aug 11 12:19:13 2011 +0000
@@ -0,0 +1,89 @@
+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 = "item/para" { <p class="noindent"> !!; </p> }
+
+X:template = "para[@align]" { <p align="{@align}"> !!; </p> }
+
+
+X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> }
+
+X:template = "para/programlisting" {
+    X:text disable-output-escaping="yes" {&lt;/p&gt; }
+    <blockquote><pre> !!; </pre></blockquote>
+    X:text disable-output-escaping="yes" {&lt;p class="noindent"&gt; }
+}
+
+
+X:template = "note" { <blockquote class="note"> !!; </blockquote> }
+
+X:template = "para/note" {
+    X:text disable-output-escaping="yes" {&lt;/p&gt; }
+    <blockquote class="note"> !!; </blockquote>
+    X:text disable-output-escaping="yes" {&lt;p class="noindent"&gt; }
+}
+
+
+X:template = "list" { <ul> !!; </ul> }
+X:template = "item" { <li> !!; </li> }
+
+
+X:template = "orderedlist" { <ol> !!; </ol> }
+X:template = "item" { <li> !!; </li> }
+
+X:template = "table[@note and @width]" {
+    <blockquote><table width="{@width}"> !!; </table></blockquote>
+}
+X:template = "table[@note and not(@width)]" {
+    <blockquote><table width="100%"> !!; </table></blockquote>
+}
+X:template = "table[not(@note) and @width]" {
+    <table width="{@width}"> !!; </table>
+}
+X:template = "table" { <table width="100%"> !!; </table> }
+X:template = "tr" { <tr> !!; </tr> }
+X:template = "td[@width]" { <td width="{@width}"> !!; </td> }
+X:template = "td" { <td> !!; </td> }
+
+X:template = "header" {
+    X:text {&#8220;} !!; X:text {&#8221;}
+}
+
+X:template = "dirname[/*[@lang='he']]" {
+    <nobr><span class="ltr">
+    X:text {&#8220;} !!; X:text {&#8221;}
+    </span></nobr>
+}
+
+X:template = "dirname" { <nobr> X:text {&#8220;} !!; X:text {&#8221;} </nobr> }
+
+X:template = "url[/*[@lang='he']]" {
+    <i><span class="ltr"> !!; </span></i>
+}
+
+X:template = "url" { <i> !!;</i> }
+
+X:template = "path" { X:text {&#8220;} <code> !!; </code> X:text {&#8221;} }
+X:template = "code" { <code> !!; </code> }
+X:template = "i" { <i> !!; </i> }
+X:template = "b" { <b> !!; </b> }
+X:template = "nobr" { <nobr> !!; </nobr> }
+X:template = "mdash" { X:text {&#xA0;&#8212; } }
+X:template = "space" { X:text { } }
+X:template = "br" { <br/> }
+
+
+}