code: public ElemVariable getVariableOrParam(QName qname)
    {
  
      if (null != m_topLevelVariables)
      {
        int n = getVariableOrParamCount();
  
        for (int i = 0; i < n; i++)
        {
          ElemVariable var = (ElemVariable) getVariableOrParam(i);
  
          if (var.getName().equals(qname))
            return var;
        }
      }
  
      return null;
    }
docs: Get an "xsl:variable" or "xsl:param" property.
  @see <a href="http://www.w3.org/TR/xslt#top-level-variables">top-level-variables in XSLT Specification</a>
  
  @param qname non-null reference to the qualified name of the variable.
  
  @return The ElemVariable with the given name in the list or null