Version: 3.5 (using KDE 3.5.0, Debian Package 4:3.5.0-3 (testing/unstable)) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.14-1-686 konqueror ignores the alternate attribute for stylesheets in XML. For instance the following lines in a xml header: <?xml-stylesheet title="1" href="s1.css" type="text/css"?> <?xml-stylesheet alternate="yes" title="2" href="s2.css" type="text/css"?> entails that 2 stylesheets are available, the first one being the default, the second one being alternate. So konqueror should propose to choose between them in its stylesheet menu. But it simply concatenates the two stylesheets into one and apply everything at once. By the way, if the second stylesheet is absent, the document is not rendered at all.
Created attachment 14352 [details] Test case (xml file) Really simple xml to show the problem
Created attachment 14353 [details] First stylesheet
Created attachment 14354 [details] Second stylesheet
This may be similar and/or related: Konqueror does ignore the "alternate" keyword in (x)html stylesheet declarations. Test page: http://www.rorkvell.de/news/RorkvellNews.html. Header excerpt: <link type="text/css" rel="stylesheet" href="../style/Basic.css"> <link type="text/css" rel="alternate stylesheet" href="../style/Basic/Basic.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/Erz/Erz.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/Eis/Eis.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/Feuer/Feuer.css"> <link type="text/css" rel="stylesheet" media="screen" href="../style/Humus/Humus.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/Luft/Luft.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/Wasser/Wasser.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/System/System.css"> <link type="text/css" rel="alternate stylesheet" media="screen" href="../style/tech/Tech.css"> <link type="text/css" rel="stylesheet" href="../style/special.css"> <link type="text/css" rel="stylesheet" media="print" href="../style/Print.css"> These are many, i know. Konqueror simply mixes randomly the styles for the different parts of the web page so nothing fits together. Best for now would be to simply ignore any "alternate stylesheet".
I just verified this with Safari by using http://www.browsershots.org/
Confirmed on r582187
Confirmed in trunk (kdelibs rev 793966). Side note : there's no way in Konqueror to select the stylesheet to use.
Message from the Bugsquad and Konqueror teams: This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore. If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report. Thank you for your understanding.