Subject: Re: [xsl] zero width no-break space to prevent tag minimisation From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 16 Oct 2008 11:56:19 -0400 |
Andrew> I don't think it's a bug... as far as I understand, IE Andrew> will always use its SGML parser regardless of whether its Andrew> parsing html or xhtml, and because of that <div/> is
This isn't strictly true if you do the right thing and send xhtml with an xhtml or xml mime type IE does use its XML parser. It just doesn't render the result the way you expect by default, it renders it as a folding xml source tree.
< ?xml version="1.0" encoding="utf-8"?> < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> < html xmlns="http://www.w3.org/1999/xhtml"> < head> < title>test< /title> < meta http-equiv= "Content-type" content='text/html; charset="utf-8"' /> < /head> < body> < div>Div is normal< /div> < div style="font-style:italic">Div is italic< /div> < div style="text-decoration:underline" /> < div>No underline< /div> < div style="font-weight:bold">< /div> < div>No underline or bold< /div> < /body> < /html>
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video sample lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg Video course overview: http://www.youtube.com/watch?v=VTiodiij6gE G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] zero width no-break space, David Carlisle | Thread | Re: [xsl] zero width no-break space, David Carlisle |
[xsl] Expensive XSLT2 - suggestions, Michael Müller-Hille | Date | Re: [xsl] Expensive XSLT2 - suggest, David Carlisle |
Month |