############################################################################# # # $RCSfile: messages,v $ # $Date: 1999/09/14 17:09:40 $ # $Source: /home/richard/Xml/RCS/messages,v $ # $Revision: 1.169 $ # $Author: richard $ # ############################################################################# # # Default message catalog for xmlparse. Used by errabort() and # errwarn() (see errabort.c). Used by other stuff too (any time we # want to write out a string that users might see, we want to use # this catalog). # # ALTHOUGH XMLPARSE DOES NOT STRICTLY ENFORCE IT, THIS FILE SHOULD # BE ENCODED WITH UTF-8 CHARACTERS. ALL ASCII CHARACTERS ARE UTF-8 # CHARACTERS, SO CAUTION IS ONLY WARRANTED IF YOU ARE USING ISO # 8859-x UPPER RANGE CHARACTERS. # # The format of this file is trivially simple. The file is made up # lines. Lines form string key-message pairs and comments. Comments # are basically anything after an un-quoted number-sign (#) and may # occur either alone on a line, or after a string key-message pair. # String key-message pairs consist of an arbitrary string followed by # whitespace, followed by a quoted message, e.g.: # # 1 "this is a quoted message" # this is a comment # # Lines may be continued with a backslash, if necessary: # # 1 "this is a very long message that we can't comfortably keep \ # on a single line" # # Use getmessage() to access the messages here (see getmessage.c). # Before calling getmessage() for the first time, be sure to call # create_message_catalog() (also in getmessage.c). E.g.: # # message_catalog *mc; # # /* initialize message catalog to use US English */ # mc = create_message_catalog ("messages.en-US"); # ... # /* oops; syntax error; tell the user how to get help */ # fprintf (stderr, getmessage (mc, "10")); # # /* done with catalog (normally we're never done with it) */ # free_message_catalog (mc); # # Note also that, when you call errabort(), you are making use of # this catalog indirectly. E.g., errabort (40, "malloc error in # %s\n", "main()") actually tries to use message number 40 below in # place of the supplied default, "malloc error in %s\n". # ############################################################################# # # Help, usage messages # 1 "usage: %s %s %s\n" 2 "[-c ] [-C ]\n \ [-d ] [-E ] [-f] [-h] [-l ]\n \ [-m ] [-n] [-p ]\n \ [-s] [-u ] [-v] \n" 3 "\n\ Command-line arguments:\n\ \n \ -c use as the configuration file\n \ -C use as SGML catalog file\n \ -d set datafile directory to \n \ -E display only errors/warnings\n \ -f force GIs/atts in namespaces to validate OK\n \ -h emit a brief help message and exit\n \ -l set debug level to (if enabled)\n \ -m use as message catalog\n \ -n resolve only http: and urn: system ids\n \ -p bypass catalog; use to resolve FPIs\n \ -s report errors/warnings via syslog(3)\n \ -u use to resolve URIs\n \ -v emit version number and exit\n \ (names of XML files or URIs to process)\n\ \n\ Pecking order:\n\ \n \ - Configuration-file directives override command-line args\n \ - Command-line args override compiled-in defaults\n \ - Compiled-in defaults override nothing"; # Exit status 4 means that one or more files triggered validation # errors (messages will have been emitted). # 4 "there were errors\n" 5 "reached max_errors; too many errors/warnings to print for %s\n" 6 "-l switch ignored; debugging facilities not compiled in\n" 7 "debug_level setting in config file ignored; debugging facilities not compiled in\n" # Simple command-line syntax errors (xmlparse.c; see also 70-89) # 10 "command-line syntax error; invoke with -h option for help\n" 11 "no files to process\n" # Basic system errors # 12 "path exceeds system size limit: %s\n" 13 "can't unlink file, %s\n" 14 "timed out waiting for lock to release on %s\n" 15 "buffer too small in %s\n" 16 "absolute path/URI lacks leading slash, %s\n" 17 "cannot fork in %s\n" 18 "cannot create pipe in %s\n" 19 "failed write in %s\n" 20 "failed fdopen in %s\n" 21 "too many open files\n" # Helper app problems # 30 "system error executing shell command, %s\n" 31 "error executing shell command, %s; status = %d\n" 32 "shell command, %s, returned no text\n" 33 "external command timed out, %s\n" 34 "external command produced no output, %s\n" 35 "external command, %s, killed; signal = %d\n" # Memory allocation and re-allocation errors # 40 "memory allocation error in %s\n" 41 "memory re-allocation error in %s\n" 42 "unexpectedly non-null value in %s\n" 43 "unexpectedly null value in %s\n" 44 "unexpected enumerated type in %s\n" 45 "unexpected return value from %s\n" 46 "unexpected value for variable in %s\n" # Grievous programming errors # 50 "wrong type attribute, %s\n" 51 "node, %s, already has children\n" 52 "non-element parsed as STag\n" 53 "tried to merge xml_file structs after document content was reached\n" 54 "tried to dereference ID attribute with xmlparse_env.keep_children set to 'no'" # Security or URI-resolution problems 60 "can't resolve non-http/urn/ftp URI in no-local-file mode, %s\n" 61 "can't resolve pathname or URI, %s\n" 62 "can't resolve localhost URL in no-local-file mode, %s\n" # Initialization errors (readcfg.c; see 10-20 above) # 70 "invalid debug_level (-d %s)\n" 71 "error opening message file, %s\n" 72 "can't cd into %s; using current directory\n" # same as 130 below 73 "can't change into directory, %s\n" # same as 131 below 74 "can't open configuration file, %s; ignoring\n" 75 "unknown keyword, line %d of configuration file; ignoring\n" 76 "bad %s value, %s, line %d in configuration file; ignoring\n" 77 "ignoring negative integer in configuration file, %d\n" 78 "integer too big, %d; ignoring\n" 80 "can't determine current working directory\n" # same as 136 below # Signal-handling stuff (sigstuff.c) # 90 "%s failed\n" # Message-catalog errors (getmessage.c) # 130 "can't cd into %s; using current directory\n" # same as 72 above 131 "can't change into directory, %s\n" # same as 73 above 132 "missing message value, line %d\n" 133 "invalid message key, line %d\n" 134 "invalid message value, line %d\n" 135 "duplicate key, message catalog, line %d\n" 136 "can't determine current working directory\n" # same as 80 above # File processing and I/O errors # 140 "I/O error reading %s\n" 141 "error opening XML file, %s\n" 142 "error reading XML file, %s\n" 145 "unknown byte order, %s, in XML file, %s\n" 146 "missing byte order mark in XML file, %s\n" 147 "EBCDIC character encoding not supported for XML file, %s\n" 148 "seek error %d for file %s\n" 149 "file, %s, must be seekable\n" # 150 "error closing XML file, %s\n" 151 "short read (%d) from file, %s\n" 152 "can't convert %s texts\n" 153 "replacing out-of-range UCS-4 character, %X, with 0x0000FFFD\n" 154 "out-of-sync UTF-8 character at offset %ld in %s; resynchronizing\n" 155 "corrupt UTF-8 character at offset %ld in %s\n" 156 "oops; xml_file structure is already a child\n" 157 "tried to pop element off empty xml_file_stack\n" 158 "can't make an xml_file a child of itself\n" # DTD, SGML catalog errors # 160 "SGML catalog maps pubid %s to an unreadable file, %s\n" 161 "external command, %s, failed to produce a readable file, %s\n" # 170 "can't open SGML catalog file, %s, for reading\n" 172 "error reading SGML catalog file, %s\n" 173 "more than %d catalog files are in your SGML_CATALOG_FILES set; abandoning\n" 175 "public identifier, %s (in %s), already defined; skipping\n" 176 "catalog filename, %s, is too long\n" 179 "too many errors; skipping remainder of %s\n" # UTF/UCS conversion utility errors # 180 "corrupt UTF-8 character in string %s\n" 181 "out-of-sync UTF-8 char at offset %ld in string %s; resynchronizing\n" 182 "corrupt UTF-16 character, %X,%X\n" ############################################################################# # Errors in parser. These must all have the following format: # "error message, %s, line %d: %s\n" where the first %s will end # up being the filename, the %d will be the line number, and the # last %s will be the token that triggered the error. # General parsing, I/O errors: # 300 "general failure parsing XML document, %s, line %d: %s\n" 301 "bogus document prolog, %s, line %d: %s\n" 302 "superfluous material at end-of-file, %s, line %d: %s\n" 303 "parsing error, %s, line %d: %s\n" 304 "superfluous keyword, %s, line %d: %s\n" 305 "error in external file included via decl ending it, %s, line %d; for: %s\n" # 320 "I/O error reading %s at line %d: %s\n" 321 "improperly terminated construct; line numbers may be off, %s, line %d: %s\n" # 330 "out-of-sync UTF-8 character, %s, line %d: %s\n" 331 "corrupt UTF-8 character, %s, line %d: %s\n" 332 "out-of-range character, %s, line %d: %s\n" 333 "unknown Shift-JIS character, %s, line %d: %s\n" # ' characters in parameter entity replacement text, %s, line %d: %s\n" # 780 "missing end tag, %s, line %d: %s\n" 781 "invalid entity name, %s, line %d: %s\n" # Errors in general and unparsed entities: # 800 "discarding duplicate entity declaration, %s, line %d: %s\n" 801 "incompatible entity redeclaration, %s, line %d: %s\n" 802 "apparent entity declaration lacks exclamation point, %s, line %d: %s\n" 803 "external entity declared in DTD of document declared as standalone, %s, line %d: %s\n" 810 "notation name is not (yet) defined, %s, line %d: %s\n" 811 "end of DTD; missing declaration for notation used in entity decl, %s, line %d; notation: %s\n" 812 "end of DTD; missing declaration for notation used in attlist decl, %s, line %d; notation: %s\n" # 820 "external entity declaration lacks system identifier (required in XML), %s, line %d: %s\n" 821 "entity has a type that is illegal in XML, %s, line %d: %s\n" 822 "bypassed ampersand in literal text of general entity, %s, line %d: %s\n" # 830 "default entity declaration is illegal in XML, %s, line %d: %s\n" 840 "malformed entity declaration, %s, line %d; after: %s\n" 841 "extra material in entity declaration, %s, line %d: %s\n" 842 "entity definition in internal DTD subset contains a parameter entity reference, %s, line %d: %s\n" # <[ INCLUDE/IGNORE marked sections # 850 "unterminated conditional, %s, line %d; detected at: %s\n" 851 "improperly nested conditional, %s, line %d: %s\n" 852 "missing [ in conditional section, %s, line %d: %s\n" # 860 "ignoring illegal marked section in document content, %s, line %d: %s\n" 861 "illegal marked section in internal DTD subset, %s, line %d: %s\n" 862 "non-INCLUDE/IGNORE marked section encountered while scanning DTD, %s, line %d: %s\n" 863 "found an illegal second DOCTYPE declaration, %s, line %d: %s\n" #