Mercurial > hg > nginx-site
view xsls/content.xsls @ 92:4b0182b7b1e5
Fixed HTML for <list> inside <para>.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 14 Oct 2011 10:59:13 +0000 |
parents | e4e9f7bc885f |
children | b2e9c172a156 |
line wrap: on
line source
X:stylesheet { X:template = "section[@id and @name]" { <a name="{@id}" /> <center><h4> !{@name} </h4></center> !!; } X:template = "section[not(@id) and @name]" { <center><h4> !{@name} </h4></center> !!; } X:template = "section[not(@id) and not(@name)]" { !!; } <!-- legacy section templates --> 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 = "para[@align]" { <p align="{@align}"> !!; </p> } X:template = "initial" { <span class="initial"><b> !!; </b></span> } 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> } } 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']" { <ul> !!; </ul> } X:template = "para/list[@type='bullet']" { X:text disable-output-escaping="yes" {</p> } <ul> !!; </ul> X:text disable-output-escaping="yes" {<p> } } X:template = "list[@type='enum']" { <ol> !!; </ol> } X:template = "para/list[@type='enum']" { X:text disable-output-escaping="yes" {</p> } <ol> !!; </ol> X:text disable-output-escaping="yes" {<p> } } X:template = "listitem" { <li> !!; </li> } X:template = "list[@type='tag']" { <dl compact=""> !!; </dl> } X:template = "para/list[@type='tag']" { X:text disable-output-escaping="yes" {</p> } <dl compact=""> !!; </dl> X:text disable-output-escaping="yes" {<p> } } X:template = "tag-name" { <dt> !!; </dt> } X:template = "tag-desc" { <dd> !!; </dd> } <!-- legacy list templates --> 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 = "c-def" { <code> !!; </code> } X:template = "c-func" { <code> !!; X:text{()} </code> } X:template = "command" { <code> !!; </code> } X:template = "dq" { X:text disable-output-escaping="yes" {&ldquo;} !!; X:text disable-output-escaping="yes" {&rdquo;} } X:template = "emphasis" { <strong> !!; </strong> } X:template = "example" { <blockquote><pre> !!; </pre></blockquote> } X:template = "para/example" { X:text disable-output-escaping="yes" {</p> } <blockquote><pre> !!; </pre></blockquote> X:text disable-output-escaping="yes" {<p> } } X:template = "pathname" { <code> !!; </code> } X:template = "argument" { <code><i> !!; </i></code> } X:template = "parameter" { <code> !!; </code> } X:template = "header" { X:text {“} !!; X:text {”} } X:template = "http-status" { !{@code} X:text { (} !{@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 = "value" { <code> !!; </code> } X:template = "var" { <code> !!; </code> } 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/> } }