Bug 148641 - XML stylesheet is ignored
Summary: XML stylesheet is ignored
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml xml (show other bugs)
Version: 3.5
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 14:54 UTC by Jan Novak
Modified: 2012-06-18 14:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Novak 2007-08-08 14:54:12 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Slackware Packages
Compiler:          gcc 3.4.6 
OS:                Linux

Please open my XHTML 1.1 valid site http://freez.security-portal.cz in konqueror and look, it will be rendered without any stylesheet, but as you can see, I use <?xml-stylesheet type='text/css' href='http://freez.security-portal.cz/templates/freez/css/style1.css'?>

Both of Opera and Gecko renders my site properly. Is it possible to fix khtml, which is ignoring xml-stylesheet? http://www.w3.org/TR/xml-stylesheet/

Thanks for any response
Comment 1 Maksim Orlovich 2007-08-08 16:45:06 UTC
Uhm, you're serving this as text/html, so not showing the stylesheet is the proper behavior. Of course, if you gave us the same mimetype as mozilla, application/xhtml+xml it won't work right since that currently uses the wrong parser :( It should spottily work with text/xml, but there are bugs with that (see #115882), and that code needs a big rework (shame I forgot most of what it does by now :( )... Man, this bug report is like a big TODO list for me..
Comment 2 Allan Sandfeld 2007-12-05 11:40:15 UTC
Anyway what is need to get the right mimetype server? 

Do we need an accept-header we can set somewhere?
Comment 3 Jan Novak 2007-12-06 17:42:18 UTC
KHTML should send the accept-header with at least application/xhtml+xml,text/html,application/svg+xml,application/xml,text/xml
Comment 4 Myriam Schweingruber 2012-06-18 14:11:42 UTC
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.