Example #1
0
        private XsltArgumentList InitArgumentList()
        {
            XsltArgumentList argList = new XsltArgumentList();
            x xinstance = new x();

            if (xinstance.ToString() == null)
            {
                Assert.True(false);
            }
            ExsltDatesAndTimes date = new ExsltDatesAndTimes();
            ExsltCommon        exsl = new ExsltCommon();
            //ExsltFunctionNamespace func = new ExsltFunctionNamespace();
            ExsltMath               math   = new ExsltMath();
            ExsltRandom             random = new ExsltRandom();
            ExsltRegularExpressions regexp = new ExsltRegularExpressions();
            ExsltSets               set    = new ExsltSets();
            ExsltStrings            str    = new ExsltStrings();

            GDNDatesAndTimes      date2   = new GDNDatesAndTimes();
            GDNDynamic            dyn2    = new GDNDynamic();
            GDNMath               math2   = new GDNMath();
            GDNRegularExpressions regexp2 = new GDNRegularExpressions();
            GDNSets               set2    = new GDNSets();
            GDNStrings            str2    = new GDNStrings();

            //EXSLT Objects
            argList.AddExtensionObject("http://exslt.org/dates-and-times", date);
            //argList.AddExtensionObject("http://exslt.org/dynamic", dyn);
            argList.AddExtensionObject("http://exslt.org/common", exsl);
            //argList.AddExtensionObject("http://exslt.org/functions", func);
            argList.AddExtensionObject("http://exslt.org/math", math);
            argList.AddExtensionObject("http://exslt.org/random", random);
            argList.AddExtensionObject("http://exslt.org/regular-expressions", regexp);
            argList.AddExtensionObject("http://exslt.org/sets", set);
            argList.AddExtensionObject("http://exslt.org/strings", str);

            //GotDotNet Objects
            argList.AddExtensionObject("http://gotdotnet.com/exslt/dates-and-times", date2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/dynamic", dyn2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/math", math2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/regular-expressions", regexp2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/sets", set2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/strings", str2);

            return(argList);
        }
Example #2
0
        private XsltArgumentList InitArgumentList()
        {
            XsltArgumentList argList = new XsltArgumentList();
            x xinstance = new x();
            if (xinstance.ToString() == null)
            { Assert.True(false); }
            ExsltDatesAndTimes date = new ExsltDatesAndTimes();
            ExsltCommon exsl = new ExsltCommon();
            //ExsltFunctionNamespace func = new ExsltFunctionNamespace();
            ExsltMath math = new ExsltMath();
            ExsltRandom random = new ExsltRandom();
            ExsltRegularExpressions regexp = new ExsltRegularExpressions();
            ExsltSets set = new ExsltSets();
            ExsltStrings str = new ExsltStrings();

            GDNDatesAndTimes date2 = new GDNDatesAndTimes();
            GDNDynamic dyn2 = new GDNDynamic();
            GDNMath math2 = new GDNMath();
            GDNRegularExpressions regexp2 = new GDNRegularExpressions();
            GDNSets set2 = new GDNSets();
            GDNStrings str2 = new GDNStrings();

            //EXSLT Objects
            argList.AddExtensionObject("http://exslt.org/dates-and-times", date);
            //argList.AddExtensionObject("http://exslt.org/dynamic", dyn);
            argList.AddExtensionObject("http://exslt.org/common", exsl);
            //argList.AddExtensionObject("http://exslt.org/functions", func);
            argList.AddExtensionObject("http://exslt.org/math", math);
            argList.AddExtensionObject("http://exslt.org/random", random);
            argList.AddExtensionObject("http://exslt.org/regular-expressions", regexp);
            argList.AddExtensionObject("http://exslt.org/sets", set);
            argList.AddExtensionObject("http://exslt.org/strings", str);

            //GotDotNet Objects
            argList.AddExtensionObject("http://gotdotnet.com/exslt/dates-and-times", date2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/dynamic", dyn2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/math", math2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/regular-expressions", regexp2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/sets", set2);
            argList.AddExtensionObject("http://gotdotnet.com/exslt/strings", str2);

            return argList;
        }