tagDT,
tagLEGEND,
tagLABEL,
+ tagDL,
+ tagDD,
} tag_type;
typedef struct mod_chxj_config mod_chxj_config;
#define has_child(c) ((strcasecmp(c, "base" ) != 0) \
&& (strcasecmp(c, "meta" ) != 0) \
&& (strcasecmp(c, "br" ) != 0) \
- && (strcasecmp(c, "dt" ) != 0) \
- && (strcasecmp(c, "dd" ) != 0) \
&& (strcasecmp(c, "hr" ) != 0) \
&& (strcasecmp(c, "img" ) != 0) \
&& (strcasecmp(c, "input" ) != 0) \
static char *s_chtml10_end_option_tag (void *pdoc, Node *node);
static char *s_chtml10_start_div_tag (void *pdoc, Node *node);
static char *s_chtml10_end_div_tag (void *pdoc, Node *node);
-static char *s_chtml10_start_dl_tag (void *pdoc, Node *node);
-static char *s_chtml10_end_dl_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dl_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dl_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dt_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dt_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dd_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dd_tag (void *pdoc, Node *node);
static void s_init_chtml10(chtml10_t *chtml, Doc *doc, request_rec *r, device_table *spec);
},
/* tagDT */
{
- NULL,
- NULL,
+ s_chtml10_start_dt_tag,
+ s_chtml10_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_chtml10_start_dd_tag,
+ s_chtml10_end_dd_tag,
},
};
return chtml10->out;
}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_start_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ r = doc->r;
+
+ chtml10->out = apr_pstrcat(r->pool, chtml10->out, "<dt>", NULL);
+
+ return chtml10->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_end_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ r = doc->r;
+
+ chtml10->out = apr_pstrcat(r->pool, chtml10->out, "\n", NULL);
+
+ return chtml10->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_start_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ r = doc->r;
+
+ chtml10->out = apr_pstrcat(r->pool, chtml10->out, "<dd>", NULL);
+
+ return chtml10->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_end_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ r = doc->r;
+
+ chtml10->out = apr_pstrcat(r->pool, chtml10->out, "\n", NULL);
+
+ return chtml10->out;
+}
+
/*
* vim:ts=2 et
*/
static char *s_chtml20_end_div_tag (void *pdoc, Node *node);
static char *s_chtml20_start_dl_tag (void *pdoc, Node *node);
static char *s_chtml20_end_dl_tag (void *pdoc, Node *node);
+static char *s_chtml20_start_dt_tag (void *pdoc, Node *node);
+static char *s_chtml20_end_dt_tag (void *pdoc, Node *node);
+static char *s_chtml20_start_dd_tag (void *pdoc, Node *node);
+static char *s_chtml20_end_dd_tag (void *pdoc, Node *node);
static void s_init_chtml20(chtml20_t *chtml, Doc *doc, request_rec *r, device_table *spec);
},
/* tagDT */
{
- NULL,
- NULL,
+ s_chtml20_start_dt_tag,
+ s_chtml20_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_chtml20_start_dd_tag,
+ s_chtml20_end_dd_tag,
},
};
return chtml20->out;
}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_start_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml20_t *chtml20;
+ Doc *doc;
+ request_rec *r;
+
+ chtml20 = GET_CHTML20(pdoc);
+ doc = chtml20->doc;
+ r = doc->r;
+
+ chtml20->out = apr_pstrcat(r->pool, chtml20->out, "<dt>", NULL);
+
+ return chtml20->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_end_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml20_t *chtml20;
+ Doc *doc;
+ request_rec *r;
+
+ chtml20 = GET_CHTML20(pdoc);
+ doc = chtml20->doc;
+ r = doc->r;
+
+ chtml20->out = apr_pstrcat(r->pool, chtml20->out, "\n", NULL);
+
+ return chtml20->out;
+}
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_start_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml20_t *chtml20;
+ Doc *doc;
+ request_rec *r;
+
+ chtml20 = GET_CHTML20(pdoc);
+ doc = chtml20->doc;
+ r = doc->r;
+
+ chtml20->out = apr_pstrcat(r->pool, chtml20->out, "<dd>", NULL);
+
+ return chtml20->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_end_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml20_t *chtml20;
+ Doc *doc;
+ request_rec *r;
+
+ chtml20 = GET_CHTML20(pdoc);
+ doc = chtml20->doc;
+ r = doc->r;
+
+ chtml20->out = apr_pstrcat(r->pool, chtml20->out, "\n", NULL);
+
+ return chtml20->out;
+}
+
/*
* vim:ts=2 et
*/
static char *s_chtml30_text_tag (void *pdoc, Node *node);
static char *s_chtml30_start_dl_tag (void *pdoc, Node *node);
static char *s_chtml30_end_dl_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_dt_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_dt_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_dd_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_dd_tag (void *pdoc, Node *node);
static void s_init_chtml30(chtml30_t *chtml, Doc *doc, request_rec *r, device_table *spec);
},
/* tagDT */
{
- NULL,
- NULL,
+ s_chtml30_start_dt_tag,
+ s_chtml30_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_chtml30_start_dd_tag,
+ s_chtml30_end_dd_tag,
},
};
/**
- * It is a handler who processes the DLtag.
+ * It is a handler who processes the DL tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
return chtml30->out;
}
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DL tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_start_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
+
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ r = doc->r;
+
+ chtml30->out = apr_pstrcat(r->pool, chtml30->out, "<dt>", NULL);
+
+ return chtml30->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_end_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
+
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ r = doc->r;
+
+ chtml30->out = apr_pstrcat(r->pool, chtml30->out, "\n", NULL);
+
+ return chtml30->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_start_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
+
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ r = doc->r;
+
+ chtml30->out = apr_pstrcat(r->pool, chtml30->out, "<dd>", NULL);
+
+ return chtml30->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_end_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
+
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ r = doc->r;
+
+ chtml30->out = apr_pstrcat(r->pool, chtml30->out, "\n", NULL);
+
+ return chtml30->out;
+}
+
+
/*
* vim:ts=2 et
*/
static char *s_hdml_end_img_tag (void *pdoc, Node *node);
static char *s_hdml_start_div_tag (void *pdoc, Node *node);
static char *s_hdml_end_div_tag (void *pdoc, Node *node);
+static char *s_hdml_start_dt_tag (void *pdoc, Node *node);
+static char *s_hdml_end_dt_tag (void *pdoc, Node *node);
+static char *s_hdml_start_dd_tag (void *pdoc, Node *node);
+static char *s_hdml_end_dd_tag (void *pdoc, Node *node);
static char *s_get_form_no (request_rec *r, hdml_t *hdml);
},
/* tagDT */
{
- NULL,
- NULL,
+ s_hdml_start_dt_tag,
+ s_hdml_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_hdml_start_dd_tag,
+ s_hdml_end_dd_tag,
},
};
return hdml->out;
}
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the HDML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_hdml_start_dt_tag(void *pdoc, Node *UNUSED(node))
+{
+ hdml_t *hdml;
+ Doc *doc;
+
+ hdml = GET_HDML(pdoc);
+ doc = hdml->doc;
+
+ s_output_to_hdml_out(hdml, "<LINE>");
+
+ return hdml->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the HDML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_hdml_end_dt_tag(void *pdoc, Node *UNUSED(node))
+{
+ hdml_t *hdml;
+ Doc *doc;
+
+ hdml = GET_HDML(pdoc);
+ doc = hdml->doc;
+
+ s_output_to_hdml_out(hdml, "\n");
+
+ return hdml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the HDML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_hdml_start_dd_tag(void *pdoc, Node *UNUSED(node))
+{
+ hdml_t *hdml;
+ Doc *doc;
+
+ hdml = GET_HDML(pdoc);
+ doc = hdml->doc;
+
+ s_output_to_hdml_out(hdml, "<WRAP> <TAB>");
+
+ return hdml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the HDML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_hdml_end_dd_tag(void *pdoc, Node *UNUSED(node))
+{
+ hdml_t *hdml;
+ Doc *doc;
+
+ hdml = GET_HDML(pdoc);
+ doc = hdml->doc;
+
+ s_output_to_hdml_out(hdml, "\n");
+
+ return hdml->out;
+}
+
/*
* vim:ts=2 et
*/
static char *s_jhtml_text_tag (void *pdoc, Node *node);
static char *s_jhtml_start_dl_tag (void *pdoc, Node *node);
static char *s_jhtml_end_dl_tag (void *pdoc, Node *node);
+static char *s_jhtml_start_dt_tag (void *pdoc, Node *node);
+static char *s_jhtml_end_dt_tag (void *pdoc, Node *node);
+static char *s_jhtml_start_dd_tag (void *pdoc, Node *node);
+static char *s_jhtml_end_dd_tag (void *pdoc, Node *node);
static void s_init_jhtml(
jhtml_t *jhtml,
},
/* tagDT */
{
- NULL,
- NULL,
+ s_jhtml_start_dt_tag,
+ s_jhtml_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_jhtml_start_dd_tag,
+ s_jhtml_end_dd_tag,
},
};
return jhtml->out;
}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_jhtml_start_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ jhtml_t *jhtml;
+ Doc *doc;
+ request_rec *r;
+
+ jhtml = GET_JHTML(pdoc);
+ doc = jhtml->doc;
+ r = doc->r;
+
+
+ jhtml->out = apr_pstrcat(r->pool, jhtml->out, "<dt>", NULL);
+
+ return jhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_jhtml_end_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ jhtml_t *jhtml;
+ Doc *doc;
+ request_rec *r;
+
+ jhtml = GET_JHTML(pdoc);
+ doc = jhtml->doc;
+ r = doc->r;
+
+
+ jhtml->out = apr_pstrcat(r->pool, jhtml->out, "\n", NULL);
+
+ return jhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_jhtml_start_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ jhtml_t *jhtml;
+ Doc *doc;
+ request_rec *r;
+
+ jhtml = GET_JHTML(pdoc);
+ doc = jhtml->doc;
+ r = doc->r;
+
+ jhtml->out = apr_pstrcat(r->pool, jhtml->out, "<dd>", NULL);
+
+ return jhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_jhtml_end_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ jhtml_t *jhtml;
+ Doc *doc;
+ request_rec *r;
+
+ jhtml = GET_JHTML(pdoc);
+ doc = jhtml->doc;
+ r = doc->r;
+
+ jhtml->out = apr_pstrcat(r->pool, jhtml->out, "\n", NULL);
+
+ return jhtml->out;
+}
/*
* vim:ts=2 et
*/
static char *s_xhtml_1_0_chxjif_tag (void *pdoc, Node *node);
static char *s_xhtml_1_0_start_dl_tag (void *pdoc, Node *node);
static char *s_xhtml_1_0_end_dl_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_start_dt_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_end_dt_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_start_dd_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_end_dd_tag (void *pdoc, Node *node);
static void s_init_xhtml(xhtml_t *xhtml, Doc *doc, request_rec *r, device_table *spec);
static char* s_xhtml_1_0_text_tag(void *pdoc, Node *child);
},
/* tagDT */
{
- NULL,
- NULL,
+ s_xhtml_1_0_start_dt_tag,
+ s_xhtml_1_0_end_dt_tag,
},
/* tagLEGEND */
{
},
/* tagDD */
{
- NULL,
- NULL,
+ s_xhtml_1_0_start_dd_tag,
+ s_xhtml_1_0_end_dd_tag,
},
};
return xhtml->out;
}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_start_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ request_rec *r = doc->r;
+ xhtml->out = apr_pstrcat(r->pool, xhtml->out, "<dt>", NULL);
+ return xhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DT tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_end_dt_tag(void *pdoc, Node *UNUSED(child))
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ request_rec *r = doc->r;
+ xhtml->out = apr_pstrcat(r->pool, xhtml->out, "\n", NULL);
+ return xhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_start_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ request_rec *r = doc->r;
+ xhtml->out = apr_pstrcat(r->pool, xhtml->out, "<dd>", NULL);
+ return xhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the DD tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The DD tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_end_dd_tag(void *pdoc, Node *UNUSED(child))
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ request_rec *r = doc->r;
+ xhtml->out = apr_pstrcat(r->pool, xhtml->out, "\n", NULL);
+ return xhtml->out;
+}
/*
* vim:ts=2 et
*/