but your code had
<xsl:with-param name="pattern" select="' '"/>
<xsl:with-param name="replacement" select="'"/>
ie replacing #13 by nothing.
This is why I use this test:
<xsl:when test="$replacement != ''">
to insert a break: <br/>.
Otherwise, I don't know how to insert "<" and ">" without escaping them,
once i escaped them, theoutput html will escape them too. they lose their
function as a break.
It is a good idea to match the " " too, but now I cannot even make the
" " working, which I am sure is in the input file, because the content
from <p>hereIAm</p> is inserted but the <p> and </p>tags are stripped out.
here is what I get :
hereIAm
package milkway.mybean.rect;hereIAm
import java.beans.PropertyChangeSupport;hereIAm
import java.beans.PropertyChangeListener;hereIAm
import java.awt.Font;hereIAm
import java.io.Serializable;hereIAm
import java.awt.Canvas;hereIAm
but what I want to get is:
<p>hereIAm</p>
package milkway.mybean.rect;<p>hereIAm</p>
import java.beans.PropertyChangeSupport;<p>hereIAm</p>
import java.beans.PropertyChangeListener;<p>hereIAm</p>
import java.awt.Font;<p>hereIAm</p>
import java.io.Serializable;<p>hereIAm</p>
import java.awt.Canvas;<p>hereIAm</p>
Thanks!