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

Re: CRLF in xslt in Firefox and IE

Subject: Re: CRLF in xslt in Firefox and IE
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 6 Jul 2005 22:04:40 +0100
xslt cr lf
   Hi, I'm on win-nt, my xml file has CRLF (xDxA)
   When I run it with a browser, then in the xslt:
   - in firefox-1.0.4 I can only see LF
   - in IE-6 I get CRLF


   Now, I've two questions:
   1. Who got it right according to which specs?

Probably both, but I'm not sure I understand what you mean.
What do you mean by see LF? If you run xslt in a browser you don't
normally see the result of the xslt at all, only see the result
of processing that result in teh html renderer (so any kind of line end
is rendered as a space except in <pre> elements.

   2. Does it matter? I mean are you aware of a situation
      where this can create a problem?

Probably not.

   David Carlisle wrote some years ago on this list: "You are better 
   to use xA rather than xD to denote a new line as all XML parsers 
   normalise CR, LF and CRLF pairs to xA" - I wonder, what about Mac?

That normalisation happens the smae way on all parsers on all platforms.
^M ^J and ^M^J pairs are all reported by an XML parser as a single ^J
no matter what platform you are running on.

So the input tree only ever has #10 (LF) but on serialisation the system
may write out the #10 in any way that would result in a #10 on parsing
so it may write LF or CRLF or CR it may choose which to do depending on
which platform you are on, or not.

   Best regards, Manfred Staudinger, Vienna

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.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.