#include "config.hpp"
#include "filter_sort.hpp"
#include <metaproxy/package.hpp>
#include <metaproxy/util.hpp>
#include <yaz/diagbib1.h>
#include <yaz/copy_types.h>
#include <yaz/log.h>
#include <yaz/oid_std.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <yaz/zgdu.h>
Go to the source code of this file.
◆ filter_creator()
static mp::filter::Base* filter_creator |
( |
| ) |
|
|
static |
◆ print_xpath_nodes()
static void print_xpath_nodes |
( |
xmlNodeSetPtr |
nodes, |
|
|
FILE * |
output |
|
) |
| |
|
static |
Definition at line 123 of file filter_sort.cpp.
130 size = nodes ? nodes->nodeNr : 0;
132 fprintf(output,
"Result (%d nodes):\n", size);
133 for (i = 0; i < size; ++i) {
134 assert(nodes->nodeTab[i]);
136 if (nodes->nodeTab[i]->type == XML_NAMESPACE_DECL)
138 xmlNsPtr ns = (xmlNsPtr)nodes->nodeTab[i];
139 cur = (xmlNodePtr)ns->next;
141 fprintf(output,
"= namespace \"%s\"=\"%s\" for node %s:%s\n",
142 ns->prefix, ns->href, cur->ns->href, cur->name);
144 fprintf(output,
"= namespace \"%s\"=\"%s\" for node %s\n",
145 ns->prefix, ns->href, cur->name);
147 else if (nodes->nodeTab[i]->type == XML_ELEMENT_NODE)
149 cur = nodes->nodeTab[i];
151 fprintf(output,
"= element node \"%s:%s\"\n",
152 cur->ns->href, cur->name);
154 fprintf(output,
"= element node \"%s\"\n", cur->name);
158 cur = nodes->nodeTab[i];
159 fprintf(output,
"= node \"%s\": type %d\n", cur->name, cur->type);
Referenced by metaproxy_1::filter::Sort::Record::get_xpath().
◆ metaproxy_1_filter_sort
struct metaproxy_1_filter_struct metaproxy_1_filter_sort |