boolean has_attribute = node.hasAttributes();
if (has_attribute) {
nsIDOMNamedNodeMap attributes = node.getAttributes();
String name = this.getName();
nsIDOMNode attribute = attributes.getNamedItem(name);
if (null != attribute) {
Pattern pattern = this.getPattern();
String value = attribute.getNodeValue();
Matcher matcher = pattern.matcher(value);
evaluation = matcher.find();
}
}