[Home] [By Thread] [By Date] [Recent Entries]
In XSLT 1.0 you can do it recursively (not tested myself):
<xsl:template name="removelines" > <xsl:param name="text" /> <xsl:choose> <xsl:when test="string-before($text, '
')> <xsl:value-of select="string-before($text, '
')" /> <xsl:call-template name="removelines"> <xsl:with-param name="text" select="string-after($text, '
') /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text" /> </xsl:otherwise> </xsl:choose> </xsl:template> In XSLT 2.0 you can do: <xsl:value-of select="replace(paragraph, '\n', '')" /> Or perhaps (not sure this is more complete): <xsl:value-of select="replace(paragraph, '
|
', '')" /> Cheers, Abel Braaksma http://abelleba.metacarpus.com Mark Peters wrote: Hi,
|

Cart



