Is it possible to receive an error message from “glue code”?
Dear all,
I wrote a script that applies styles using xPath using two modes:
- xml-rules
- evaluate xPath expression
For example, I want to get the first book element that is the child of the bookstore element:
/bookstore/book[last()]
This works in the “evaluate xPath expression” mode.

If no elements have been found, the script gives a warning.

But in the xml-rules mode it doesn’t work because, as far as I understand, last() isn’t supported in xml-rules so it silently throws an error. As a result nothing happens (no warning appears) when I click the “Find” button and no matches are found.

Regards,
Kasyan
