System.Xml.Xsl.XsltOld.ActionFrame.SetAction C# (CSharp) Method

SetAction() private method

private SetAction ( Action action ) : void
action Action
return void
        internal void SetAction(Action action) {
            SetAction(action, Action.Initialized);
        }

Same methods

ActionFrame::SetAction ( Action action, int state ) : void

Usage Example

Ejemplo n.º 1
0
        internal override void Execute(Processor processor, ActionFrame frame)
        {
            Debug.Assert(processor != null && frame != null);
            Debug.Assert(frame.State == Initialized);

            Action?action;

            if (this.mode != null)
            {
                action = importsOf == null
                    ? processor.Stylesheet.FindTemplate(processor, frame.Node !, this.mode)
                    : importsOf.FindTemplateImports(processor, frame.Node !, this.mode);
            }
            else
            {
                action = importsOf == null
                    ? processor.Stylesheet.FindTemplate(processor, frame.Node !)
                    : importsOf.FindTemplateImports(processor, frame.Node !);
            }

            // Built-int template rules
            action ??= BuiltInTemplate(frame.Node !);

            // Jump
            if (action != null)
            {
                frame.SetAction(action);
            }
            else
            {
                frame.Finished();
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.ActionFrame::SetAction