Bug #2475
Updated by O'Neil Delpratt about 4 years ago
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 9.5.1.1N 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?