2 Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3 See the file COPYING for copying permission.
6 #ifndef XmlRole_INCLUDED
7 #define XmlRole_INCLUDED 1
19 XML_ROLE_INSTANCE_START
,
20 XML_ROLE_DOCTYPE_NAME
,
21 XML_ROLE_DOCTYPE_SYSTEM_ID
,
22 XML_ROLE_DOCTYPE_PUBLIC_ID
,
23 XML_ROLE_DOCTYPE_INTERNAL_SUBSET
,
24 XML_ROLE_DOCTYPE_CLOSE
,
25 XML_ROLE_GENERAL_ENTITY_NAME
,
26 XML_ROLE_PARAM_ENTITY_NAME
,
27 XML_ROLE_ENTITY_VALUE
,
28 XML_ROLE_ENTITY_SYSTEM_ID
,
29 XML_ROLE_ENTITY_PUBLIC_ID
,
30 XML_ROLE_ENTITY_COMPLETE
,
31 XML_ROLE_ENTITY_NOTATION_NAME
,
32 XML_ROLE_NOTATION_NAME
,
33 XML_ROLE_NOTATION_SYSTEM_ID
,
34 XML_ROLE_NOTATION_NO_SYSTEM_ID
,
35 XML_ROLE_NOTATION_PUBLIC_ID
,
36 XML_ROLE_ATTRIBUTE_NAME
,
37 XML_ROLE_ATTRIBUTE_TYPE_CDATA
,
38 XML_ROLE_ATTRIBUTE_TYPE_ID
,
39 XML_ROLE_ATTRIBUTE_TYPE_IDREF
,
40 XML_ROLE_ATTRIBUTE_TYPE_IDREFS
,
41 XML_ROLE_ATTRIBUTE_TYPE_ENTITY
,
42 XML_ROLE_ATTRIBUTE_TYPE_ENTITIES
,
43 XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN
,
44 XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS
,
45 XML_ROLE_ATTRIBUTE_ENUM_VALUE
,
46 XML_ROLE_ATTRIBUTE_NOTATION_VALUE
,
47 XML_ROLE_ATTLIST_ELEMENT_NAME
,
48 XML_ROLE_IMPLIED_ATTRIBUTE_VALUE
,
49 XML_ROLE_REQUIRED_ATTRIBUTE_VALUE
,
50 XML_ROLE_DEFAULT_ATTRIBUTE_VALUE
,
51 XML_ROLE_FIXED_ATTRIBUTE_VALUE
,
52 XML_ROLE_ELEMENT_NAME
,
54 XML_ROLE_CONTENT_EMPTY
,
55 XML_ROLE_CONTENT_PCDATA
,
58 XML_ROLE_GROUP_CLOSE_REP
,
59 XML_ROLE_GROUP_CLOSE_OPT
,
60 XML_ROLE_GROUP_CLOSE_PLUS
,
61 XML_ROLE_GROUP_CHOICE
,
62 XML_ROLE_GROUP_SEQUENCE
,
63 XML_ROLE_CONTENT_ELEMENT
,
64 XML_ROLE_CONTENT_ELEMENT_REP
,
65 XML_ROLE_CONTENT_ELEMENT_OPT
,
66 XML_ROLE_CONTENT_ELEMENT_PLUS
,
70 XML_ROLE_INNER_PARAM_ENTITY_REF
,
72 XML_ROLE_PARAM_ENTITY_REF
75 typedef struct prolog_state
{
76 int (*handler
)(struct prolog_state
*state
,
83 unsigned includeLevel
;
88 void XmlPrologStateInit(PROLOG_STATE
*);
90 void XmlPrologStateInitExternalEntity(PROLOG_STATE
*);
93 #define XmlTokenRole(state, tok, ptr, end, enc) \
94 (((state)->handler)(state, tok, ptr, end, enc))
100 #endif /* not XmlRole_INCLUDED */