Re: [xsl] zero width no-break space to prevent tag minimisation

Subject: Re: [xsl] zero width no-break space to prevent tag minimisation
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 16 Oct 2008 17:28:53 +0100
> The filename extension is ".xhtml".

so it depends on the local customisation whther this is parsed as xml or
html.

To see what IE does if it is served was XML, rename the file to .xml and
try that.

It is possible to get IE to both use a real XML parser and to render the
thing as xhtml but (to return to the topic of this list) you either need
to style it with xsl (an identity transform will do)  or tou use the
xhtml+mathml doctype and have mathplayer loaded.

> delivered on-the-fly, but authors doing a preview had the rendering 
> problem with the bleeding formatting properties.

if IE was recognising it as _html_ at all then it must have been parsing
it as html, in which case, the XML dtd referenced and most other XML
syntax is an HTML syntax error so you can't really complain if an html
system does the wrong thing. You could complain that IE doesn't yet
include an xhtml system, but that's a different matter. Even firefox
(which does have native xhtml support) does _not_ use it on files that
look like xhtml if they are served as text/html, it uses its lax html
parser and does whatever it does. If on the other hand it is served with
an xml mime time an xml parser is used.

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread