We are using simulation portal and successfully received singed XML output from Clearance API. Now we are working on to convert from XML to PDF/A3 (XML Embedded) . When we try to do this process, we are stuck with below error, and it seems like error in XSL. Kindly let us know what we are missing here. Thanks.
We are using the style sheet(.xsl) from SDK tool . è Is this correct ?
Below error we received, and we are using JAVA program. Also let us know if you have any services/sample program to do the same. Thanks.
Error:
Unable to generate the PDF document using the provided XML/XSL input. Errors were reported during stylesheet compilation.
Exception:
ERROR: ‘Syntax error in ‘if (doc-available(’’)) then in-scope-prefixes(document(‘’)/*[1])namespace-uri-for-prefix(., document(‘’)/*[1]) eq ‘[http://www.w3.org/1999/XSL/Transform’][1] else ()‘.’
FATAL ERROR: ‘line 2766: Required attribute ‘test’ is missing.’
javax.xml.transform.TransformerConfigurationException: line 2766: Required attribute ‘test’ is missing.
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1061)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:817)
at com.azentio.invoice.Utils.XMLToXSLFO.main(XMLToXSLFO.java:28)