docbook / xslt10-stylesheets

XSLT 1.0 Stylesheets for DocBook
97 stars 76 forks source link

Avoiding a MIME type restriction in the Safari browser #222

Open gkholman opened 3 years ago

gkholman commented 3 years ago

Safari cannot utilize the DocBook XSLT stylesheets due to a browser MIME-type restriction.

Ref: https://github.com/docbook/xslt10-stylesheets/issues/220

The issue with Safari is that between 1.69.1 and 1.78.1 the common entities file "entities.ent" was introduced into the architecture. Safari does not permit any MIME type associated with the ".ent" file extension. When I rename the file and all references to "entities-ent.xml", Safari presents the content of my XML file without errors.

I know that the current DocBook library use of "entities.ent" is fully conformant, but I would hope that you would consider a global renaming of the file and the references from "entities.ent" to be "entities-ent.xml" to be palatable to the browser.

This change doesn't impact on any other conformant XSLT implementation, but it allows this library to be used in an environment where file access is restricted by associated MIME type.

Thank you.

. . . . . . Ken

p.s. in my Googling I cannot find any way of giving Safari permission to permit the MIME type associated with ".ent" files. If anyone knows how to do that, it would be a workaround.

gkholman commented 3 years ago

Test files in this ZIP: https://www.oasis-open.org/committees/document.php?document_id=68209

gkholman commented 3 years ago

Belay this a bit, please. While the page now is displaying, the localization has disappeared. all translated strings now are empty. I'll attach more to this ticket as I find it.