[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Unicode character decimal representation problem w

Subject: Re: Unicode character decimal representation problem when copying the XML
From: Pradnya Gawade <pradnya.gawade7@xxxxxxxxx>
Date: Wed, 13 Oct 2010 13:28:28 -0400
Re:  Unicode character decimal representation problem w
Thanks Martin, David and Gerrit.

I am trying to use LexEv with saxon but finding problem running it on
command. I will try to overcome it. I have mentioned the details at
the end.

Using character set as suggested by Gerrit solved the problem for
apostrophe but I think there might be problem with another ascii
characters if they appear in the xml.

I will update about use of LexEv for the problem once I use it successfully.

Details of problem when using  LexEv with saxon:
I use following command to run saxon 9.2 from command prompt to do the
xslt transformation:
java -jar saxon9he.jar -t -s:input.xml -xsl:stylesheet.xsl -o:output.xml

I am not successful in specifying LexEv.jar (in addition to
saxon9he.jar) with either -cp or -jar option. -jar doesn't allow
specifying more than one jar files and saxon doesn't run with -cp
option.

Thanks,
Pradnya




On Wed, Oct 13, 2010 at 11:50 AM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.