![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Problem with IE6 [Thread Next] Re: Problem with IE6To: 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>
</xsl:text> (or was it <xsl:text>
</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> </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
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
