Re: [xsl] Unicode character decimal representation problem when copying the XML

Subject: Re: [xsl] Unicode character decimal representation problem when copying the XML
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 13 Oct 2010 17:50:10 +0200
Pradnya Gawade wrote:

I am trying to copy the input XML to output, so basically output
should be same as input. The problem is that the Unicode character
decimal representations get converted to corresponding characters in
the generated xml. e.g. 'n&#250;mero' get converted to 'nzmero'. I
don't want this to happen. I tried lot of things related to output
method, encoding, saxon extension attributes etc but problem is not
resolved. I use SAXON 9.2 XSLT transformer. Following is my XSLT code:

Please suggest what can solve the problem.

You would need to use http://andrewjwelch.com/lexev/ to process the XML so that character references are transformed into elements and attributes your XSLT stylesheet can operate on.


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread