java.net.MalformedURLException
logronio opened this issue · 7 comments
I am getting this malformed url error when dita file contains codeblock/codeph. Did I missed some configurations?
Posted below is the error log.
\dita-ot-3.6\plugins\fox.jason.prismjs\xsl\add-code-id.xsl:65:89: Fatal Error! Resolved URL is malformed Cause: java.net.MalformedURLException: unknown protocol: d
Tested with the sample content provided by the plugin and dita-ot 3.6.
Can you run the sample in debug mode (e.g. dita -d -f html5 -i XXX -o YYY
) and paste or attach your debug trace here?
It looks like this is a Window specific bug - the filepath needs adjusting see this
Try altering resource/antlib.xml
as shown here: 31d26a5 - it will attempt to alter the path and provide more debug. The filter mapping may need to be changed to get the right number of slashes in the filepath.
Could you make the change and see if one, two or three slashes are needed.
dita -d -f html5 -i XXX -o YYY
It works with
<pathconvert targetos="unix" property="prism.temp.dir.unix" > <path location="${prism.temp.dir}"/> <filtermapper> <replacestring from="\" to="/" /> </filtermapper> <map from="C:" to="file:///C:"/> <map from="D:" to="file:///D:"/> </pathconvert> <echo level="error" message="${prism.temp.dir.unix}" />
Can this change be included in the future release?
Please reinstall from master
:
dita uninstall fox.jason.prismjs
dita install https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip
And if you can confirm that works I can make a release.
Yes, it works. Thanks!