generator: normalize whitespace in text format
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 11 Jul 2013 18:31:52 +0200
changeset 2500f9a66da2eb
parent 24 8d8a54855514
child 26 cf21d062a601
generator: normalize whitespace in text format
java/dictionary-generator/concept.m.xsl
     1.1 --- a/java/dictionary-generator/concept.m.xsl	Thu Jul 11 18:31:29 2013 +0200
     1.2 +++ b/java/dictionary-generator/concept.m.xsl	Thu Jul 11 18:31:52 2013 +0200
     1.3 @@ -29,7 +29,7 @@
     1.4  			<xsl:for-each select="d:explanation">
     1.5  				<xsl:if test="normalize-space(.)">
     1.6  					<xsl:text>&#10;</xsl:text>
     1.7 -					<xsl:apply-templates/>
     1.8 +					<xsl:apply-templates select="."/>
     1.9  					<xsl:text>&#10;</xsl:text>
    1.10  				</xsl:if>
    1.11  			</xsl:for-each>
    1.12 @@ -44,5 +44,9 @@
    1.13  				</xsl:for-each>
    1.14  			</xsl:if>
    1.15  	</xsl:template>
    1.16 +	
    1.17 +	<xsl:template match="d:explanation">
    1.18 +		<xsl:value-of select="normalize-space()"/>
    1.19 +	</xsl:template>
    1.20  
    1.21  </xsl:stylesheet>