Subject: RE: [xsl] Replace new lines by <br> and double quote with special char: Problem retaining HTML tags From: <Ambika.Das@xxxxxxxxxxxxxxxxxx> Date: Mon, 11 Sep 2006 18:42:56 +0530 |
Hi David, It works now. Thanks. I want to replace the double quotes (") in the XSL by double double quotes (""). This is to ensure CSV compliance. I am using the following code for replacing double quote. <xsl:when test="contains($StringToTransform,'"')"> <xsl:value-of select="substring-before($StringToTransform,'"')"/>""<xsl:call-temp late name="transformXMLString"> <xsl:with-param name="StringToTransform"> <xsl:value-of select="substring-after($StringToTransform,'"')"/> </xsl:with-param> </xsl:call-template> </xsl:when> But the double quotes are not getting replaced with double double quotes. This leads to non compliance in CSV format. Again the same double quote is coming. Please let me know if the above information is sufficient. Thanks & Regards, Ambika Prasad Das -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Monday, September 11, 2006 1:40 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Replace new lines by <br> and double quote with special char: Problem retaining HTML tags That was not the code I posted, which also had this <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> The code you posted had no templates that generated or copied element nodes, so you get no nodes in the output.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Replace new lines by <br>, David Carlisle | Thread | Re: [xsl] Replace new lines by <br>, David Carlisle |
Re: [xsl] XSL:problem printing the , Mukul Gandhi | Date | Re: [xsl] Replace new lines by <br>, David Carlisle |
Month |