When Firefox attempts client-side xsl transformation, a mime-type security error is raised due to the naming of
the VERSION file in the root of the docbook-xsl install:
On my Debian box it is: ../nwalsh/VERSION
VERSION is an xsl file, and Firefox complains that the mime-type is not correct for an xsl file due to the missing .xsl file extension. The error message shows in the main browser window as:
**begin error message
Error loading stylesheet:
An XSLT stylesheet does not have an XML mimetype:
**end error message
My work-around is to rename /../VERSION to
/../VERSION.xsl and update /../html/docbook.xsl to reflect the name change:
**begin code change
-- <xsl:include href="../VERSION"/>
++ <xsl:include href="../VERSION.xsl"/>
**end code change
The problem occurs in Firefox 2.x, and 3.0 for both windows and linux and probably also affects any other browser that uses the Transformiix xslt engine, i.e., Opera. Happens whether xml is served via apache or opened locally on the server.
Using docbook-xsl version 1.74.0 without any customization aside from the file rename mentioned above. Debian etch, apache 2.2, docbook DTD version 4.4. Happens with any and all requests for client-side transformation using the ../html stylesheets and Firefox. IE seems to ignore the issue at the moment.
Thanks for the great work,
Log in to post a comment.