Hello,

I am actually trying to use setStylesheetParam to replace certain parameters
in an XSL at runtime

My xsl looks like

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:param name="msg" select="'default value'"/>
<xsl:template match="doc">
<out><xsl:value-of select="$msg" disable-output-escaping="yes"/>
</out>
</xsl:template>
</xsl:stylesheet>

The actual value i am trying to set for "msg" param is a long html string
and i want this string to appear literally(without any loss of characters)

the string i have is 

"<p></p>
<a href="adsad> another quote</a>
<p></p>
<hr color="#999999" size="1">
<span class="f1"><sup>&copy;</sup>2001  All
                        rights reserved. This message is for informational
purpo
ses only. The
                        information contained in this message does not
consti
tute a recommendation
                        Information about your account in certain
SmartAlerts me
ssages may travel
                        through a non-encrypted medium and may be accessed
by un
authorized parties.
                        We cant respond to e-mails sent t
o this mailbox. If
                        you have questions, please contact us through the
                        </span>"


When i try to use setStyleSheetParam, during the transformation i get the
following error
"Extra illegal tokens!\npattern=' '


Is there a set of special characters, that cant be used in
setStyleSheetParam? if so, what are they? and what could be the workaround
so that any  character can be made to appear literally?

Any help would be highly apprciated!

Thanks in Advance,
Arun

Reply via email to