       <xsl:call-template name="calc-arity">         <xsl:with-param name="string" select="substring-before($ustring, ')')"/>         <xsl:with-param name="no-of-pars" select="0"/>       </xsl:call-template>     </xsl:variable>      <xsl:choose>       <xsl:when test="ancestor::cref">  <