Is there a method that allows you to check to see if a variable/parameter has been declared before calling it? Obviously calling an undeclared variable/parameter results in an error.
Logically speaking I'm looking for something along these lines.
Code:
<xsl:choose>
<xsl:when test="$Test"/>
<xsl:otherwise/>
</xsl:choose>
A parallel function that I have in mind is the "doc-available ()" function. Using this I can continue processing even if the document URI doesn't resolve. I'd like a similar functionality but with a variable. (Or perhaps even a <xsl:call-template/>. Check if there is a named template that exists with that name before calling it.)
I'm using XSLT 2.0 & Saxon-9SA
Thank you much!