Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Problem with IE6

From: David Carlisle <david-news@---------.-----.--.-->
To: NULL
Date: 5/4/2008 10:55:00 AM

Dennis wrote:
> On Sat, 03 May 2008 17:54:55 -0400, Dennis <nobody@n...> wrote:
> 
>> On 3 May 2008 21:22:53 GMT, richard@c... (Richard Tobin)
>> wrote:
>>
>>> Try changing this line
>>>
>>> <!DOCTYPE stylesheet [
>>>
>>> to read
>>>
>>> <!DOCTYPE xsl:stylesheet [
>> Still didn't work.
>>
>> Maybe I'll have to try deleting stuff until I get it to work again. This
>> used to work in IE6 until I added some stuff recently. I don't remember
>> the last time I tried it in IE6 though.
> 
> I deleted the...
> 
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY space "<xsl:text> </xsl:text>">
> <!ENTITY cr "<xsl:text>
> </xsl:text>">
> ]>
> 
> ... and deleted all instances of the &cr;. Now it works in IE6. For some
> reason IE6 croaks on this. I might have to go back to using...
> 
> <xsl:text>&#010;</xsl:text> (or was it <xsl:text>&#013;</xsl:text>).
> 
> Should this have caused a problem in IE6?
> 

It's a documented non-conformance of the msxml parser that entity 
replacement texts have to be namespace well formed, with namespaces 
declared within the entity.

I think actually it's anyway better to use <xsl:text>&#10;</xsl:text>
as in an xslt context hiding element structure in entities obscures the
program and makes it harder to follow, especially in terms of white 
space stripping.

<xsl:template match="bbb">
    &cr;
    <xsl:apply-templates...

in the above it's a lot harder for anyone looking at the stylesheet to 
tell if the white space before and after the &cr; is a white space text 
node that will be striped, or a node with non-white characters (from a 
possible entity expansion).

David



-- 
http://dpcarlisle.blogspot.com


transparent
Print
Mail
Digg
delicious
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