[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 21:03:17 +0100
Re:  Representing EBCDIC code 37 in xslt
Setting FTP  transmission mode to ASCII introduces another set of
question marks. Its effect depends on what FTP, for either side, assumes
as the default encoding for ASCII files. If the output of an XSLT transformation
does not agree with what FTP expects, you are in for trouble.
-W

On 30/12/2013, a kusa <akusa8@xxxxxxxxx> wrote:
> Yes, the transformation does run on the unix box after which I FTP to
> mainframe.
>
> I have FTP set to ASCII. I am using <xsl:output-character> to replace
> the latin-1 characters with the equivalent EBCDIC code 037 values.
>
> The output from my transformation is in UTF-8. I have tried setting it
> to ISO-8859-1. That didn't help either.
>
>
> On Mon, Dec 30, 2013 at 1:37 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>>
>> On 30 Dec 2013, at 18:52, 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.
>>>
>>
>>
>> Further to my previous response: you appear to be running the
>> transformation on a Unix box and then doing an FTP of the result to a
>> mainframe.
>>
>> Is the FTP in text mode or binary mode, that is, are you expecting the FTP
>> to do UTF8-to-EBCDIC conversion?
>>
>> If you expect the FTP to do code conversion, then (a) you must configure
>> it correctly to do so, and (b) the output from your transformation must be
>> in UTF8.
>>
>> If you don't expect the FTP to do code conversion, then (a) you need to
>> configure it so it does not do so, and (b) you need to generate the whole
>> output in EBCDIC encoding on the UNIX box, using an appropriate value for
>> <xsl:output encoding="..."/>
>>
>> Michael Kay
>> Saxonica

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.