13 #include "dom/sgml/sgml.h"
14 #include "dom/string.h"
15 #include "util/error.h"
17 /* Backend includes: */
19 #include "dom/sgml/docbook/docbook.h"
20 #include "dom/sgml/html/html.h"
21 #include "dom/sgml/rss/rss.h"
22 #include "dom/sgml/xbel/xbel.h"
26 sgml_info_strcmp(const void *key_
, const void *node_
)
28 struct dom_node
*key
= (struct dom_node
*) key_
;
29 struct sgml_node_info
*node
= (struct sgml_node_info
*) node_
;
31 return dom_string_casecmp(&key
->string
, &node
->string
);
34 struct sgml_info
*sgml_info
[SGML_DOCTYPES
] = {
42 get_sgml_info(enum sgml_document_type doctype
)
44 return doctype
< SGML_DOCTYPES
? sgml_info
[doctype
] : NULL
;