X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frecord_conv.c;h=9d8a934089e33afb82ceda21b546a265965193a4;hp=94447f5ec02af4f127f3fe3f8b4cce47011627eb;hb=fc6d778b923000b5c6ad8e108b0b184178a9d33f;hpb=262ce1bfa2a3bc7045217e59281b4b59938a7da8 diff --git a/src/record_conv.c b/src/record_conv.c index 94447f5..9d8a934 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -2,7 +2,7 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: record_conv.c,v 1.10 2006-05-26 15:07:08 adam Exp $ + * $Id: record_conv.c,v 1.11 2006-07-06 10:17:53 adam Exp $ */ /** * \file record_conv.c @@ -22,15 +22,15 @@ #include #include -#if HAVE_XML2 +#if YAZ_HAVE_XML2 #include #include #include -#if HAVE_XSLT +#if YAZ_HAVE_XSLT #include #include #endif -#if HAVE_EXSLT +#if YAZ_HAVE_EXSLT #include #endif @@ -64,7 +64,7 @@ enum YAZ_RECORD_CONV_RULE struct yaz_record_conv_rule { enum YAZ_RECORD_CONV_RULE which; union { -#if HAVE_XSLT +#if YAZ_HAVE_XSLT struct { xsltStylesheetPtr xsp; } xslt; @@ -89,7 +89,7 @@ static void yaz_record_conv_reset(yaz_record_conv_t p) if (r->u.marc.iconv_t) yaz_iconv_close(r->u.marc.iconv_t); } -#if HAVE_XSLT +#if YAZ_HAVE_XSLT else if (r->which == YAZ_RECORD_CONV_RULE_XSLT) { xsltFreeStylesheet(r->u.xslt.xsp); @@ -112,7 +112,7 @@ yaz_record_conv_t yaz_record_conv_create() p->rules = 0; p->path = 0; -#if HAVE_EXSLT +#if YAZ_HAVE_EXSLT exsltRegisterAll(); #endif yaz_record_conv_reset(p); @@ -146,7 +146,7 @@ static struct yaz_record_conv_rule *add_rule(yaz_record_conv_t p, /** \brief parse 'xslt' conversion node */ static int conv_xslt(yaz_record_conv_t p, const xmlNode *ptr) { -#if HAVE_XSLT +#if YAZ_HAVE_XSLT struct _xmlAttr *attr; const char *stylesheet = 0; @@ -334,7 +334,7 @@ int yaz_record_conv_configure(yaz_record_conv_t p, const void *ptr_v) } else if (!strcmp((const char *) ptr->name, "exslt")) { -#if HAVE_EXSLT +#if YAZ_HAVE_EXSLT if (conv_xslt(p, ptr)) return -1; #else @@ -425,7 +425,7 @@ int yaz_record_conv_record(yaz_record_conv_t p, } yaz_marc_destroy(mt); } -#if HAVE_XSLT +#if YAZ_HAVE_XSLT else if (r->which == YAZ_RECORD_CONV_RULE_XSLT) { xmlDocPtr doc = xmlParseMemory(wrbuf_buf(record), @@ -443,7 +443,7 @@ int yaz_record_conv_record(yaz_record_conv_t p, xmlChar *out_buf = 0; int out_len; -#if HAVE_XSLTSAVERESULTTOSTRING +#if YAZ_HAVE_XSLTSAVERESULTTOSTRING xsltSaveResultToString(&out_buf, &out_len, res, r->u.xslt.xsp); #else