- if (ptr->type != XML_ELEMENT_NODE)
- continue;
- if (!XML_STRCMP(ptr->name, "extract"))
- {
- /*
- <extract name="index">
- <xslt stylesheet="first.xsl"/>
- <xslt stylesheet="second.xsl"/>
- </extract>
- */
- struct _xmlAttr *attr;
- struct filter_extract *f =
- odr_malloc(tinfo->odr_config, sizeof(*f));
-
- tinfo->extract = f;
- f->name = 0;
- f->convert = 0;
- for (attr = ptr->properties; attr; attr = attr->next)
- {
- if (attr_content(attr, "name", &f->name))
- ;
- else
- yaz_log(YLOG_WARN, "%s: dom filter: "
- "%s bad attribute @%s"
- " expected @name",
- tinfo->fname,
- xmlGetNodePath(ptr),attr->name);
-
- }
- parse_convert(tinfo, ptr->children, &f->convert);
- }
- else if (!XML_STRCMP(ptr->name, "retrieve"))
- {
- /*
- <retrieve name="F">
- <xslt stylesheet="some.xsl"/>
- <xslt stylesheet="some.xsl"/>
- </retrieve>
- */
- struct _xmlAttr *attr;
- struct filter_retrieve **fp = &tinfo->retrieve_list;
- struct filter_retrieve *f =
- odr_malloc(tinfo->odr_config, sizeof(*f));
+ /*
+ <extract name="index">
+ <xslt stylesheet="first.xsl"/>
+ <xslt stylesheet="second.xsl"/>
+ </extract>
+ */
+ struct _xmlAttr *attr;
+ struct filter_extract *f =
+ odr_malloc(tinfo->odr_config, sizeof(*f));