You should subscribe to and post generic XSLT questions on the Mulberry XSL list. You'll find answers to this exact question and many others by reading the FAQs, searching the archives, and by posting messages:
http://www.mulberrytech.com/xsl/ When you need to use disable-output-escaping you are likely misusing the language. XSLT is designed to work with temporary trees which are then serialized to markup, not strings containing serialized markup. Trying to work around that using disable-output-escaping is usually a bad idea and often does not work. There are several good books on XSLT which can help you figure out how to do this sort of thing. You will never get this to work with strings containing serialized HTML. Dave Arun Ramdas <[EMAIL PROTECTED] To: [email protected] com> cc: Subject: FW: Question on setStyleSheetParam 02/04/2002 10:54 AM 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
