YAZ  5.23.1
Functions
ccl_xml.h File Reference

Header for CCL + XML stuff. More...

#include <yaz/ccl.h>
#include <yaz/xmltypes.h>

Go to the source code of this file.

Functions

int ccl_xml_config (CCL_bibset bibset, const xmlNode *ptr, const char **addinfo)
 configures CCL bibset using XML configuration More...
 

Detailed Description

Header for CCL + XML stuff.

Definition in file ccl_xml.h.

Function Documentation

int ccl_xml_config ( CCL_bibset  bibset,
const xmlNode *  ptr,
const char **  addinfo 
)

configures CCL bibset using XML configuration

Parameters
bibsetCCL bibliographic profile
ptrxml node pointer pointing to "cclmap" element
addinfohas error message if configuration could not be parsed
Return values
0OK
-1errors. Inspect addinfo for error message

Configuration example:

<cclmap defaultattrset="bib-1">
   <qual name="term">
       <attr type="u" value="1016"/>
       <attr type="s" value="pw"/>
   </qual>
   <qual name="title">
       <attr type="u" value="4"/>
   </qual>
   <qual name="distributor">
       <attr attrset="gils" type="u" value="2000"/>
   </qual>
  <directive name="and" value="+"/>
</cclmap>

Definition at line 182 of file cclxmlconfig.c.

References ccl_xml_config_directive(), ccl_xml_config_qual(), wrbuf_alloc(), and wrbuf_destroy().