home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / lang / sgmls / src / msg.h < prev    next >
C/C++ Source or Header  |  1994-07-10  |  20KB  |  259 lines

  1. /*
  2. Severity codes:
  3. I information (not an SGML error at all)
  4. W warning (an SGML markup error but it knows what you mean)
  5. E error
  6. C critical (fatal)
  7.  
  8. Type codes:
  9. R resource
  10. C ?context/content
  11. M minimization
  12. Q quantity
  13. S syntax
  14. D declaration
  15. U unsupported feature
  16. */
  17. struct {
  18.      char *text;
  19.      char severity;
  20.      char type;
  21. } messages[] = {
  22. /*   0 */ {0},
  23. /*   1 */ {"%s element not allowed at this point in %s element", 'E', 'C'},
  24. /*   2 */ {"%s markup declaration not permitted here; declaration ended", 'E', 'D'},
  25. /*   3 */ {"Length of name, number, or token exceeded NAMELEN or LITLEN limit", 'E', 'Q'},
  26. /*   4 */ {"Non-SGML character ignored", 'E', 'S'},
  27. /*   5 */ {"%s end-tag ignored: doesn't end any open element (current is %s)", 'E', 'C'},
  28. /*   6 */ {"%s start-tag exceeds open element limit; possible lies from %s on", 'E', 'Q'},
  29. /*   7 */ {"Start-tag omitted from %s with empty content", 'E', 'M'},
  30. /*   8 */ {"Illegal entity end in markup or delimited text", 'E', 'S'},
  31. /*   9 */ {"Incorrect character in markup; markup terminated", 'E', 'S'},
  32. /*  10 */ {"Data not allowed at this point in %s element", 'E', 'C'},
  33. /*  11 */ {"No element declaration for %s end-tag GI; end-tag ignored", 'E', 'C'},
  34. /*  12 */ {"%s name ignored: not a syntactically valid SGML name", 'E', 'S'},
  35. /*  13 */ {"%s = \"%s\" attribute ignored: not defined for this element", 'E', 'C'},
  36. /*  14 */ {"%s = \"%s\" attribute value defaulted: invalid character", 'E', 'S'},
  37. /*  15 */ {"%s = \"%s\" attribute value defaulted: token too long", 'E', 'Q'},
  38. /*  16 */ {"%s = \"%s\" attribute value defaulted: too many tokens", 'E', 'C'},
  39. /*  17 */ {"%s = \"%s\" attribute value defaulted: wrong token type", 'E', 'C'},
  40. /*  18 */ {"%s = \"%s\" attribute value defaulted: token not in group", 'E', 'C'},
  41. /*  19 */ {"Required %s attribute was not specified; may affect processing", 'E', 'C'},
  42. /*  20 */ {"%s end-tag implied by %s end-tag; not minimizable", 'E', 'M'},
  43. /*  21 */ {"%s start-tag implied by %s start-tag; not minimizable", 'W', 'M'},
  44. /*  22 */ {"Possible attributes treated as data because none were defined", 'E', 'C'},
  45. /*  23 */ {"Duplicate specification occurred for \"%s\"; may affect processing", 'E', 'D'},
  46. /*  24 */ {"\"%s\" keyword invalid; declaration terminated", 'E', 'D'},
  47. /*  25 */ {"%s = \"%s\" attribute defaulted: empty string not allowed for token", 'E', 'C'},
  48. /*  26 */ {"Marked section end ignored; not in a marked section", 'E', 'S'},
  49. /*  27 */ {"Marked section start ignored; %s marked sections open already", 'E', 'Q'},
  50. /*  28 */ {"One or more parameters missing; declaration ignored", 'E', 'D'},
  51. /*  29 */ {"\"PUBLIC\" or \"SYSTEM\" required; declaration terminated", 'E', 'D'},
  52. /*  30 */ {"%s element ended prematurely; required %s omitted", 'E', 'C'},
  53. /*  31 */ {"Entity \"%s\" terminated: could not read file", 'E', 'R'},
  54. /*  32 */ {"Could not open file for entity \"%s\"; entity reference ignored", 'E', 'R'},
  55. /*  33 */ {"Insufficient main memory; unable to continue parsing", 'C', 'R'},
  56. /*  34 */ {"%s entity reference ignored; exceeded open entity limit (%s)", 'E', 'Q'},
  57. /*  35 */ {"No declaration for entity \"%s\"; reference ignored", 'E', 'C'},
  58. /*  36 */ {"%s entity reference occurred within own text; reference ignored", 'E', 'C'},
  59. /*  37 */ {"Entity nesting level out of sync", 'E', 'S'},
  60. /*  38 */ {"Parameter entity text cannot have %s keyword; keyword ignored", 'E', 'D'},
  61. /*  39 */ {"%s end-tag implied by %s start-tag; not minimizable", 'W', 'M'},
  62. /*  40 */ {"Start-tag minimization ignored; element has required attribute", 'E', 'D'},
  63. /*  41 */ {"Required %s element cannot be excluded from %s element", 'E', 'C'},
  64. /*  42 */ {"No DOCTYPE declaration; document type is unknown", 'E', 'C'},
  65. /*  43 */ {"Undefined %1$s start-tag GI was used in DTD; \"%1$s O O ANY\" assumed", 'E', 'C'},
  66. /*  44 */ {"Invalid character(s) ignored; attempting to resume DOCTYPE subset", 'E', 'S'},
  67. /*  45 */ {"No declaration for entity \"%s\"; default definition used", 'I', 'C'},
  68. /*  46 */ {"%s end-tag implied by NET delimiter; not minimizable", 'W', 'M'},
  69. /*  47 */ {"%s end-tag implied by data; not minimizable", 'W', 'M'},
  70. /*  48 */ {"%s end-tag implied by short start-tag (no GI); not minimizable", 'W', 'M'},
  71. /*  49 */ {"%s start-tag implied by data; not minimizable", 'W', 'M'},
  72. /*  50 */ {"%s start-tag implied by short start-tag (no GI); not minimizable", 'W', 'M'},
  73. /*  51 */ {"Short end-tag (no GI) ignored: no open elements", 'E', 'C'},
  74. /*  52 */ {"No definition for %1$s document type; \"%1$s O O ANY\" assumed", 'E', 'C'},
  75. /*  53 */ {"No definition for %1$s implied start-tag; \"%1$s O O ANY\" assumed", 'E', 'C'},
  76. /*  54 */ {"%s element ended prematurely; required subelement omitted", 'E', 'C'},
  77. /*  55 */ {"Content model token %s: connectors conflict; first was used", 'E', 'D'},
  78. /*  56 */ {"Duplicate specification occurred for \"%s\"; duplicate ignored", 'E', 'D'},
  79. /*  57 */ {"Bad end-tag in R/CDATA element; treated as short (no GI) end-tag", 'E', 'S'},
  80. /*  58 */ {"Start-tag minimization should be \"-\" for element with declared content", 'I', 'D'},
  81. /*  59 */ {"Reference to PI entity not permitted here; reference ignored", 'E', 'S'},
  82. /*  60 */ {"Non-SGML character found; should have been character reference", 'W', 'S'},
  83. /*  61 */ {"Numeric character reference exceeds 255; reference ignored", 'E', 'S'},
  84. /*  62 */ {"Invalid alphabetic character reference ignored", 'E', 'S'},
  85. /*  63 */ {"Invalid character in minimum literal; character ignored", 'E', 'S'},
  86. /*  64 */ {"Keyword %s ignored; \"%s\" is not a valid marked section keyword", 'E', 'D'},
  87. /*  65 */ {"Parameter entity name longer than (NAMELEN-1); truncated", 'E', 'Q'},
  88. /*  66 */ {"Start-tag length exceeds TAGLEN limit; parsed correctly", 'W', 'Q'},
  89. /*  67 */ {"%s attribute defaulted: FIXED attribute must equal default", 'W', 'C'},
  90. /*  68 */ {"Duplicate specification occurred for \"%s\"; duplicate ignored", 'I', 'D'},
  91. /*  69 */ {"%s = \"%s\" IDREF attribute ignored: referenced ID does not exist", 'E', 'C'},
  92. /*  70 */ {"%s = \"%s\" IDREF attribute ignored: number of IDs in list exceeds GRPCNT limit", 'E', 'Q'},
  93. /*  71 */ {"%s = \"%s\" ID attribute ignored: ID in use for another element", 'E', 'C'},
  94. /*  72 */ {"%s = \"%s\" ENTITY attribute not general entity; may affect processing", 'E', 'C'},
  95. /*  73 */ {"%s = \"%s\" attribute ignored: previously specified in same list", 'W', 'C'},
  96. /*  74 */ {"\"?\" = \"%s\" name token ignored: not in any group in this list", 'E', 'C'},
  97. /*  75 */ {"Normalized attribute specification length over ATTSPLEN limit", 'E', 'Q'},
  98. /*  76 */ {"%s = \"%s\" NOTATION ignored: element content is empty", 'E', 'C'},
  99. /*  77 */ {"%s = \"%s\" NOTATION undefined: may affect processing", 'E', 'C'},
  100. /*  78 */ {"Entity \"%2$s\" has undefined notation \"%1$s\"", 'E', 'C'},
  101. /*  79 */ {"%s = \"%s\" default attribute value not in group; #IMPLIED used", 'E', 'C'},
  102. /*  80 */ {"#CURRENT default value treated as #IMPLIED for %s ID attribute", 'E', 'D'},
  103. /*  81 */ {"ID attribute %s cannot have a default value; treated as #IMPLIED", 'E', 'D'},
  104. /*  82 */ {"%s attribute must be token, not empty string; treated as #IMPLIED", 'E', 'D'},
  105. /*  83 */ {"NOTATION attribute ignored for EMPTY element", 'E', 'D'},
  106. /*  84 */ {"%s = \"%s\" NOTATION ignored: content reference specified", 'E', 'C'},
  107. /*  85 */ {"#CONREF default value treated as #IMPLIED for EMPTY element", 'W', 'D'},
  108. /*  86 */ {"%s = \"%s\" entity not data entity; may affect processing", 'E', 'C'},
  109. /*  87 */ {"End-tag minimization should be \"O\" for EMPTY element", 'I', 'D'},
  110. /*  88 */ {"Formal public identifier \"%s\" invalid; treated as informal", 'E', 'S'},
  111. /*  89 */ {"Out-of-context %2$s start-tag ended %1$s document element (and parse)", 'E', 'C'},
  112. /*  90 */ {"\"%s\" keyword is for unsupported feature; declaration terminated", 'E', 'D'},
  113. /*  91 */ {"Attribute specification list in prolog cannot be empty", 'E', 'D'},
  114. /*  92 */ {"Document ended invalidly within a literal; parsing ended", 'C', 'S'},
  115. /*  93 */ {"General entity \"%s\" in short reference map \"%s\" undeclared", 'E', 'D'},
  116. /*  94 */ {"Could not reopen file to continue entity \"%s\"; entity terminated", 'E', 'R'},
  117. /*  95 */ {"Out-of-con