System.Xml.Xsl.XsltOld.ProcessingInstructionAction.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);

            if(this.nameAvt.IsConstant) {
                this.name    = this.nameAvt.Evaluate(null, null);
                this.nameAvt = null;
                if (! IsProcessingInstructionName(this.name)) {
                    // For Now: set to null to ignore action late;
                   this.name = null;
               }
            }

            if (compiler.Recurse()) {
                CompileTemplate(compiler);
                compiler.ToParent();
            }
        }

Usage Example

Ejemplo n.º 1
0
        public virtual ProcessingInstructionAction CreateProcessingInstructionAction()
        {
            ProcessingInstructionAction action = new ProcessingInstructionAction();

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