<category access="false" line="true" apdu="false" />
</filter>
<filter type="xquery">
- <script value="/home/adam/proj/marc2bibframe/xbin/zorba3-0.xqy"/>
- <record value="marcxmluri"/>
- <setVariable name="serialization" value="rdxml"/>
- <setVariable name="baseuri" value="http://base/"/>
+ <script name="/home/adam/proj/marc2bibframe/xbin/zorba3-0.xqy"/>
+ <record name="marcxmluri"/>
+ <variable name="serialization" value="rdxml"/>
+ <variable name="baseuri" value="http://base/"/>
</filter>
<filter type="record_transform">
<retrievalinfo xmlns="http://indexdata.com/yaz" version="1.0">
{
if (ptr->type != XML_ELEMENT_NODE)
continue;
- if (!strcmp((const char *) ptr->name, "setVariable"))
+ if (!strcmp((const char *) ptr->name, "variable"))
{
std::string name;
std::string value;
}
else if (!strcmp((const char *) ptr->name, "script"))
{
- std::string value;
+ std::string name;
struct _xmlAttr *attr;
for (attr = ptr->properties; attr; attr = attr->next)
- if (!strcmp((const char *) attr->name, "value"))
- value = mp::xml::get_text(attr->children);
+ if (!strcmp((const char *) attr->name, "name"))
+ name = mp::xml::get_text(attr->children);
else
throw mp::filter::FilterException(
"Bad attribute " + std::string((const char *)
attr->name));
- zorba_script = value;
+ zorba_script = name;
}
else if (!strcmp((const char *) ptr->name, "record"))
{
- std::string value;
+ std::string name;
struct _xmlAttr *attr;
for (attr = ptr->properties; attr; attr = attr->next)
- if (!strcmp((const char *) attr->name, "value"))
- value = mp::xml::get_text(attr->children);
+ if (!strcmp((const char *) attr->name, "name"))
+ name = mp::xml::get_text(attr->children);
else
throw mp::filter::FilterException(
"Bad attribute " + std::string((const char *)
attr->name));
- zorba_record_variable = value;
+ zorba_record_variable = name;
}
else
{