1 // Copyright (c) 1994 James Clark 2 // See the file COPYING for copying permission. 3 #pragma ident "%Z%%M% %I% %E% SMI" 4 5 #ifndef Mode_INCLUDED 6 #define Mode_INCLUDED 1 7 8 #ifdef SP_NAMESPACE 9 namespace SP_NAMESPACE { 10 #endif 11 12 enum Mode { 13 grpMode, // group 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 18 talitaMode, 19 taliteMode, 20 mdMode, // markup declaration 21 mdMinusMode, // markup declaration, also recognize minus 22 mdPeroMode, // markup declaration, also recognize pero 23 sdMode, 24 comMode, // comment 25 sdcomMode, // comment in an SGML declaration 26 piMode, // processing instruction 27 refMode, // reference 28 imsMode, // ignored marked section 29 cmsMode, // cdata marked section 30 rcmsMode, // rcdata marked section 31 // These modes are needed only for the prologue. 32 proMode, // prologue 33 dsMode, // declaration subset not in marked section 34 // nor in entity 35 dsiMode, // declaration subset in marked section or 36 // in entity 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 65 }; 66 67 const int nModes = mconnetMode + 1; 68 69 enum { minShortrefMode = econMode }; 70 71 #ifdef SP_NAMESPACE 72 } 73 #endif 74 75 #endif /* not Mode_INCLUDED */ 76