Mercurial > hg > nginx-site
diff xsls/content.xsls @ 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 | 2f7420346aee |
children | 9d3403f5204d |
line wrap: on
line diff
--- 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{ } </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> }