Re: Replace Special Characters: return, blank and tab
> 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!
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format