Login  Register

Re: asciidoctor-fopub exception

Posted by mojavelinux on Nov 25, 2018; 7:49pm
URL: https://discuss.asciidoctor.org/asciidoctor-fopub-exception-tp6598p6606.html

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,

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."


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-fopub-exception-tp6598.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux