version 1.17, 2008/12/06 21:10:31 |
version 1.20, 2008/12/08 12:46:28 |
Line 34 static ssize_t xml_begintag(struct md_mbuf *, void *, |
|
Line 34 static ssize_t xml_begintag(struct md_mbuf *, void *, |
|
const struct md_args *, |
const struct md_args *, |
enum md_ns, int, |
enum md_ns, int, |
const int *, const char **); |
const int *, const char **); |
|
static ssize_t xml_beginstring(struct md_mbuf *, |
|
const struct md_args *, |
|
const char *, size_t); |
|
static ssize_t xml_endstring(struct md_mbuf *, |
|
const struct md_args *, |
|
const char *, size_t); |
static int xml_begin(struct md_mbuf *, |
static int xml_begin(struct md_mbuf *, |
const struct md_args *, |
const struct md_args *, |
const struct tm *, |
const struct tm *, |
const char *, const char *, |
const char *, const char *, |
const char *, const char *); |
enum roffmsec, const char *); |
static int xml_end(struct md_mbuf *, |
static int xml_end(struct md_mbuf *, |
const struct md_args *); |
const struct md_args *); |
static ssize_t xml_printtagname(struct md_mbuf *, |
static ssize_t xml_printtagname(struct md_mbuf *, |
Line 117 xml_printtagname(struct md_mbuf *mbuf, enum md_ns ns, |
|
Line 123 xml_printtagname(struct md_mbuf *mbuf, enum md_ns ns, |
|
static int |
static int |
xml_begin(struct md_mbuf *mbuf, const struct md_args *args, |
xml_begin(struct md_mbuf *mbuf, const struct md_args *args, |
const struct tm *tm, const char *os, |
const struct tm *tm, const char *os, |
const char *title, const char *section, |
const char *title, enum roffmsec section, |
const char *vol) |
const char *vol) |
{ |
{ |
|
|
Line 125 xml_begin(struct md_mbuf *mbuf, const struct md_args * |
|
Line 131 xml_begin(struct md_mbuf *mbuf, const struct md_args * |
|
"encoding=\"UTF-8\"?>\n", NULL)) |
"encoding=\"UTF-8\"?>\n", NULL)) |
return(0); |
return(0); |
return(ml_puts(mbuf, "<mdoc xmlns:block=\"block\" " |
return(ml_puts(mbuf, "<mdoc xmlns:block=\"block\" " |
"xmlns:special=\"special\" " |
"xmlns:body=\"body\" " |
|
"xmlns:head=\"head\" " |
"xmlns:inline=\"inline\">", NULL)); |
"xmlns:inline=\"inline\">", NULL)); |
} |
} |
|
|
Line 141 xml_end(struct md_mbuf *mbuf, const struct md_args *ar |
|
Line 148 xml_end(struct md_mbuf *mbuf, const struct md_args *ar |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static ssize_t |
static ssize_t |
|
xml_beginstring(struct md_mbuf *mbuf, |
|
const struct md_args *args, |
|
const char *buf, size_t sz) |
|
{ |
|
|
|
return(0); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static ssize_t |
|
xml_endstring(struct md_mbuf *mbuf, |
|
const struct md_args *args, |
|
const char *buf, size_t sz) |
|
{ |
|
|
|
return(0); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static ssize_t |
xml_begintag(struct md_mbuf *mbuf, void *data, |
xml_begintag(struct md_mbuf *mbuf, void *data, |
const struct md_args *args, enum md_ns ns, |
const struct md_args *args, enum md_ns ns, |
int tok, const int *argc, const char **argv) |
int tok, const int *argc, const char **argv) |
|
|
xml_alloc(void **p) |
xml_alloc(void **p) |
{ |
{ |
|
|
|
*p = NULL; |
return(1); |
return(1); |
} |
} |
|
|
Line 211 md_init_xml(const struct md_args *args, |
|
Line 241 md_init_xml(const struct md_args *args, |
|
cbs.ml_endtag = xml_endtag; |
cbs.ml_endtag = xml_endtag; |
cbs.ml_begin = xml_begin; |
cbs.ml_begin = xml_begin; |
cbs.ml_end = xml_end; |
cbs.ml_end = xml_end; |
|
cbs.ml_beginstring = xml_beginstring; |
|
cbs.ml_endstring = xml_endstring; |
|
|
return(mlg_alloc(args, rbuf, mbuf, &cbs)); |
return(mlg_alloc(args, rbuf, mbuf, &cbs)); |
} |
} |