Ejemplo n.º 1
0
        public override JSequence call(JXPathContext context, JSequence [] argument)
        {
            SequenceEnumerator <XdmItem>[] na = new SequenceEnumerator <XdmItem> [argument.Length];
            for (int i = 0; i < na.Length; i++)
            {
                na[i] = new SequenceEnumerator <XdmItem>((JXdmSequenceIterator)XdmValue.FromGroundedValueToJXdmValue(argument[i].materialize()).iterator());
            }
            DynamicContext        dc     = new DynamicContext(context);
            IEnumerator <XdmItem> result = functionCall.Call(na, dc);

            return(new net.sf.saxon.om.LazySequence(new net.sf.saxon.om.IteratorWrapper(new net.sf.saxon.dotnet.DotNetIterator(result, new Mapper()))));
        }
Ejemplo n.º 2
0
        public override JSequence call(JXPathContext context, JSequence [] argument)
        {
            SequenceEnumerator[] na = new SequenceEnumerator[argument.Length];
            for (int i = 0; i < na.Length; i++)
            {
                na[i] = new SequenceEnumerator(argument[i].iterate());
            }
            DynamicContext dc     = new DynamicContext(context);
            IXdmEnumerator result = functionCall.Call(na, dc);

            return(new net.sf.saxon.om.LazySequence(new DotNetSequenceIterator(result)));
        }
Ejemplo n.º 3
0
        public override JSequenceIterator call(JSequenceIterator[] arguments, JXPathContext context)
        {
            SequenceEnumerator[] na = new SequenceEnumerator[arguments.Length];
            for (int i = 0; i < na.Length; i++)
            {
                na[i] = new SequenceEnumerator(arguments[i]);
            }
            DynamicContext dc     = new DynamicContext(context);
            IXdmEnumerator result = functionCall.Call(na, dc);

            return(new DotNetSequenceIterator(result));
        }
Ejemplo n.º 4
0
 public override JSequenceIterator call(JSequenceIterator[] arguments, JXPathContext context)
 {
     SequenceEnumerator[] na = new SequenceEnumerator[arguments.Length];
     for (int i = 0; i < na.Length; i++)
     {
         na[i] = new SequenceEnumerator(arguments[i]);
     }
     DynamicContext dc = new DynamicContext(context);
     IXdmEnumerator result = functionCall.Call(na, dc);
     return new DotNetSequenceIterator(result);
 }