xsltproc cannot create new files on Windows
I am trying to transform a small DocBook document (in attachment) into ePub using the standard DocBook XSLT 1.0 stylesheets (1.79.2, https://github.com/docbook/xslt10-stylesheets). These stylesheets require a parameter base.dir
for the output folder. I am getting this kind of errors:
I/O error : No such file or directory xsltDocumentElem: unable to save to C:/Users/Thibaut/AppData/Local/Temp/tmp6c2i6a7h/OEBPS/package.opf
For this example, the temporary folder has been created through Python (tempfile.mkdtemp()
), but I get the same problems if I output in a folder I create manually (in my documents folder).
Some files can be created (like mimetype
), but not others (like package.opf
or the HTML files), in a very deterministic way.
I already tried to pass the folder base.dir
with slashes or backslashes, this has no effect. There is no space in the folder name or in the file name, so that this is distinct from #27 (closed) and #48.
I tried several versions of xsltproc: the outdated 1.1.28 from https://www.zlatkovic.com/projects/libxml/index.html or https://github.com/CoppeliaRobotics/xsltproc-win, 1.1.33, 1.1.34 built off https://github.com/kiyolee/libxslt-win-build. None of them worked.