Exemplo n.º 1
0
        public override void Evaluate(XslTransformProcessor p)
        {
            if (p.Debugger != null)
            {
                p.Debugger.DebugExecute(p, this.DebugInput);
            }

            // This intelligent optimization causes poor compatibility bug shown in bug #457065
//			if (children == null)
//				return;

            XPathNodeIterator iter = sortEvaluator != null?
                                     sortEvaluator.SortedSelect(p) :
                                         p.Select(select);


            while (p.NodesetMoveNext(iter))
            {
                p.PushNodeset(iter);
                p.PushForEachContext();
                children.Evaluate(p);
                p.PopForEachContext();
                p.PopNodeset();
            }
        }
Exemplo n.º 2
0
        public override void Evaluate(XslTransformProcessor p)
        {
            if (p.Debugger != null)
            {
                p.Debugger.DebugExecute(p, this.DebugInput);
            }

            if (children == null)
            {
                return;
            }

            XPathNodeIterator iter = sortEvaluator != null?
                                     sortEvaluator.SortedSelect(p) :
                                         p.Select(select);


            while (p.NodesetMoveNext(iter))
            {
                p.PushNodeset(iter);
                p.PushForEachContext();
                children.Evaluate(p);
                p.PopForEachContext();
                p.PopNodeset();
            }
        }
Exemplo n.º 3
0
 protected override object GetValue(XslTransformProcessor p)
 {
     p.PushNodeset(new SelfIterator(p.Root, p.XPathContext));
     p.NodesetMoveNext();
     Evaluate(p);
     p.PopNodeset();
     return(p.globalVariableTable [this]);
 }
Exemplo n.º 4
0
        public override void Evaluate(XslTransformProcessor p)
        {
            if (p.Debugger != null)
            {
                p.Debugger.DebugExecute(p, base.DebugInput);
            }
            XPathNodeIterator xpathNodeIterator = (this.sortEvaluator == null) ? p.Select(this.select) : this.sortEvaluator.SortedSelect(p);

            while (p.NodesetMoveNext(xpathNodeIterator))
            {
                p.PushNodeset(xpathNodeIterator);
                p.PushForEachContext();
                this.children.Evaluate(p);
                p.PopForEachContext();
                p.PopNodeset();
            }
        }
Exemplo n.º 5
0
		protected override object GetValue (XslTransformProcessor p)
		{
			p.PushNodeset (new SelfIterator (p.Root, p.XPathContext));
			p.NodesetMoveNext ();
			Evaluate (p);
			p.PopNodeset ();
			return p.globalVariableTable [this];
		}
Exemplo n.º 6
0
		public override void Evaluate (XslTransformProcessor p)
		{
			if (p.Debugger != null)
				p.Debugger.DebugExecute (p, this.DebugInput);

			// This intelligent optimization causes poor compatibility bug shown in bug #457065
//			if (children == null)
//				return;

			XPathNodeIterator iter = sortEvaluator != null ?
				sortEvaluator.SortedSelect (p) :
				p.Select (select);

			
			while (p.NodesetMoveNext (iter)) {
				p.PushNodeset (iter);
				p.PushForEachContext ();
				children.Evaluate (p);
				p.PopForEachContext();
				p.PopNodeset ();
			}
		}