Is there way to call an XSL template with optional parameters?
For example:
You're using the xsl:param
syntax wrong.
Do this instead:
...possibly more params...
Param takes the value of the parameter passed using the xsl:with-param
that matches the name of the xsl:param
statement. If none is provided it takes the value of the select
attribute full XPath.
More details can be found on W3School's entry on param.