Mercurial > hg > nginx-site
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" {</p> } + <blockquote><pre> !!; </pre></blockquote> + X:text disable-output-escaping="yes" {<p class="noindent"> } +} + + +X:template = "note" { <blockquote class="note"> !!; </blockquote> } + +X:template = "para/note" { + X:text disable-output-escaping="yes" {</p> } + <blockquote class="note"> !!; </blockquote> + X:text disable-output-escaping="yes" {<p class="noindent"> } +} + + +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 {“} !!; X:text {”} +} + +X:template = "dirname[/*[@lang='he']]" { + <nobr><span class="ltr"> + X:text {“} !!; X:text {”} + </span></nobr> +} + +X:template = "dirname" { <nobr> X:text {“} !!; X:text {”} </nobr> } + +X:template = "url[/*[@lang='he']]" { + <i><span class="ltr"> !!; </span></i> +} + +X:template = "url" { <i> !!;</i> } + +X:template = "path" { X:text {“} <code> !!; </code> X:text {”} } +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 { — } } +X:template = "space" { X:text { } } +X:template = "br" { <br/> } + + +}