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

Compile() private method

private Compile ( Compiler compiler ) : void
compiler Compiler
return void
        internal override void Compile(Compiler compiler) {
            this.stylesheetid = compiler.Stylesheetid;
            this.baseUri      = compiler.Input.BaseURI;
            CompileAttributes(compiler);
            CheckRequiredAttribute(compiler, this.name, Keywords.s_Name);


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

                if (this.selectKey != Compiler.InvalidQueryKey && this.containedActions != null) {
                    throw XsltException.Create(Res.Xslt_VariableCntSel2, this.nameStr);
                }
            }
            if (this.containedActions != null) {
                baseUri = baseUri + '#' + compiler.GetUnicRtfId();
            } else {
                baseUri = null;
            }

            this.varKey = compiler.InsertVariable(this);
        }

Usage Example

Ejemplo n.º 1
0
        public virtual VariableAction CreateVariableAction(VariableType type)
        {
            VariableAction action = new VariableAction(type);

            action.Compile(this);
            if (action.VarKey != InvalidQueryKey)
            {
                return(action);
            }
            else
            {
                return(null);
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.VariableAction::Compile