Пример #1
0
 public void Visit(ElementRestriction selector)
 {
   this.Specificity += (1 << 4);
 }
Пример #2
0
 public static ElementRestriction LocalName(string name)
 {
   var result = new ElementRestriction();
   result.Name.LocalName = name;
   return result;
 }
Пример #3
0
 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);
 }