- xmlChar *err_p = 0;
-
- if (node->type == XML_ELEMENT_NODE
- && node->ns && 0 == strcmp(node->ns->href, zebra_xslt_ns)){
-
- if (0 == strcmp(node->name, "index")){
- xmlChar *index_p = 0;
-
- struct _xmlAttr *attr;
- for (attr = node->properties; attr; attr = attr->next){
- if (attr_content_xml(attr, "name", &index_p)){
- index_value_of(node, index_p);
- }
- else
- // printf("%s: dom filter: s% bad attribute %s",
- // tinfo->fname, xmlGetNodePath(node)), nodeattr->name);
- printf("dom filter: %s bad attribute @%s, expected @name\n",
- xmlGetNodePath(node), attr->name);
- }
- }
- else if (0 == strcmp(node->name, "record")){
- xmlChar *id_p = 0;
- xmlChar *rank_p = 0;
- xmlChar *action_p = 0;
-
- struct _xmlAttr *attr;
- for (attr = node->properties; attr; attr = attr->next){
- if (attr_content_xml(attr, "id", &id_p))
- ;
- else if (attr_content_xml(attr, "rank", &rank_p))
- ;
- else if (attr_content_xml(attr, "acton", &action_p))
- ;
- else
- // printf("%s: dom filter: s% bad attribute %s",
- // tinfo->fname, xmlGetNodePath(node)), nodeattr->name);
- printf("dom filter: %s bad attribute @%s,"
- " expected @id|@rank|@action\n",
- xmlGetNodePath(node), attr->name);
-
- if (action_p && 0 != strcmp("update", action_p))
- printf("dom filter: %s attribute @%s,"
- " only implemented '@action=\"update\"\n",
- xmlGetNodePath(node), attr->name);
-
-
- }
- set_record_info(id_p, rank_p, action_p);
- } else {
- // printf("%s: dom filter: s% bad attribute %s",
- // tinfo->fname, xmlGetNodePath(node)), nodeattr->name);
- printf("dom filter: %s bad element <%s>,"
- " expected <record>|<index> in namespace '%s'\n",
- xmlGetNodePath(node), node->name, zebra_xslt_ns);
-
- }
- }