1 /*
2  * See Copyright for the license status of this software.
3  */
4 
5 #ifndef RSDTD_H
6 #define RSDTD_H
7 
8 
9 #include "RSCommon.h"
10 
11 #define RS_XML(a)  RS_XML_##a
12 
13 #ifdef FROM_GNOME_XML_DIR
14 #include <gnome-xml/valid.h>
15 #include <gnome-xml/parser.h>
16 #include <gnome-xml/parserInternals.h>
17 #include <gnome-xml/tree.h>
18 #include <gnome-xml/entities.h>
19 #else
20 #if 0
21 /* Problems with xmlValidCtxt in libxml2-2.4.[n] where n >= 21*/
22 #include <libxml/valid.h>
23 #endif
24 
25 #include <libxml/parser.h>
26 #include <libxml/parserInternals.h>
27 #include <libxml/tree.h>
28 #include <libxml/entities.h>
29 #endif
30 
31 
32 USER_OBJECT_ RS_XML(createDTDElement)(xmlElementPtr el);
33 USER_OBJECT_ RS_XML(createDTDElementContents)(xmlElementContentPtr vals, xmlElementPtr el, int recursive);
34 USER_OBJECT_ RS_XML(createDTDElementAttributes)(xmlAttributePtr vals, xmlElementPtr el);
35 USER_OBJECT_ RS_XML(createDTDAttribute)(xmlAttributePtr val, xmlElementPtr el);
36 
37 USER_OBJECT_ RS_XML(AttributeEnumerationList)(xmlEnumerationPtr list, xmlAttributePtr attr, xmlElementPtr element);
38 
39 
40 USER_OBJECT_ RS_XML(SequenceContent)(xmlElementContentPtr vals, xmlElementPtr el);
41 
42 USER_OBJECT_ RS_XML(ProcessElements)(xmlElementTablePtr table, xmlParserCtxtPtr ctxt);
43 USER_OBJECT_ RS_XML(ProcessEntities)(xmlEntitiesTablePtr table, xmlParserCtxtPtr ctxt);
44 USER_OBJECT_ RS_XML(createDTDEntity)(xmlEntityPtr entity);
45 
46 USER_OBJECT_ RS_XML(createDTDParts)(xmlDtdPtr dtd, xmlParserCtxtPtr ctxt);
47 
48 USER_OBJECT_ RS_XML(ConstructDTDList)(xmlDocPtr myDoc, int processInternals, xmlParserCtxtPtr ctxt);
49 
50 #endif
51