Similar to http://stackoverflow.com/questions/1846 ... -with-list
I am testing out converting doxc to HTML. Ultimate goal is to render docx files. I compiled the commandline sample and tried converting just one file, to get a hang of it all. With the shipping 3.0.1 jar it renders the file and then errors out with:
- Code: Select all
Exception in thread "main" org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package
at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:89)
at org.docx4j.Docx4J.toHTML(Docx4J.java:470)
at org.docx4j.samples.ConvertOutHtml.main(ConvertOutHtml.java:113)
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Exception loading template "org/docx4j/convert/out/html/docx2xhtml.xslt", line 201: Variable 'pPrNode' is multiply defined in the same scope.
When I try the same with the nightly build, it errors out immediately with the same error. The commandline I use is:
- Code: Select all
java -cp .:docx4j-3.0.1.jar:dependencies/log4j-1.2.17.jar:dependencies/slf4j-api-1.7.5.jar:dependencies/slf4j-log4j12-1.7.5.jar:dependencies/commons-io-1.3.1.jar:xmlgraphics-commons-1.5.jar org.docx4j.samples.ConvertOutHtml ff-1923-12.docx >test.html
I have attached the document. Nothing fancy. It was a plain doc that was saved as docx from Word 2013. The main goal is to use Word2013 as editor for all new files and keep files in ooxml and then just render them for the web as needed.
Thanks in advance.