Handling Saxon console output and details of errors
Reported in #6201:
On Java if you attempt to run a transform with syntax errors, you will get information about the errors, like the line number and column number of the origin of the error. With Saxon/C, you will at least get an exception raised, but that exception has no information in it. All the error messages, warnings and hints that are normally output are just lost with the current Saxon/C API.
To illustrate here is a capture of stdout from a run of Saxon-HE9 console ...
Saxon-HE 18.104.22.168N from Saxonica .NET 2.0.50727.5485 on Microsoft Windows NT 6.1.7601 Service Pack 1 Using parser org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser Stylesheet compilation time: 2784 milliseconds Processing file:///C:/Temp/Projects/XSLT/in.xml Building tree for file:///C:/Temp/Projects/XSLT/in.xml using class net.sf.saxon.tree.tiny.TinyBuilder Tree built in 31 milliseconds Tree size: 43 nodes, 93 characters, 4 attributes Execution time: 281ms Memory used: 4500392 NamePool contents: 8 entries in 8 chains. 6 URIs
Where is the equivalent information in the Saxon/C API?
Please register to edit this issue