Is there a way to emit the uri of the document currently being processed (which may or may not have been loaded with a document() function call) and preferably the line number?
Basically I have a situation in my XSL where there could potentially be an error so I am using
<xsl:message terminate="yes">...</xsl:message>
It would be nice if the message could include the location of the error in the source xml document.
Currently I am using the built-in .NET XSL engine, although I may have to switch to using saxon for another issue.