invalid return type on XSL function mcrmods:to-uri (if empty)
Description
Caused by: net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the result of a call to mcrmods:to-uri#1 at net.sf.saxon.expr.ErrorExpression.evaluateItem(ErrorExpression.java:137) at net.sf.saxon.expr.ErrorExpression.iterate(ErrorExpression.java:164)
and following up:
net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the first argument of mcrclass:current-label-text()
Caused by: net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the result of a call to mcrmods:to-uri#1
at net.sf.saxon.expr.ErrorExpression.evaluateItem(ErrorExpression.java:137)
at net.sf.saxon.expr.ErrorExpression.iterate(ErrorExpression.java:164)
and following up:
net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the first argument of mcrclass:current-label-text()