Thanks Marvin.
The issue got resolved by changing to xsl:output method="xml" which was initially xsl:output method="html".But I still wonder  how it worked with Saxon8.4.
 
Thanks,
Divya
 

From: Marvin Reimer [mailto:therealmarv@googlemail.com]
Sent: Wednesday, June 08, 2011 4:36 PM
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: Re: [saxon] XSLT throwing Illegal HTML character exception

Just an idea, do not know if it works:

Use this at the beginning of the stylesheet

<xsl:output method="xml" cdata-section-elements="TRANSACTION_MSG"/>

and remove the CDATA xsl:text part.

2011/6/8 Jayarajan, Divya <Divya.Jayarajan@ncr.com>
Hi ,
We have currently upgraded to a product that internally uses Saxon8.9.Earlier version used Saxon 8.4. One of the XSLT files is throwing an exception 'net.sf.saxon.trans.DynamicError: Illegal HTML character: decimal 137 ' with Saxon8.9 but it worked fine with Saxon8.4.
The xml that is being used is:
<ORIGINALMESSAGE>ST[28]RUSROSLH[29]TranType[28]01[29]CallType[28]2[29]CallerPhone[28]495-363 02 90[29]CallerName[28]avis ·´&#137;´½&#128;» &#132;²°&#131;[29]AssetID[28]S1ATM003[29]CallRef[28]ROAV031703[29]ProblemDesc[28]&#132;&#131;·&#137;»´³&#132;&#139;²º&#131;¿¼&#129;²&#132;°&#131; ¸&#132;°²º&#131; &#132;²&#139;º&#134;·&#137; ´»´&#137; ·&#137;´»³¾»²[29]Text[28]Additional Problem Description &#131;&#139;&#132;²º ·&#137;´&#136;»[29]Priority[28]2[29]StatusBytes[28]D12*000**G0*2*0002000000*2111[29]SE[28]RUSROSLH[29]</ORIGINALMESSAGE>
The XSLT code is :
<xsl:variable name="ORIGINALMESSAGE" select="//ORIGINALMESSAGE"/>
<TRANSACTION_MSG type="CLOB" dir="IN">
        <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
                <xsl:copy-of select="$ORIGINALMESSAGE"/>
        <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</TRANSACTION_MSG>
 
Please let me know what is done wrong here.
Thanks,
Divya
 
 
 
 
 
 
 

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help