Please ignore the mail i sent which has been attached below. i got the problem almost solved with disable-output-escaping="yes". But even when i set this attribute, it doesnt allow single quotes, when i use setStylesheetParam
Are there any other special characters, that cant be literally passed on to the output? Is there a workaround to pass single quotes literally? Thanks Arun -----Original Message----- From: Arun Ramdas Sent: Friday, February 01, 2002 11:55 AM To: '[email protected]' Subject: Question on setStyleSheetParam I have a requirement where i need to replace about 3 params in the XSL with the desired values, before doing the transformation. for example PARAM1 MKT message PARAM2 legal message PARAM3 some additional information I thought of using setStyleSheetParam, before the transformation. But one problem i came across was that, in case the MKT message or any other resultant string is in "HTML" format, After the transformation, i see all html tags with < and > symbols replaced with > < respectively. Is there a way to overcome this? Example <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="param5" select="'default value'"/> <xsl:template match="doc"> <out><xsl:value-of select="$param5"/></out> </xsl:template> </xsl:stylesheet> i passed the value of param5 as "<html> hello </html>" i got the result as <out><html> hello </html></out> but i want it as <out><html> hello </html></out> As an alternative, can i search and replace these strings (using normal c string operations), after i transform the message. Ur inputs are highly appreciated Arun
