Mercurial > hg > nginx-site
view xsls/content.xsls @ 2383:e01b7a3b601d
nginx-1.17.0
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 21 May 2019 17:34:03 +0300 |
parents | b459b643bf5a |
children |
line wrap: on
line source
<!-- Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> X:stylesheet { X:template = "section[@id and @name]" { <a name="{@id}" /> <center><h4> !{@name} </h4></center> !!; } X:template = "section/section[@id and @name]" { <a name="{@id}" /> <center><h4> !{@name} </h4></center> !!; } X:template = "section[@id and not(@name)]" { <a name="{@id}" /> !!; } X:template = "section[not(@id) and @name]" { <center><h4> !{@name} </h4></center> !!; } X:template = "section/section[not(@id) and @name]" { <center><h4> !{@name} </h4></center> !!; } X:template = "para[@id]" { <a name="{@id}" /> <p> !!; </p> } X:template = "para" { <p> !!; </p> } X:template = "para[@align]" { <p align="{@align}"> !!; </p> } X:template = "initial" { <span class="initial"><b> !!; </b></span> } X:template = "programlisting" { <blockquote class="example"><pre> !!; </pre></blockquote> } X:template = "para/programlisting" { X:text disable-output-escaping="yes" {</p> } <blockquote class="example"><pre> !!; </pre></blockquote> X:text disable-output-escaping="yes" {<p> } } 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> } } X:template = "list[@type='bullet']" { X:if "@compact = 'yes'" { <ul class="compact"> !!; </ul> } else { <ul> !!; </ul> } } X:template = "para/list[@type='bullet']" { X:text disable-output-escaping="yes" {</p> } X:if "@compact = 'yes'" { <ul class="compact"> !!; </ul> } else { <ul> !!; </ul> } X:text disable-output-escaping="yes" {<p> } } X:template = "list[@type='enum']" { X:if "@compact = 'yes'" { <ol class="compact"> !!; </ol> } else { <ol> !!; </ol> } } X:template = "para/list[@type='enum']" { X:text disable-output-escaping="yes" {</p> } X:if "@compact = 'yes'" { <ol class="compact"> !!; </ol> } else { <ol> !!; </ol> } X:text disable-output-escaping="yes" {<p> } } X:template = "listitem" { <li> !!; </li> } X:template = "listitem[@id]" { <li id="{@id}"> !!; </li> } X:template = "list[@type='tag']" { X:if "@compact = 'yes'" { <dl class="compact"> !!; </dl> } else { <dl> !!; </dl> } } X:template = "para/list[@type='tag']" { X:text disable-output-escaping="yes" {</p> } X:if "@compact = 'yes'" { <dl class="compact"> !!; </dl> } else { <dl> !!; </dl> } X:text disable-output-escaping="yes" {<p> } } X:template = "tag-name" { <dt> !!; </dt> } X:template = "tag-name[@id]" { <dt id="{@id}"> !!; </dt> } X:template = "tag-desc" { <dd> !!; </dd> } 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%"> X:if "@class" { X:attribute "class" { !{@class} } } !!; </table> } X:template = "tr" { <tr> !!; </tr> } X:template = "td[@width]" { <td width="{@width}"> !!; </td> } X:template = "td" { <td> !!; </td> } X:template = "c-def" { <code> !!; </code> } X:template = "c-func" { <code> !!; X:text{()} </code> } X:template = "command" { <code> !!; </code> } X:template = "emphasis" { <strong> !!; </strong> } X:template = "example" { <blockquote class="example"><pre> !!; </pre></blockquote> } X:template = "para/example" { X:text disable-output-escaping="yes" {</p> } <blockquote class="example"><pre> !!; </pre></blockquote> X:text disable-output-escaping="yes" {<p> } } X:template = "literal" { <code> !!; </code> } X:template = "header" { X:text {“} !!; X:text {”} } X:template = "http-status" { !{@code} X:text { (} !{@text} X:text{)} } X:template = "value" { <code><i> !!; </i></code> } X:template = "registered" { !!; <sup> X:text {®} </sup> } X:template = "var" { <code> !!; </code> } X:template = "path" { <code> !!; </code> } X:template = "i" { <i> !!; </i> } X:template = "b" { <b> !!; </b> } X:template = "nobr" { <nobr> !!; </nobr> } X:template = "br" { <br/> } X:template = "video[@id]" { <div class="video"> <iframe type="text/html" src="https://www.youtube.com/embed/{@id}?modestbranding=1&rel=0&showinfo=0&color=white" frameborder="0" allowfullscreen="1"> </iframe> </div> } }