Lines Matching refs:match
37 # Filter functions may be applied to match particular
45 # If a filter is specified then the node must match for the
47 # then all nodes match that filter.
60 # Does this node match?
61 set match 1
62 catch {set match [expr $match && [regexp $opts(-nodeType) [::dom::node cget $node -nodeType]]]}
63 catch {set match [expr $match && [regexp $opts(-nodeName) [::dom::node cget $node -nodeName]]]}
64 catch {set match [expr $match && [regexp $opts(-nodeValue) [::dom::node cget $node -nodeValue]]]}
65 if {$match && ![string compare [::dom::node cget $node -nodeType] element]} {
66 set match 0
68 set match 1
69 catch {set match [expr $match && [regexp [lindex $opts(-attribute) 0] $attrName]]}
70 catch {set match [expr $match && [regexp [lindex $opts(-attribute) 1] $attrValue]]}
71 if {$match} break
74 if {$match && [set code [catch {eval $cmd [list $node]} msg]]} {