Ejemplo n.º 1
0
        private IXsltContextFunction CreateHtmlXsltFunction(string prefix, string name, XPathResultType[] argTypes)
        {
            var fn = HtmlXsltFunction.GetBuiltIn(this, prefix, name, argTypes);

            if (fn == null)
            {
                throw new ArgumentException("XPATH function '" + name + "' is unknown.", nameof(name));
            }

            return(fn);
        }
Ejemplo n.º 2
0
        protected virtual IXsltContextFunction CreateHtmlXsltFunction(string prefix, string name, XPathResultType[] ArgTypes)
        {
            var fn = HtmlXsltFunction.GetBuiltIn(this, prefix, name, ArgTypes);

            if (fn == null)
            {
                throw new Exception("XPATH function '" + name + "' is unknown.");
            }

            return(fn);
        }