Open ebeshero opened 2 years ago
And that hack didn't actually work. Here are the relevant output lines in the HTML:
<link rel="stylesheet" href="../../../output/css/diff.css" type="text/css"><!----></link>
<script src="../../file:/Users/eeb4/Documents/GitHub/fv/TAN-2021/applications/Diff+/output/js/jquery.js"><!----></script>
<script src="https://d3js.org/d3.v5.min.js"><!----></script>
<script src="../../file:/Users/eeb4/Documents/GitHub/fv/TAN-2021/applications/Diff+/output/js/venn.js/venn.js"><!----></script>
The filepath gets interpreted as absolute by the JS parameters.
(Fixed for myself by plugging in a literal relative filepath to bypass the js parameters.)
Hi @ebeshero , I think the problem here is that your patch tried to prepend a relative path to an absolute one.
Have you tried adjusting the global parametr $output-javascript-library-directory-uri
?
@Arithmeticus Happy to report that JS for the Venns is now working for me, but there's an odd XSLT issue.
$resolved-uri-to-diff-css
points without issue to my saved output (tucked inside/applications
), but none of the JS variables do. I've remedied it with a simple patch that works for me, but I'm not sure why the other variables don't succeed in resolving the way the CSS does.My patch (works for me / highlights the problem variables):