Beispiel #1
0
        public object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
        {
            var value1 = Xslt.ArgumentToString(args[0]);
            var value2 = Xslt.ArgumentToString(args[1]);

            return(string.CompareOrdinal(value1, value2));
        }
Beispiel #2
0
        public object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
        {
            var input   = Xslt.ArgumentToString(args[0]);
            var pattern = Xslt.ArgumentToString(args[1]);

            return(Regex.IsMatch(input, pattern));
        }
Beispiel #3
0
        public object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
        {
            var value1 = Xslt.ArgumentToString(args[0]);
            var value2 = Xslt.ArgumentToString(args[1]);

            return(string.Equals(value1, value2, StringComparison.OrdinalIgnoreCase));
        }
Beispiel #4
0
 public object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
 {
     return(Invoke(Xslt.ArgumentToString(args[0])));
 }