System.Xml.Xsl.XsltOld.ElementAction.Compile C# (CSharp) Method

Compile() private method

private Compile ( Compiler compiler ) : void
compiler Compiler
return void
        internal override void Compile(Compiler compiler) {
            CompileAttributes(compiler);
            CheckRequiredAttribute(compiler, this.nameAvt, Keywords.s_Name);

            this.name  = PrecalculateAvt(ref this.nameAvt);
            this.nsUri = PrecalculateAvt(ref this.nsAvt  );

            // if both name and ns are not AVT we can calculate qname at compile time and will not need namespace manager anymore
            if (this.nameAvt == null && this.nsAvt == null) {
                if(this.name != Keywords.s_Xmlns) {
                    this.qname = CreateElementQName(this.name, this.nsUri, compiler.CloneScopeManager());                    
                }
            }
            else {
                this.manager = compiler.CloneScopeManager();
            }

            if (compiler.Recurse()) {
                Debug.Assert(this.empty == false);
                CompileTemplate(compiler);
                compiler.ToParent();
            }
            this.empty = (this.containedActions == null) ;
        }

Usage Example

Ejemplo n.º 1
0
        public virtual ElementAction CreateElementAction()
        {
            ElementAction action = new ElementAction();

            action.Compile(this);
            return(action);
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.ElementAction::Compile