One thing we have to be particularly careful about is Internet
Explorer's parsing of XML statements at the top. If I had a say, I would
put the guy who wrote IE parser to the pillory so everybody can throw
rotten eggs at him. :-)

This prologue works in IE:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="./lyx.css" type="text/css"?>
<!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"; lang="en" xml:lang="en">

as it should one would say. Not so fast Johnny.

If you make _one more space_ between "DOCTYPE html" and "PUBLIC" the
page looks like a huge single paragraph, underlined, unpredictable
colour.

If you add one more stylesheet (as we needed to do) below the first one.

<?xml-stylesheet href="./pinmenu.css" type="text/css"?>

the same ugly result. Then I tried moving both stylesheet lines below
DOCTYPE instruction. No joy. I tried everything on the same line, to no
avail.

Finally, I moved them below <html ...> tag.

<?xml version="1.0" encoding="iso-8859-1"?>
<!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"; lang="en" xml:lang="en">
<?xml-stylesheet href="./lyx.css" type="text/css"?>
<?xml-stylesheet href="./pinmenu.css" type="text/css"?>

It works! It even validates. But as far as I know <?xml* ...> should come
_before_ the first tag.

The other solution (applied in the first example) is

    cat pinmenu.css >>lyx.css

and use of a single stylesheet. It at least respects the rules.

Allan will probably decide which solution we choose.
In my opinion, both are just workarounds. The first one respects the
before-first-tag rule, but is inflexible since we always have to keep a
single stylesheet. The second is a real workaround, and it's not clear
to me how this can validate (and it does).

And yes, _NO OTHER BROWSER_, including the lame Netscape 4.x, had any
problems with parsing:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="./lyx.css" type="text/css"?>
<?xml-stylesheet href="./pinmenu.css" type="text/css"?>
<!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"; lang="en" xml:lang="en">

Microsoft, should I say more...

-- 
Zvezdan Petkovic <[EMAIL PROTECTED]>
http://www.cs.wm.edu/~zvezdan/

Reply via email to