Project

Profile

Help

Support #4633

closed

Format of error messages, saxon command line

Added by Ralph Stoop almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Documentation
Sprint/Milestone:
-
Start date:
2020-07-06
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Dear Saxon Team and Community We're using SaxonEE9.9N using the command line. For our purposes, we would like to write a small parser to handle error messages created by Saxon. To do so, it would be great to have a summary or some list explaining the format of the error messages.

Currently, when we call the saxon xslt engine via command line, we get a list of errors, e.g.:

Static error in xsl:variable/@bla on line 10 column 95 of grips2webwitherrors4.xsl: XTSE0090: Attribute @bla is not allowed on element xsl:variable Static error at xsl:variable on line 10 column 95 of grips2webwitherrors4.xsl: XTSE0010: Element must have an @name attribute Static error at xsl:template on line 560 column 34 of grips2webwitherrors4.xsl: XTSE0500: xsl:template must have a name or match attribute (or both)

I'm now interested in the general description of the error messages, in particular the first line of each error message. For example, does the first line always start with "Static error"? Do all errors return a line and a colum? Are all error messages based on two lines? I'm aware of the Saxon error codes (https://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/trans/SaxonErrorCode.html) and the W3 error codes (https://www.w3.org/2005/xqt-errors/) which are returned by the engine in the secon line of the error message (e.g. XTSE0010: ...). However, I could not find any information on the format of the first line of the error message (e.g. Static error in/at ...).

Please let me know if my request is unclear. Any help would be highly appreciated. Thank you very much for your help!

Please register to edit this issue

Also available in: Atom PDF