Actions
Bug #2475
closed![Author: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Handling Saxon console output and details of errors
Start date:
2015-10-16
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
0.3.1
Fixed in version:
1.0.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
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?
Updated by O'Neil Delpratt almost 4 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
Actions