TEIC / Stylesheets

TEI XSL Stylesheets
231 stars 124 forks source link

To what should relative $cssInlineFiles be relative to? #538

Closed sydb closed 1 year ago

sydb commented 2 years ago

According to the last entry in the CSS-related parameter table in the documentation, the $cssInlineFiles parameter should be a URI that points to a CSS file. (The contents of this file get copied into a <style> element in the output of profiles/default/html5/to.xsl.)

If I provide a relative URI (either with or without a leading ./), it looks for a CSS file relative to the Stylesheets/html/ directory, not to either the input document directory (which is what I expected at first) nor to the XSLT file’s directory (which is profiles/default/html5/).

I do not think this is the right behavior, but I do not know what is, either.

sydb commented 1 year ago

Stylesheets group thinks the expedient solution for now is to update the documentation so that it tells the user to what directory the file is relative. Sometime later we can try to make it relative to the user’s current directory, or if that is impossible, to the input document. (And change the documentation to match.)

sydb commented 1 year ago

@peterstadler at Stylesheets group meeting found the spot in documentation we need to change (Stylesheets/html/html_param.xsl l. 124). @sydb to correctly check-in change we made during meeting.

HelenaSabel commented 1 year ago

Stylesheets Group checked that the improvement of the documentation was done correctly.