System.Xml.Xsl.XsltOld.IfAction.CompileAttribute C# (CSharp) Method

CompileAttribute() private method

private CompileAttribute ( Compiler compiler ) : bool
compiler Compiler
return bool
        internal override bool CompileAttribute(Compiler compiler) {
            string name   = compiler.Input.LocalName;
            string value  = compiler.Input.Value;
            if (Keywords.Equals(name, compiler.Atoms.Test)) {
                if (this.type == ConditionType.ConditionOtherwise) {
                    return false;
                }
                this.testKey = compiler.AddBooleanQuery(value);
            }
            else {
                return false;
            }

            return true;
        }