Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Cannot output CRLF

From: Owen Rees <owen.rees@------>
To:
Date: 5/3/2006 8:48:00 AM
--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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent