#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <getopt.h>
#include "dancer-xml.h"
#include "config.h"
Defines | |
#define | _GNU_SOURCE |
Functions | |
static int | replace_external_entity (const char *s) |
static int | convert_print (const char *s, int verbatim) |
remove exceeding space, and remove special-chars | |
static const char * | getatrstring (dxml_element *e, const char *attr) |
static int | get_paratype (dxml_element *b, int verbatim) |
handle para-type ones which can contain PCDATA | |
static int | get_bookchapter (dxml_element *b, int paraenter) |
static int | maybe_label (dxml_element *b) |
static int | get_table (dxml_element *b_parent) |
static int | get_itemizedlist (dxml_element *b) |
static int | get_bothtypes (dxml_element *b, int inlinetype) |
Something that appears inside the para elements and outside the para elements. | |
static int | recursebook (dxml_element *b) |
int | main (int argc, char **argv) |
#define _GNU_SOURCE |
static int convert_print | ( | const char * | s, | |
int | verbatim | |||
) | [static] |
remove exceeding space, and remove special-chars
s | The string to print | |
verbatim | preserve carriage returns? |
References replace_external_entity().
Referenced by get_bookchapter(), get_paratype(), main(), and recursebook().
static int get_bookchapter | ( | dxml_element * | b, | |
int | paraenter | |||
) | [static] |
References dxml_element::child, convert_print(), dxml_dump_element(), dxml_get_PCDATA_bysimplepath(), dxml_element::element_name, dxml_element::element_type_element, get_bothtypes(), get_itemizedlist(), get_paratype(), get_table(), maybe_label(), and dxml_element::next.
Referenced by get_itemizedlist(), get_paratype(), and recursebook().
static int get_bothtypes | ( | dxml_element * | b, | |
int | inlinetype | |||
) | [static] |
Something that appears inside the para elements and outside the para elements.
inlinetype | 1 if it is inside para |
References dxml_element::child, dxml_element::element_name, and get_paratype().
Referenced by get_bookchapter(), and get_paratype().
static int get_itemizedlist | ( | dxml_element * | b | ) | [static] |
References dxml_element::child, dxml_dump_element(), dxml_element::element_name, get_bookchapter(), and dxml_element::next.
Referenced by get_bookchapter(), and get_paratype().
static int get_paratype | ( | dxml_element * | b, | |
int | verbatim | |||
) | [static] |
handle para-type ones which can contain PCDATA
verbatim | whether it is in screen env. or not. |
References dxml_element::child, convert_print(), dxml_dump_element(), dxml_element::element_name, dxml_element::element_type_pcdata, get_bookchapter(), get_bothtypes(), get_itemizedlist(), get_table(), getatrstring(), and dxml_element::next.
Referenced by get_bookchapter(), get_bothtypes(), and get_table().
static int get_table | ( | dxml_element * | b_parent | ) | [static] |
References dxml_element::child, dxml_get_element_byname(), dxml_get_element_bysimplepath(), dxml_get_PCDATA_bysimplepath(), get_paratype(), getatrstring(), maybe_label(), and dxml_element::next.
Referenced by get_bookchapter(), and get_paratype().
static const char* getatrstring | ( | dxml_element * | e, | |
const char * | attr | |||
) | [static] |
References dxml_attribute::attribute_data, dxml_attribute::attribute_name, dxml_element::element_attribute, and dxml_attribute::next.
Referenced by get_paratype(), get_table(), and maybe_label().
int main | ( | int | argc, | |
char ** | argv | |||
) |
static int maybe_label | ( | dxml_element * | b | ) | [static] |
static int recursebook | ( | dxml_element * | b | ) | [static] |
References dxml_element::child, convert_print(), dxml_get_element_byname(), dxml_get_PCDATA_bysimplepath(), get_bookchapter(), maybe_label(), and dxml_element::next.
Referenced by main().
static int replace_external_entity | ( | const char * | s | ) | [static] |
Referenced by convert_print().