Subject: Re: [xsl] CRLF in xslt in Firefox and IE From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 6 Jul 2005 22:04:40 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] CRLF in xslt in Firefox and I, Manfred Staudinger | Thread | Re: [xsl] CRLF in xslt in Firefox a, Manfred Staudinger |
[xsl] CRLF in xslt in Firefox and I, Manfred Staudinger | Date | Re: [xsl] CRLF in xslt in Firefox a, Manfred Staudinger |
Month |