Hello,
I fell into the following problem when using ditac to create chm file.
Please advise.
Many thanks
3mime

*INPUT*:
X:\xmldocTest\System\tools\ditac-1_2_0\bin>ditac.bat -hhc "C:\Program
Files\HTML Help Workshop\hhc.exe"
\\goaer12a\Group\Asmes_doc\xmldocTest\Projects\TEST\POMB2MML\output\chm\POMB2MML.chm
\\goaer12a\Group\Asmes_doc
\xmldocTest\Projects\TEST\POMB2MML\output\dita\POMB2MML.ditamap

*OUTPUT*:
ditac: ERROR: fatal error reported by the XSLT engine: Exception thrown by
OutputURIResolver; SystemID: file:/X:/xmldocTest/System/tools/ditac
-1_2_0/xsl/htmlhelp/htmlhelp.xsl; Line#: 46; Column#: -1
ditac: ERROR: cannot transform
"\\goaer12a\Group\Asmes_doc\xmldocTest\Projects\TEST\POMB2MML\output\chm\POMB2MML__7422134142688787902_chm\POMB
2MML.ditac" to
"\\goaer12a\Group\Asmes_doc\xmldocTest\Projects\TEST\POMB2MML\output\chm\POMB2MML__7422134142688787902_chm\POMB2MML.html"
using
 file:/X:/xmldocTest/System/tools/ditac-1_2_0/xsl/htmlhelp/htmlhelp.xsl:
Exception thrown by OutputURIResolver

I think this error is due to the chm file provided as UNC path (see red). In
fact, when I use the following:
*INPUT*:
X:\xmldocTest\System\tools\ditac-1_2_0\bin>ditac.bat -hhc "C:\Program
Files\HTML Help Workshop\hhc.exe"
X:\xmldocTest\Projects\TEST\POMB2MML\output\chm\POMB2MML.chm\\goaer12a\Group\Asmes_doc\xmldocTest\Projects\TEST\POMB2MML\output\dita\POMB2MML.ditamap

ditac does not throw any error and works fine.

The problem does not happen when trying to get a PDF file, because ditac
correctly recognises UNC path and succeeds by defaulting to Windows
directory. In fact, using the following input:

*INPUT*:
X:\xmldocTest\System\tools\ditac-1_2_0\bin>ditac.bat -xep "C:\Program
Files\RenderX\XEP\xep.bat"
\\goaer12a\Group\asmes_doc\xmldocTest\Projects\TEST\POMB2MML\output\pdf\POMB2MML.pdfX:\xmldocTest\Projects\TEST\POMB2MML\output\dita\POMB2MML.ditamap

*OUTPUT*:
ditac: ERROR:
'\\goaer12a\Group\ASMES_DOC\xmldocTest\Projects\TEST\POMB2MML\output\pdf'
ditac: ERROR: CMD.EXE was started with the above path as the current
directory.
ditac: ERROR: UNC paths are not supported.  Defaulting to Windows directory.

and the pdf file is correctly created
 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to