dancer-xml Reference  0.8.2.1
Macros | Functions
db2latex.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <getopt.h>
#include "dancer-xml.h"
#include "config.h"

Macros

#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 More...
 
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 More...
 
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. More...
 
static int recursebook (dxml_element *b)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define _GNU_SOURCE

Function Documentation

static int convert_print ( const char *  s,
int  verbatim 
)
static

remove exceeding space, and remove special-chars

Parameters
sThe string to print
verbatimpreserve 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
static int get_bothtypes ( dxml_element b,
int  inlinetype 
)
static

Something that appears inside the para elements and outside the para elements.

Returns
1 on match.
Parameters
inlinetype1 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
static int get_paratype ( dxml_element b,
int  verbatim 
)
static
static int get_table ( dxml_element b_parent)
static
static const char* getatrstring ( dxml_element e,
const char *  attr 
)
static
int main ( int  argc,
char **  argv 
)
static int maybe_label ( dxml_element b)
static

References getatrstring().

Referenced by get_bookchapter(), get_table(), and recursebook().

static int recursebook ( dxml_element b)
static
static int replace_external_entity ( const char *  s)
static

Referenced by convert_print().