As noted earlier this does work but when the function is not available (simulated by excluding the xsl:include) then I can't compile the stylesheet.
I have tried use-when
Code:
<xsl:if test="$debug">
<xsl:value-of select="myNS:Dump($Buffer)" use-when="not(function-available('myNS:Dump'))"/>
</xsl:if>
and
Code:
<xsl:if test="$debug" use-when="not(function-available('myNS:Dump'))">
<xsl:value-of select="myNS:Dump($Buffer)"/>
</xsl:if>
to no avail, is there anything I can do here? As I have to take into consideration the fact that the system where this is used may be working offline, so I would appreciate your thoughts.
--
William