Make element_name_append_attribute_value static
[yaz-moved-to-github.git] / src / marcdisp.c
index d4fdf6c..667f671 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
 
@@ -140,10 +140,12 @@ static void marc_iconv_reset(yaz_marc_t mt, WRBUF wr)
 
 static int marc_exec_leader(const char *leader_spec, char *leader,
                             size_t size);
+#if YAZ_HAVE_XML2
 static int yaz_marc_write_xml_turbo_xml(yaz_marc_t mt, xmlNode **root_ptr,
                                         const char *ns, 
                                         const char *format,
                                         const char *type);
+#endif
 
 static struct yaz_marc_node *yaz_marc_add_node(yaz_marc_t mt)
 {
@@ -247,7 +249,9 @@ void yaz_marc_add_datafield(yaz_marc_t mt, const char *tag,
 // if not, and if the attribute name is not null, it will append a attribute element with the value
 // if attribute name is null it will return a non-zero value meaning it couldnt handle the value.
 
-int element_name_append_attribute_value(yaz_marc_t mt, WRBUF buffer, const char *attribute_name, char *code_data, size_t code_len)
+static int element_name_append_attribute_value(
+    yaz_marc_t mt, WRBUF buffer,
+    const char *attribute_name, char *code_data, size_t code_len)
 {
     // TODO Map special codes to something possible for XML ELEMENT names
 
@@ -823,7 +827,7 @@ int yaz_marc_write_turbomarc(yaz_marc_t mt, WRBUF wr)
     if (!mt->leader_spec)
         yaz_marc_modify_leader(mt, 9, "a");
     return yaz_marc_write_marcxml_ns(mt, wr,
-                                     "http://www.indexdata.com/MARC21/turboxml", 0, 0, 1);
+                                     "http://www.indexdata.com/turbomarc", 0, 0, 1);
 }
 
 int yaz_marc_write_marcxchange(yaz_marc_t mt, WRBUF wr,