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

Re: Representing EBCDIC code 37 in xslt

Subject: Re: Representing EBCDIC code 37 in xslt
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Mon, 30 Dec 2013 20:00:24 +0100
Re:  Representing EBCDIC code 37 in xslt
If your local non-EBCDIC system displays gibberish, that may be fine.

How do you ftp to that mainframe? Do you use binary? If not, why not?

-W


On 30/12/2013, a kusa <akusa8@xxxxxxxxx> wrote:
> Sorry, missed Michael Kay's response.
>
> I am using saxon 9 as the processor for transformation.
>
> And like I said before I cannot set output encoding to ebcdic for the
> whole document. Is there any other way to do it?
>
>
>
> On Mon, Dec 30, 2013 at 12:52 PM, a kusa <akusa8@xxxxxxxxx> wrote:
>> Hi Michael:
>>
>> Thanks for your quick response. I did mention that I tried utf-8 and
>> iso-8859-1 encoding. I cannot set the whole encoding to EBCDIC since
>> that will change all the other text to gibberish.
>>
>>
>>
>> On Mon, Dec 30, 2013 at 12:04 PM, Michael Sokolov
>> <msokolov@xxxxxxxxxxxxxxxxxxxxx> wrote:
>>> Sorry for stating the obvious, but you didn't say what output encoding
>>> you
>>> have.  Have you tried
>>>
>>> <xsl:output method="text" encoding="ebcdic" />
>>>
>>>
>>> ?
>>>
>>> -Mike
>>>
>>>
>>> On 12/30/2013 09:50 AM, a kusa wrote:
>>>>
>>>> Hello:
>>>>
>>>> I have an issue with representing EBCDIC code 37 in XSLT. I am
>>>> converting an XML file to a flat file and ftping from unix to
>>>> mainframe. I am not sure where to start debugging this issue. Here is
>>>> the issue:
>>>>
>>>> I have latin-1 special characters like the plusminus sign, the
>>>> registered trademark, fraction one half that I need to convert to
>>>> EBCDIC code 37 values. I am using xslt 2.0. So I have an output
>>>> character map defined for these special characters. So I have:
>>>>
>>>> <xsl:output-character character="." string="&#175;"/>
>>>>
>>>> As you can see from my example, I have tried the exact EBCDIC value.
>>>> When this converts into a text file which is what I am doing, I get
>>>> this strange gibberish character in the output -..
>>>>
>>>>
>>>> But when I view it on the mainframe server, it is converted to a
>>>> period(.)
>>>>
>>>> I have tried using encoding in utf-8 and iso-8859-1. Nothing works.
>>>>
>>>> Is there anything I can do in XSLT 2.0 to convert these characters
>>>> into the right format that mainframe accepts?
>>>>
>>>> Any tips?
>>>>
>>>> Thanks.

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-2013 All Rights Reserved.