Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Dear Gurus,
Need some help. I have tried to use asciidoctor-pdf to convert my asciidoc file into pdf. However, as I needed footnotes, and I understand that footnote is still work in progress, I have no choice but to resort to the docbook tool chain for conversion to pdf. I have downloaded the latest asciidoctor-fopub-master package. And I tried converting the README.adoc to pdf with the following 2 commands: asciidoctor -b docbook -d book -a data-uri! README.adoc followed by fopub README.xml However, I got the following exceptions thrown. Please kindly help how I could resolve this. I am on Windows 10, and using JRE 1.8.0_181 and javac 1.7.0_65 Thank you very much for the time to read this message. Best wishes, Hwai-An Error message below: Nov 24, 2018 5:15:51 PM org.apache.fop.cli.InputHandler error SEVERE: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: https://cdn.docbook.org/release/xsl/current/fo/docbook.xsl Nov 24, 2018 5:15:51 PM org.apache.fop.cli.Main startFOP SEVERE: Exception org.apache.fop.apps.FOPException: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) Caused by: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:959) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) ... 3 more Caused by: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:950) ... 5 more Caused by: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) ... 5 more --------- javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:959) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) Caused by: javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:950) ... 5 more Caused by: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) ... 5 more --------- javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:950) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) Caused by: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) ... 5 more --------- org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) --------- ; SystemID: file:///D:/bin/asciidoctor-fopub/build/fopub/docbook-xsl/fo-pdf.xsl; Line#: 247; Column#: 82 ; SystemID: file:///D:/bin/asciidoctor-fopub/build/fopub/docbook-xsl/fo-pdf.xsl; Line#: 247; Column#: 82 javax.xml.transform.TransformerException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:144) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) --------- org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) --------- ; SystemID: file:///D:/bin/asciidoctor-fopub/build/fopub/docbook-xsl/fo-pdf.xsl; Line#: 247; Column#: 82 ; SystemID: file:///D:/bin/asciidoctor-fopub/build/fopub/docbook-xsl/fo-pdf.xsl; Line#: 247; Column#: 82 javax.xml.transform.TransformerException: Could not find variable with the name of title.margin.left at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:144) at org.apache.xpath.XPath.fixupVariables(XPath.java:86) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:181) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1172) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:281) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:126) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) "Unsupported output type 'pdf'. Must be pdf, ps or fo." |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Hmm, I'm not seeing this problem. Could you try to remove the "build" directory and run fopub again? It could be that you have cached files. If that doesn't solve the problem, please file an issue at https://github.com/asciidoctor/asciidoctor-fopub Cheers, -Dan On Sat, Nov 24, 2018 at 7:24 AM gohhwaian [via Asciidoctor :: Discussion] <[hidden email]> wrote: Dear Gurus, ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Dear Dan,
Thank you so much for your reply despite your busy schedule. I managed to figure out the problem. I was using Java version 7. Somehow, that's causing the exception. After I change to version 8, it is working fine now. And thank you for making asciidoctor. It is a very nice and valuable program. Best regards, Hwai An |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
You're welcome. Ah, yes, that prerequisite is a result of the upgrade to Gradle 4. We should probably state that minimum requirement in the README. I'll make that update today. Cheers, -Dan On Mon, Nov 26, 2018 at 12:16 PM gohhwaian [via Asciidoctor :: Discussion] <[hidden email]> wrote: Dear Dan, ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |