1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident "%Z%%M% %I% %E% SMI"
6 #define Mode_INCLUDED 1
9 namespace SP_NAMESPACE
{
14 alitMode
, // attribute value literals starting with LIT
15 alitaMode
, // attribute value literals starting with LITA
16 aliteMode
, // attribute value literals inside entity
17 talitMode
, // tokenized attribute value literal
20 mdMode
, // markup declaration
21 mdMinusMode
, // markup declaration, also recognize minus
22 mdPeroMode
, // markup declaration, also recognize pero
25 sdcomMode
, // comment in an SGML declaration
26 piMode
, // processing instruction
28 imsMode
, // ignored marked section
29 cmsMode
, // cdata marked section
30 rcmsMode
, // rcdata marked section
31 // These modes are needed only for the prologue.
33 dsMode
, // declaration subset not in marked section
35 dsiMode
, // declaration subset in marked section or
37 plitMode
, // parameter literal starting with LIT
38 plitaMode
, // paramater literal starting with LITA
39 pliteMode
, // parameter literal inside entity
40 sdplitMode
, // parameter literal starting with LIT
41 // in an SGML declaration
42 sdplitaMode
, // parameter literal starting with LIT
43 // in an SGML declaration
44 grpsufMode
, // group suffix
45 mlitMode
, // minimum literal starting with LIT
46 mlitaMode
, // minimum literal starting with LITA
47 asMode
, // data/link/result attribute specification
48 slitMode
, // system id literal starting with LIT
49 slitaMode
, // system id literal starting with LITA
50 sdslitMode
, // system id literal starting with LIT
51 // in an SGML declaration
52 sdslitaMode
, // system id literal starting with LITA
53 // in an SGML declaration
54 // These modes are needed only for the instance.
55 cconMode
, // CDATA content
56 rcconMode
, // RCDATA content
57 cconnetMode
, // CDATA content, recognize NET
58 rcconnetMode
, // RCDATA content, recognize NET
59 rcconeMode
, // RCDATA content inside entity
60 tagMode
, // start- or end-tag
61 econMode
, // element content
62 mconMode
, // mixed content
63 econnetMode
, // element content, recognize NET
64 mconnetMode
// mixed content, recognize NET
67 const int nModes
= mconnetMode
+ 1;
69 enum { minShortrefMode
= econMode
};
75 #endif /* not Mode_INCLUDED */