Mercurial > hg > nginx-site
changeset 17:1fc034261cf4
Refactoring r16: "initial" should be property of text but not of paragraph.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 26 Aug 2011 04:47:48 +0000 |
parents | eb3fcac8a407 |
children | 74438c570949 |
files | xml/en/docs/welcome_nginx_facebook.xml xsls/content.xsls xsls/style.xsls |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/welcome_nginx_facebook.xml +++ b/xml/en/docs/welcome_nginx_facebook.xml @@ -8,7 +8,8 @@ <section> -<para initial="Q:"> +<para> +<initial>Q:</initial> I am trying to open Facebook, Yahoo!, Google, or some other well known web site and instead I am getting a blank web page with a message referring to nginx: “Welcome to nginx!” or @@ -26,7 +27,8 @@ to Facebook (Yahoo!, Google, etc.) ? </para> -<para initial="A:"> +<para> +<initial>A:</initial> nginx is among the 3 most popular web servers in the world. It is a free open source software which is absolutely legitimate and has nothing to do with any kind of threatening or malicious activity per se.
--- a/xsls/content.xsls +++ b/xsls/content.xsls @@ -18,12 +18,9 @@ X:template = "item/para" { <p class="noi X:template = "para[@align]" { <p align="{@align}"> !!; </p> } -X:template = "para[@initial]" { - <p class="noindent"> - <span class="initial"><b> !{@initial} X:text{ } </b></span> - !!; - </p> -} +X:template = "para[child::initial]" { <p class="noindent"> !!; </p> } + +X:template = "initial" { <span class="initial"><b> !!; </b></span> } X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> }
--- a/xsls/style.xsls +++ b/xsls/style.xsls @@ -8,7 +8,8 @@ X:template style (lang) { p { text-align: justify; } p { text-indent: 20pt; } p.noindent { text-indent: 0pt; } - span.initial { font-size: 200%; float: left; padding-right: 5pt;} + span.initial { font-size: 200%; + float: left; padding-right: 10pt;} li { text-align: justify; } td.list { background: #EEEEEE; } blockquote.note { text-align: justify; }