public void Visit(ElementRestriction selector) { this.Specificity += (1 << 4); }
public static ElementRestriction LocalName(string name) { var result = new ElementRestriction(); result.Name.LocalName = name; return result; }
public void Visit(ElementRestriction selector) { _matches = _matches.Where(n => IsMatch(n.Name, selector.Name)); }
public void Visit(ElementRestriction selector) { if (selector.Name.Namespace != "*") { _writer.Write(selector.Name.Prefix ?? selector.Name.Namespace ?? ""); _writer.Write('|'); } _writer.Write(selector.Name.LocalName); }