@staticmethod
def get_rule_id_by_template_tag(root, rule_name):
    """Get the rule ID based on template_tag."""
    schema_ids = []
    rules = root.findall('rule')
    for rule in rules:
        if rule.find('template').attrib['tag'] == rule_name:
            schema_ids.append(rule.attrib['id'])
    if schema_ids == []:
        return None
    return schema_ids
