publication version of 18dotd
[project-aon.git] / xhtml-mongoose.xsl
index b10c54b..b8b2f9a 100644 (file)
@@ -9,6 +9,9 @@
 $Id$
 
 $Log$
+Revision 1.5  2007/02/02 20:04:28  jonathan.blake
+Correction to handling line elements
+
 Revision 1.4  2006/12/20 00:15:04  jonathan.blake
 Updated to handle the new capabilities in version 0.12.1 of the Gamebook DTD.
 
@@ -1060,7 +1063,8 @@ Todo:
 </xsl:template>
 
 <xsl:template match="line">
- <xsl:apply-templates /><br />
+ <xsl:apply-templates />
+ <xsl:if test="position( ) != last( )"><br /></xsl:if>
 </xsl:template>
 
 <xsl:template match="br">
@@ -1193,8 +1197,8 @@ is included in all copies.
 <xsl:template match="ch.minus">&#8722;</xsl:template><!-- mathematical minus -->
 <xsl:template match="ch.endash">&#8211;</xsl:template><!-- endash -->
 <xsl:template match="ch.emdash">&#8212;</xsl:template><!-- emdash -->
-<xsl:template match="ch.ellips">&nbsp;&#8230;</xsl:template><!-- ellipsis -->
-<xsl:template match="ch.lellips">&#8230;&nbsp;</xsl:template><!-- left ellipsis, used at the beginning of edited material -->
+<xsl:template match="ch.ellips">&#8230;</xsl:template><!-- ellipsis -->
+<xsl:template match="ch.lellips">&#8230;</xsl:template><!-- left ellipsis, used at the beginning of edited material -->
 <xsl:template match="ch.blankline">_______</xsl:template><!-- blank line to be filled in -->
 <xsl:template match="ch.percent"><xsl:text>&#37;</xsl:text></xsl:template><!-- percent sign -->
 <xsl:template match="ch.thinspace"><xsl:text>&#8201;</xsl:text></xsl:template><!-- small horizontal space for use between adjacent quotation marks - added mainly for LaTeX's sake -->