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	Thu Aug 25 19:39:02 2011 +0000
+++ b/xml/en/docs/welcome_nginx_facebook.xml	Fri Aug 26 04:47:48 2011 +0000
@@ -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 @@
 &nbsp;
 </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	Thu Aug 25 19:39:02 2011 +0000
+++ b/xsls/content.xsls	Fri Aug 26 04:47:48 2011 +0000
@@ -18,12 +18,9 @@
 
 X:template = "para[@align]" { <p align="{@align}"> !!; </p> }
 
-X:template = "para[@initial]" {
-    <p class="noindent">
-    <span class="initial"><b> !{@initial} X:text{&#xA0;} </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	Thu Aug 25 19:39:02 2011 +0000
+++ b/xsls/style.xsls	Fri Aug 26 04:47:48 2011 +0000
@@ -8,7 +8,8 @@
         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; }