Project

Profile

Help

Bug #2475

closed

Handling Saxon console output and details of errors

Added by O'Neil Delpratt over 8 years ago. Updated over 3 years ago.

Status:
Closed
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:
1.0.1
Platforms:

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?

Actions #1

Updated by O'Neil Delpratt over 3 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Fixed in version set to 1.0.1

Closing out this old bug issues. The command line interface of Saxon/C is equivalent to what you would find on Java and .NET. This was added in Saxon/C 1.0.1.

Please register to edit this issue

Also available in: Atom PDF