System.Xml.Xsl.XsltOld.Compiler.AddBooleanQuery C# (CSharp) Method

AddBooleanQuery() private method

private AddBooleanQuery ( string xpathQuery ) : int
xpathQuery string
return int
        internal int AddBooleanQuery(string xpathQuery)
        {
            string modifiedQuery = XmlCharType.Instance.IsOnlyWhitespace(xpathQuery) ? xpathQuery : "boolean(" + xpathQuery + ")";
            return AddQuery(modifiedQuery);
        }

Usage Example

Ejemplo n.º 1
0
        internal override bool CompileAttribute(Compiler compiler) {
            string name   = compiler.Input.LocalName;
            string value  = compiler.Input.Value;
            if (Ref.Equal(name, compiler.Atoms.Test)) {
                if (this.type == ConditionType.ConditionOtherwise) {
                    return false;
                }
                this.testKey = compiler.AddBooleanQuery(value);
            }
            else {
                return false;
            }

            return true;
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::AddBooleanQuery