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

Re: Cannot output CRLF

Subject: Re: Cannot output CRLF
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 03 May 2006 09:47:16 +0100
xslt output crlf
--On Tuesday, May 02, 2006 13:29:01 -0400 Paul Venuti wrote:

From all the posts I've seen on this list, this should work. But when I
view
the resulting file in hex, this is what I get:

Code:

48 65 6C 6C 6F 2E 0A

So that's H E L L O [LF]. What happened to the CR (0D)? I've tried this
with both Saxon 8.6.1 and Xalan 2.7.0 ... same results.

Running Saxon 8.7.1 from the command line ...


sh-3.00$ java -jar saxon8.jar -o text-out.txt textout.xslt textout.xslt
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
sh-3.00$ od -t x1 text-out.txt
0000000 48 65 6c 6c 6f 2e 0d 0a
0000010
sh-3.00$ od -t c text-out.txt
0000000   H   e   l   l   o   .  \r  \n
0000010
sh-3.00$

textout.xslt contains the stylesheet cut and pasted from your message then edited to remove the spaces in the xsl:text element.

That output was cut/paste from a run on Linux but I got the same result on Windows XP.

How are you invoking your XSLT processor?

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK

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.