Project

Profile

Help

Bug #2475

Handling Saxon console output and details of errors

Added by O'Neil Delpratt almost 5 years ago.

Status:
New
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2015-10-16
Due date:
% Done:

0%

Estimated time:
Found in version:
0.3.1
Fixed in version:

Description

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?

Please register to edit this issue

Also available in: Atom PDF