The following template attempts to convert new-lines to <br/> elements. Unfortunately, all this does is delete the new-line characters.
Changing the br param to be a value other than an html element (#br/# for example) results in the desired execution. I believe this worked as one point because it is part of the ANT junitreport processing. It acts as if the replacement string is empty, or that the replace function is not finding a corresponding entry in the replacement node for the match on the new-line. Is there any restrictions on using html elements in the replacement string? <xsl:template name="br-replace"> <xsl:param name="word"/> <xsl:param name="br"><br/></xsl:param> <xsl:value-of select='stringutils:replace(string($word),"
",$br)'/> </xsl:template> Thanks Michael Giroux