Support #3446
closedHow can i see which attribute has an invalid value?
0%
Description
This stylesheet (the stylesheet is just an example) produces an error in line 4:
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:number count="aaa///bbb" from="aaa///bbb"></xsl:number>
</xsl:template>
</xsl:stylesheet>
My installed error listener is called with parameter e, an XPathException.
The only information i can retreive is this:
e.getLocator().getLineNumber() = 4
e.getMessage() = Unexpected token "/" at start of expression.
There is no indication which one of the two attributes is wrong. I tried
e.getCause() = null
e.getException() = null
e.getErrorObject() = null
There is also no information about the location of the error in the XPath expression. However, if i evaluate "aaa///bbb" using XPathCompiler, an exception SaxonApiException is thrown and getCause() (also an XPathException) gives me the actual location, via getLocator().getColumnNumber(), so that information seems to be available.
How can i tell which one of the attribute values is wrong (in Java code) and what the position of the error in the XPath expression is?
Thank you.
Files
Please register to edit this issue