Empty line before paragraph, should it be after ?

Julien Lamy <[email protected]> Wed, 17 Nov 2004 14:09:04 +0100
Newsgroups gmane.text.docbook.db2latex.general
Message-ID <1100696944.16173.16.camel@localhost>
Hello,
The XSL template for <para> elements puts an empty line before the
generated paragraph text. I noticed that this can messes the page layout
when the paragraph follows a section title.

The LaTeX code generated is something along the lines of :
<code>
\section{Some title}
% empty line
Some stuff, first paragraph
% empty line
Some other stuff, next paragraph
</code>

If the section is placed near the bottom of a page, the title can be
orphaned at the bottom of a page, while the paragraph is on the next
page. On the other hand, if the code is :
<code>
\section{Some title}
Some stuff, first paragraph
% empty line
Some other stuff, next paragraph
% empty line
</code>
the layout is OK.

It can be resolved by changing the para template to :
<code>
<xsl:template match="para|simpara">
	<xsl:apply-templates/>
	<xsl:text>&#10;</xsl:text>
	<xsl:text>&#10;</xsl:text>
</xsl:template>
</code>

Was it an intended feature ? 

-- 
Julien Lamy <[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8