Mercurial > hg > nginx-site
changeset 132:1ebe107b3d7e
Expanded tabs into spaces.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 21 Oct 2011 14:22:31 +0000 |
parents | 8beaff4b3b6b |
children | 364a3ee4526f |
files | xsls/content.xsls xsls/download.xsls xsls/dump.xsls |
diffstat | 3 files changed, 53 insertions(+), 53 deletions(-) [+] |
line wrap: on
line diff
--- a/xsls/content.xsls +++ b/xsls/content.xsls @@ -1,18 +1,18 @@ X:stylesheet { X:template = "section[@id and @name]" { - <a name="{@id}" /> <center><h4> !{@name} </h4></center> - !!; + <a name="{@id}" /> <center><h4> !{@name} </h4></center> + !!; } X:template = "section[@id and not(@name)]" { - <a name="{@id}" /> - !!; + <a name="{@id}" /> + !!; } X:template = "section[not(@id) and @name]" { - <center><h4> !{@name} </h4></center> - !!; + <center><h4> !{@name} </h4></center> + !!; } X:template = "para" { <p> !!; </p> } @@ -25,41 +25,41 @@ X:stylesheet { 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: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: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> } + X:text disable-output-escaping="yes" {</p> } <ul> !!; </ul> - X:text disable-output-escaping="yes" {<p> } + 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> } + X:text disable-output-escaping="yes" {</p> } <ol> !!; </ol> - X:text disable-output-escaping="yes" {<p> } + 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> } + X:text disable-output-escaping="yes" {</p> } <dl compact=""> !!; </dl> - X:text disable-output-escaping="yes" {<p> } + X:text disable-output-escaping="yes" {<p> } } X:template = "tag-name" { <dt> !!; </dt> } @@ -69,31 +69,31 @@ X:stylesheet { X:template = "list[not(@type)]" { <ul> !!; </ul> } X:template = "para/list[not(@type)]" { - X:text disable-output-escaping="yes" {</p> } - <ul> !!; </ul> - X:text disable-output-escaping="yes" {<p> } + X:text disable-output-escaping="yes" {</p> } + <ul> !!; </ul> + X:text disable-output-escaping="yes" {<p> } } X:template = "item" { <li> !!; </li> } X:template = "orderedlist" { <ol> !!; </ol> } X:template = "para/orderedlist" { - X:text disable-output-escaping="yes" {</p> } - <ol> !!; </ol> - X:text disable-output-escaping="yes" {<p> } + X:text disable-output-escaping="yes" {</p> } + <ol> !!; </ol> + X:text disable-output-escaping="yes" {<p> } } X:template = "item" { <li> !!; </li> } <!-- --> X:template = "table[@note and @width]" { - <blockquote><table width="{@width}"> !!; </table></blockquote> + <blockquote><table width="{@width}"> !!; </table></blockquote> } X:template = "table[@note and not(@width)]" { - <blockquote><table width="100%"> !!; </table></blockquote> + <blockquote><table width="100%"> !!; </table></blockquote> } X:template = "table[not(@note) and @width]" { - <table width="{@width}"> !!; </table> + <table width="{@width}"> !!; </table> } X:template = "table" { <table width="100%"> !!; </table> } X:template = "tr" { <tr> !!; </tr> } @@ -117,9 +117,9 @@ X:stylesheet { 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:text disable-output-escaping="yes" {</p> } + <blockquote><pre> !!; </pre></blockquote> + X:text disable-output-escaping="yes" {<p> } } X:template = "pathname" { <code> !!; </code> } @@ -128,7 +128,7 @@ X:stylesheet { X:template = "parameter" { <code> !!; </code> } X:template = "header" { - X:text {“} !!; X:text {”} + X:text {“} !!; X:text {”} } X:template = "http-status" { @@ -136,9 +136,9 @@ X:stylesheet { } X:template = "dirname[/*[@lang='he']]" { - <nobr><span class="ltr"> - X:text {“} !!; X:text {”} - </span></nobr> + <nobr><span class="ltr"> + X:text {“} !!; X:text {”} + </span></nobr> } X:template = "dirname" { @@ -146,7 +146,7 @@ X:stylesheet { } X:template = "url[/*[@lang='he']]" { - <i><span class="ltr"> !!; </span></i> + <i><span class="ltr"> !!; </span></i> } X:template = "url" { <i> !!;</i> }
--- a/xsls/download.xsls +++ b/xsls/download.xsls @@ -43,10 +43,10 @@ X:template = "download/item[position() & <tr> <td width="20%"> X:if "position() = 1" { - <a> - X:attribute "href" { X:text{/} !{/article/@lang} X:text{/} !{../@changes} } - !{../@changes} - </a> + <a> + X:attribute "href" { X:text{/} !{/article/@lang} X:text{/} !{../@changes} } + !{../@changes} + </a> } </td> @@ -80,12 +80,12 @@ X:template = "download/item[position() & X:if "@pgp = 'yes'" { X:text {  } - <a> - X:attribute "href" { + <a> + X:attribute "href" { X:text {/download/nginx-} !{@ver} X:text {.zip.asc} - } - X:text {pgp} - </a> + } + X:text {pgp} + </a> } } </td>
--- a/xsls/dump.xsls +++ b/xsls/dump.xsls @@ -4,17 +4,17 @@ X:output method="xml" X:param indent-increment="' '"; X:template noname(indent="'
'") = "*" { - !{$indent} + !{$indent} - X:if "name()='xsl:template'" { - !{$indent} - } + X:if "name()='xsl:template'" { + !{$indent} + } - X:copy { - X:copy-of "@*" - !!( indent = "concat($indent, $indent-increment)" ); - X:if "./* " { !{$indent} } - } + X:copy { + X:copy-of "@*" + !!( indent = "concat($indent, $indent-increment)" ); + X:if "./* " { !{$indent} } + } }