|
Subject: Re: [xsl] CRLF in xslt in Firefox and IE From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 6 Jul 2005 23:26:58 +0100 |
I can confirm that you get CRLF in IE and LF in mozila.
It's clear that IE is wrong here but it _isn't_ wrong because it has
left CRLF pairs in the input (that would be terribly broken and would
have been reported here before now)
If you add
[<xsl:value-of select="string-length('
')"/>]
to your stylesheet you will see you get the value 2 from a conformant
system and 1 from IE.
msxml is normalizing the #10#13 pair even though it is in the
stylesheet as character references. so the XPath test that is actually
being done when you do
<xsl:when test="contains(string(doc),'
')">
in IE is actually
<xsl:when test="contains(string(doc),'
')">
This is incorrect but doesn't hit you in real stylesheets as you don't
normally test for #10#13 pairs as you "know" they are not there....
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 -> |
|---|---|---|
| Re: [xsl] CRLF in xslt in Firefox a, Manfred Staudinger | Thread | Re: [xsl] CRLF in xslt in Firefox a, Manfred Staudinger |
| Re: [xsl] CRLF in xslt in Firefox a, Manfred Staudinger | Date | [xsl] fillng some table cells, Gerardo |
| Month |