1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Copyright 1999-2005 The Apache Software Foundation.
   7  *
   8  * Licensed under the Apache License, Version 2.0 (the "License");
   9  * you may not use this file except in compliance with the License.
  10  * You may obtain a copy of the License at
  11  *
  12  *     http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 /*
  21  * $Id: XPATHErrorResources.java,v 1.2.4.1 2005/09/15 01:29:15 jeffsuttor Exp $
  22  */
  23 package com.sun.org.apache.xpath.internal.res;
  24 
  25 import java.util.ListResourceBundle;
  26 
  27 /**
  28  * Set up error messages.
  29  * We build a two dimensional array of message keys and
  30  * message strings. In order to add a new message here,
  31  * you need to first add a Static string constant for the
  32  * Key and update the contents array with Key, Value pair
  33   * Also you need to  update the count of messages(MAX_CODE)or
  34  * the count of warnings(MAX_WARNING) [ Information purpose only]
  35  * @xsl.usage advanced
  36  */
  37 public class XPATHErrorResources extends ListResourceBundle
  38 {
  39 
  40 /*
  41  * General notes to translators:
  42  *
  43  * This file contains error and warning messages related to XPath Error
  44  * Handling.
  45  *
  46  *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
  47  *     components.
  48  *     XSLT is an acronym for "XML Stylesheet Language: Transformations".
  49  *     XSLTC is an acronym for XSLT Compiler.
  50  *
  51  *  2) A stylesheet is a description of how to transform an input XML document
  52  *     into a resultant XML document (or HTML document or text).  The
  53  *     stylesheet itself is described in the form of an XML document.
  54  *
  55  *  3) A template is a component of a stylesheet that is used to match a
  56  *     particular portion of an input document and specifies the form of the
  57  *     corresponding portion of the output document.
  58  *
  59  *  4) An element is a mark-up tag in an XML document; an attribute is a
  60  *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
  61  *     "elem" is an element name, "attr" and "attr2" are attribute names with
  62  *     the values "val" and "val2", respectively.
  63  *
  64  *  5) A namespace declaration is a special attribute that is used to associate
  65  *     a prefix with a URI (the namespace).  The meanings of element names and
  66  *     attribute names that use that prefix are defined with respect to that
  67  *     namespace.
  68  *
  69  *  6) "Translet" is an invented term that describes the class file that
  70  *     results from compiling an XML stylesheet into a Java class.
  71  *
  72  *  7) XPath is a specification that describes a notation for identifying
  73  *     nodes in a tree-structured representation of an XML document.  An
  74  *     instance of that notation is referred to as an XPath expression.
  75  *
  76  *  8) The context node is the node in the document with respect to which an
  77  *     XPath expression is being evaluated.
  78  *
  79  *  9) An iterator is an object that traverses nodes in the tree, one at a time.
  80  *
  81  *  10) NCName is an XML term used to describe a name that does not contain a
  82  *     colon (a "no-colon name").
  83  *
  84  *  11) QName is an XML term meaning "qualified name".
  85  */
  86 
  87   /*
  88    * static variables
  89    */
  90   public static final String ERROR0000 = "ERROR0000";
  91   public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =
  92          "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
  93   public static final String ER_CURRENT_TAKES_NO_ARGS =
  94          "ER_CURRENT_TAKES_NO_ARGS";
  95   public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
  96   public static final String ER_CONTEXT_CAN_NOT_BE_NULL = "ER_CONTEXT_CAN_NOT_BE_NULL";
  97   public static final String ER_CONTEXT_HAS_NO_OWNERDOC =
  98          "ER_CONTEXT_HAS_NO_OWNERDOC";
  99   public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =
 100          "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
 101   public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =
 102          "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
 103   public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =
 104          "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
 105   public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =
 106          "ER_NUMBER_HAS_TOO_MANY_ARGS";
 107   public static final String ER_NAME_HAS_TOO_MANY_ARGS =
 108          "ER_NAME_HAS_TOO_MANY_ARGS";
 109   public static final String ER_STRING_HAS_TOO_MANY_ARGS =
 110          "ER_STRING_HAS_TOO_MANY_ARGS";
 111   public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =
 112          "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
 113   public static final String ER_TRANSLATE_TAKES_3_ARGS =
 114          "ER_TRANSLATE_TAKES_3_ARGS";
 115   public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =
 116          "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
 117   public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =
 118          "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
 119   public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
 120   public static final String ER_UNKNOWN_MATCH_OPERATION =
 121          "ER_UNKNOWN_MATCH_OPERATION";
 122   public static final String ER_INCORRECT_ARG_LENGTH ="ER_INCORRECT_ARG_LENGTH";
 123   public static final String ER_CANT_CONVERT_TO_NUMBER =
 124          "ER_CANT_CONVERT_TO_NUMBER";
 125   public static final String ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER =
 126            "ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER";
 127   public static final String ER_CANT_CONVERT_TO_NODELIST =
 128          "ER_CANT_CONVERT_TO_NODELIST";
 129   public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =
 130          "ER_CANT_CONVERT_TO_MUTABLENODELIST";
 131   public static final String ER_CANT_CONVERT_TO_TYPE ="ER_CANT_CONVERT_TO_TYPE";
 132   public static final String ER_EXPECTED_MATCH_PATTERN =
 133          "ER_EXPECTED_MATCH_PATTERN";
 134   public static final String ER_COULDNOT_GET_VAR_NAMED =
 135          "ER_COULDNOT_GET_VAR_NAMED";
 136   public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
 137   public static final String ER_EXTRA_ILLEGAL_TOKENS ="ER_EXTRA_ILLEGAL_TOKENS";
 138   public static final String ER_EXPECTED_DOUBLE_QUOTE =
 139          "ER_EXPECTED_DOUBLE_QUOTE";
 140   public static final String ER_EXPECTED_SINGLE_QUOTE =
 141          "ER_EXPECTED_SINGLE_QUOTE";
 142   public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
 143   public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
 144   public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =
 145          "ER_INCORRECT_PROGRAMMER_ASSERTION";
 146   public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =
 147          "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
 148   public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =
 149          "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
 150   public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =
 151          "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
 152   public static final String ER_PREDICATE_ILLEGAL_SYNTAX =
 153          "ER_PREDICATE_ILLEGAL_SYNTAX";
 154   public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
 155   public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
 156   public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =
 157          "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
 158   public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =
 159          "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
 160   public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =
 161          "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
 162   public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =
 163          "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
 164   public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =
 165          "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
 166   public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
 167   public static final String ER_ILLEGAL_VARIABLE_REFERENCE =
 168          "ER_ILLEGAL_VARIABLE_REFERENCE";
 169   public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
 170   public static final String ER_KEY_HAS_TOO_MANY_ARGS =
 171          "ER_KEY_HAS_TOO_MANY_ARGS";
 172   public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
 173   public static final String ER_COULDNOT_FIND_FUNCTION =
 174          "ER_COULDNOT_FIND_FUNCTION";
 175   public static final String ER_UNSUPPORTED_ENCODING ="ER_UNSUPPORTED_ENCODING";
 176   public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =
 177          "ER_PROBLEM_IN_DTM_NEXTSIBLING";
 178   public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =
 179          "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
 180   public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =
 181          "ER_SETDOMFACTORY_NOT_SUPPORTED";
 182   public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
 183   public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED";
 184   public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED";
 185 public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =
 186          "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
 187   public static final String ER_DTM_CANNOT_HANDLE_NODES =
 188          "ER_DTM_CANNOT_HANDLE_NODES";
 189   public static final String ER_XERCES_CANNOT_HANDLE_NODES =
 190          "ER_XERCES_CANNOT_HANDLE_NODES";
 191   public static final String ER_XERCES_PARSE_ERROR_DETAILS =
 192          "ER_XERCES_PARSE_ERROR_DETAILS";
 193   public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
 194   public static final String ER_INVALID_UTF16_SURROGATE =
 195          "ER_INVALID_UTF16_SURROGATE";
 196   public static final String ER_OIERROR = "ER_OIERROR";
 197   public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
 198   public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
 199  public static final String ER_FUNCTION_TOKEN_NOT_FOUND =
 200          "ER_FUNCTION_TOKEN_NOT_FOUND";
 201   public static final String ER_CANNOT_DEAL_XPATH_TYPE =
 202          "ER_CANNOT_DEAL_XPATH_TYPE";
 203   public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE";
 204   public static final String ER_NODESETDTM_NOT_MUTABLE =
 205          "ER_NODESETDTM_NOT_MUTABLE";
 206    /**  Variable not resolvable:   */
 207   public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
 208    /** Null error handler  */
 209  public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
 210    /**  Programmer's assertion: unknown opcode  */
 211   public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =
 212          "ER_PROG_ASSERT_UNKNOWN_OPCODE";
 213    /**  0 or 1   */
 214   public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
 215    /**  rtf() not supported by XRTreeFragSelectWrapper   */
 216   public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
 217          "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 218    /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */
 219   public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 220    /**  fsb() not supported for XStringForChars   */
 221   public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =
 222          "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
 223    /**  Could not find variable with the name of   */
 224  public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
 225    /**  XStringForChars can not take a string for an argument   */
 226  public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =
 227          "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
 228    /**  The FastStringBuffer argument can not be null   */
 229  public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =
 230          "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
 231    /**  2 or 3   */
 232   public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
 233    /** Variable accessed before it is bound! */
 234   public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =
 235          "ER_VARIABLE_ACCESSED_BEFORE_BIND";
 236    /** XStringForFSB can not take a string for an argument! */
 237  public static final String ER_FSB_CANNOT_TAKE_STRING =
 238          "ER_FSB_CANNOT_TAKE_STRING";
 239    /** Error! Setting the root of a walker to null! */
 240   public static final String ER_SETTING_WALKER_ROOT_TO_NULL =
 241          "ER_SETTING_WALKER_ROOT_TO_NULL";
 242    /** This NodeSetDTM can not iterate to a previous node! */
 243   public static final String ER_NODESETDTM_CANNOT_ITERATE =
 244          "ER_NODESETDTM_CANNOT_ITERATE";
 245   /** This NodeSet can not iterate to a previous node! */
 246  public static final String ER_NODESET_CANNOT_ITERATE =
 247          "ER_NODESET_CANNOT_ITERATE";
 248   /** This NodeSetDTM can not do indexing or counting functions! */
 249   public static final String ER_NODESETDTM_CANNOT_INDEX =
 250          "ER_NODESETDTM_CANNOT_INDEX";
 251   /** This NodeSet can not do indexing or counting functions! */
 252   public static final String ER_NODESET_CANNOT_INDEX =
 253          "ER_NODESET_CANNOT_INDEX";
 254   /** Can not call setShouldCacheNodes after nextNode has been called! */
 255   public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =
 256          "ER_CANNOT_CALL_SETSHOULDCACHENODE";
 257   /** {0} only allows {1} arguments */
 258  public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
 259   /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
 260   public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
 261   /** Problem with RelativeLocationPath */
 262   public static final String ER_EXPECTED_REL_LOC_PATH =
 263          "ER_EXPECTED_REL_LOC_PATH";
 264   /** Problem with LocationPath */
 265   public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
 266   public static final String ER_EXPECTED_LOC_PATH_AT_END_EXPR =
 267                                         "ER_EXPECTED_LOC_PATH_AT_END_EXPR";
 268   /** Problem with Step */
 269   public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
 270   /** Problem with NodeTest */
 271   public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
 272   /** Expected step pattern */
 273   public static final String ER_EXPECTED_STEP_PATTERN =
 274         "ER_EXPECTED_STEP_PATTERN";
 275   /** Expected relative path pattern */
 276   public static final String ER_EXPECTED_REL_PATH_PATTERN =
 277          "ER_EXPECTED_REL_PATH_PATTERN";
 278   /** ER_CANT_CONVERT_XPATHRESULTTYPE_TO_BOOLEAN          */
 279   public static final String ER_CANT_CONVERT_TO_BOOLEAN =
 280          "ER_CANT_CONVERT_TO_BOOLEAN";
 281   /** Field ER_CANT_CONVERT_TO_SINGLENODE       */
 282   public static final String ER_CANT_CONVERT_TO_SINGLENODE =
 283          "ER_CANT_CONVERT_TO_SINGLENODE";
 284   /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
 285   public static final String ER_CANT_GET_SNAPSHOT_LENGTH =
 286          "ER_CANT_GET_SNAPSHOT_LENGTH";
 287   /** Field ER_NON_ITERATOR_TYPE                */
 288   public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
 289   /** Field ER_DOC_MUTATED                      */
 290   public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED";
 291   public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
 292   public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
 293   public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
 294   public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
 295   public static final String ER_CANT_CONVERT_TO_STRING =
 296          "ER_CANT_CONVERT_TO_STRING";
 297   public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
 298   public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
 299   /* Note to translators:  The XPath expression cannot be evaluated with respect
 300    * to this type of node.
 301    */
 302   /** Field ER_WRONG_NODETYPE                    */
 303   public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
 304   public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR";
 305 
 306   //BEGIN: Keys needed for exception messages of  JAXP 1.3 XPath API implementation
 307   public static final String ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED = "ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED";
 308   public static final String ER_RESOLVE_VARIABLE_RETURNS_NULL = "ER_RESOLVE_VARIABLE_RETURNS_NULL";
 309   public static final String ER_UNSUPPORTED_RETURN_TYPE = "ER_UNSUPPORTED_RETURN_TYPE";
 310   public static final String ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL = "ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL";
 311   public static final String ER_ARG_CANNOT_BE_NULL = "ER_ARG_CANNOT_BE_NULL";
 312 
 313   public static final String ER_OBJECT_MODEL_NULL = "ER_OBJECT_MODEL_NULL";
 314   public static final String ER_OBJECT_MODEL_EMPTY = "ER_OBJECT_MODEL_EMPTY";
 315   public static final String ER_FEATURE_NAME_NULL = "ER_FEATURE_NAME_NULL";
 316   public static final String ER_FEATURE_UNKNOWN = "ER_FEATURE_UNKNOWN";
 317   public static final String ER_GETTING_NULL_FEATURE = "ER_GETTING_NULL_FEATURE";
 318   public static final String ER_GETTING_UNKNOWN_FEATURE = "ER_GETTING_UNKNOWN_FEATURE";
 319   public static final String ER_SECUREPROCESSING_FEATURE = "ER_SECUREPROCESSING_FEATURE";
 320   public static final String ER_NULL_XPATH_FUNCTION_RESOLVER = "ER_NULL_XPATH_FUNCTION_RESOLVER";
 321   public static final String ER_NULL_XPATH_VARIABLE_RESOLVER = "ER_NULL_XPATH_VARIABLE_RESOLVER";
 322   //END: Keys needed for exception messages of  JAXP 1.3 XPath API implementation
 323 
 324   public static final String WG_LOCALE_NAME_NOT_HANDLED =
 325          "WG_LOCALE_NAME_NOT_HANDLED";
 326   public static final String WG_PROPERTY_NOT_SUPPORTED =
 327          "WG_PROPERTY_NOT_SUPPORTED";
 328   public static final String WG_DONT_DO_ANYTHING_WITH_NS =
 329          "WG_DONT_DO_ANYTHING_WITH_NS";
 330   public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
 331   public static final String WG_QUO_NO_LONGER_DEFINED =
 332          "WG_QUO_NO_LONGER_DEFINED";
 333   public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =
 334          "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
 335   public static final String WG_FUNCTION_TOKEN_NOT_FOUND =
 336          "WG_FUNCTION_TOKEN_NOT_FOUND";
 337   public static final String WG_COULDNOT_FIND_FUNCTION =
 338          "WG_COULDNOT_FIND_FUNCTION";
 339   public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM";
 340   public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =
 341          "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
 342   public static final String WG_ILLEGAL_VARIABLE_REFERENCE =
 343          "WG_ILLEGAL_VARIABLE_REFERENCE";
 344   public static final String WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING";
 345 
 346   /**  detach() not supported by XRTreeFragSelectWrapper   */
 347   public static final String ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
 348          "ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 349   /**  num() not supported by XRTreeFragSelectWrapper   */
 350   public static final String ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
 351          "ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 352   /**  xstr() not supported by XRTreeFragSelectWrapper   */
 353   public static final String ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
 354          "ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 355   /**  str() not supported by XRTreeFragSelectWrapper   */
 356   public static final String ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =
 357          "ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
 358 
 359   // Error messages...
 360 
 361   private static final Object[][] _contents = new Object[][]{
 362 
 363   { "ERROR0000" , "{0}" },
 364 
 365   { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "The current() function is not allowed in a match pattern!" },
 366 
 367   { ER_CURRENT_TAKES_NO_ARGS, "The current() function does not accept arguments!" },
 368 
 369   { ER_DOCUMENT_REPLACED,
 370       "document() function implementation has been replaced by com.sun.org.apache.xalan.internal.xslt.FuncDocument!"},
 371 
 372   { ER_CONTEXT_CAN_NOT_BE_NULL,
 373       "The context can not be null when the operation is context-dependent."},
 374   
 375   { ER_CONTEXT_HAS_NO_OWNERDOC,
 376       "context does not have an owner document!"},
 377 
 378   { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
 379       "local-name() has too many arguments."},
 380 
 381   { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
 382       "namespace-uri() has too many arguments."},
 383 
 384   { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
 385       "normalize-space() has too many arguments."},
 386 
 387   { ER_NUMBER_HAS_TOO_MANY_ARGS,
 388       "number() has too many arguments."},
 389 
 390   { ER_NAME_HAS_TOO_MANY_ARGS,
 391      "name() has too many arguments."},
 392 
 393   { ER_STRING_HAS_TOO_MANY_ARGS,
 394       "string() has too many arguments."},
 395 
 396   { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
 397       "string-length() has too many arguments."},
 398 
 399   { ER_TRANSLATE_TAKES_3_ARGS,
 400       "The translate() function takes three arguments!"},
 401 
 402   { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
 403       "The unparsed-entity-uri function should take one argument!"},
 404 
 405   { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
 406       "namespace axis not implemented yet!"},
 407 
 408   { ER_UNKNOWN_AXIS,
 409      "unknown axis: {0}"},
 410 
 411   { ER_UNKNOWN_MATCH_OPERATION,
 412      "unknown match operation!"},
 413 
 414   { ER_INCORRECT_ARG_LENGTH,
 415       "Arg length of processing-instruction() node test is incorrect!"},
 416 
 417   { ER_CANT_CONVERT_TO_NUMBER,
 418       "Can not convert {0} to a number"},
 419 
 420   { ER_CANT_CONVERT_TO_NODELIST,
 421       "Can not convert {0} to a NodeList!"},
 422 
 423   { ER_CANT_CONVERT_TO_MUTABLENODELIST,
 424       "Can not convert {0} to a NodeSetDTM!"},
 425 
 426   { ER_CANT_CONVERT_TO_TYPE,
 427       "Can not convert {0} to a type#{1}"},
 428 
 429   { ER_EXPECTED_MATCH_PATTERN,
 430       "Expected match pattern in getMatchScore!"},
 431 
 432   { ER_COULDNOT_GET_VAR_NAMED,
 433       "Could not get variable named {0}"},
 434 
 435   { ER_UNKNOWN_OPCODE,
 436      "ERROR! Unknown op code: {0}"},
 437 
 438   { ER_EXTRA_ILLEGAL_TOKENS,
 439      "Extra illegal tokens: {0}"},
 440 
 441   { ER_EXPECTED_DOUBLE_QUOTE,
 442       "misquoted literal... expected double quote!"},
 443 
 444   { ER_EXPECTED_SINGLE_QUOTE,
 445       "misquoted literal... expected single quote!"},
 446 
 447   { ER_EMPTY_EXPRESSION,
 448      "Empty expression!"},
 449 
 450   { ER_EXPECTED_BUT_FOUND,
 451      "Expected {0}, but found: {1}"},
 452 
 453   { ER_INCORRECT_PROGRAMMER_ASSERTION,
 454       "Programmer assertion is incorrect! - {0}"},
 455 
 456   { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
 457       "boolean(...) argument is no longer optional with 19990709 XPath draft."},
 458 
 459   { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
 460       "Found ',' but no preceding argument!"},
 461 
 462   { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
 463       "Found ',' but no following argument!"},
 464 
 465   { ER_PREDICATE_ILLEGAL_SYNTAX,
 466       "'..[predicate]' or '.[predicate]' is illegal syntax.  Use 'self::node()[predicate]' instead."},
 467 
 468   { ER_ILLEGAL_AXIS_NAME,
 469      "illegal axis name: {0}"},
 470 
 471   { ER_UNKNOWN_NODETYPE,
 472      "Unknown nodetype: {0}"},
 473 
 474   { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
 475       "Pattern literal ({0}) needs to be quoted!"},
 476 
 477   { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
 478       "{0} could not be formatted to a number!"},
 479 
 480   { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
 481       "Could not create XML TransformerFactory Liaison: {0}"},
 482 
 483   { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
 484       "Error! Did not find xpath select expression (-select)."},
 485 
 486   { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
 487       "ERROR! Could not find ENDOP after OP_LOCATIONPATH"},
 488 
 489   { ER_ERROR_OCCURED,
 490      "Error occured!"},
 491 
 492   { ER_ILLEGAL_VARIABLE_REFERENCE,
 493       "VariableReference given for variable out of context or without definition!  Name = {0}"},
 494 
 495   { ER_AXES_NOT_ALLOWED,
 496       "Only child:: and attribute:: axes are allowed in match patterns!  Offending axes = {0}"},
 497 
 498   { ER_KEY_HAS_TOO_MANY_ARGS,
 499       "key() has an incorrect number of arguments."},
 500 
 501   { ER_COUNT_TAKES_1_ARG,
 502       "The count function should take one argument!"},
 503 
 504   { ER_COULDNOT_FIND_FUNCTION,
 505      "Could not find function: {0}"},
 506 
 507   { ER_UNSUPPORTED_ENCODING,
 508      "Unsupported encoding: {0}"},
 509 
 510   { ER_PROBLEM_IN_DTM_NEXTSIBLING,
 511       "Problem occured in DTM in getNextSibling... trying to recover"},
 512 
 513   { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
 514       "Programmer error: EmptyNodeList can not be written to."},
 515 
 516   { ER_SETDOMFACTORY_NOT_SUPPORTED,
 517       "setDOMFactory is not supported by XPathContext!"},
 518 
 519   { ER_PREFIX_MUST_RESOLVE,
 520       "Prefix must resolve to a namespace: {0}"},
 521 
 522   { ER_PARSE_NOT_SUPPORTED,
 523       "parse (InputSource source) not supported in XPathContext! Can not open {0}"},
 524 
 525   { ER_SAX_API_NOT_HANDLED,
 526       "SAX API characters(char ch[]... not handled by the DTM!"},
 527 
 528   { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
 529       "ignorableWhitespace(char ch[]... not handled by the DTM!"},
 530 
 531   { ER_DTM_CANNOT_HANDLE_NODES,
 532       "DTMLiaison can not handle nodes of type {0}"},
 533 
 534   { ER_XERCES_CANNOT_HANDLE_NODES,
 535       "DOM2Helper can not handle nodes of type {0}"},
 536 
 537   { ER_XERCES_PARSE_ERROR_DETAILS,
 538       "DOM2Helper.parse error: SystemID - {0} line - {1}"},
 539 
 540   { ER_XERCES_PARSE_ERROR,
 541      "DOM2Helper.parse error"},
 542 
 543   { ER_INVALID_UTF16_SURROGATE,
 544       "Invalid UTF-16 surrogate detected: {0} ?"},
 545 
 546   { ER_OIERROR,
 547      "IO error"},
 548 
 549   { ER_CANNOT_CREATE_URL,
 550      "Cannot create url for: {0}"},
 551 
 552   { ER_XPATH_READOBJECT,
 553      "In XPath.readObject: {0}"},
 554 
 555   { ER_FUNCTION_TOKEN_NOT_FOUND,
 556       "function token not found."},
 557 
 558   { ER_CANNOT_DEAL_XPATH_TYPE,
 559        "Can not deal with XPath type: {0}"},
 560 
 561   { ER_NODESET_NOT_MUTABLE,
 562        "This NodeSet is not mutable"},
 563 
 564   { ER_NODESETDTM_NOT_MUTABLE,
 565        "This NodeSetDTM is not mutable"},
 566 
 567   { ER_VAR_NOT_RESOLVABLE,
 568         "Variable not resolvable: {0}"},
 569 
 570   { ER_NULL_ERROR_HANDLER,
 571         "Null error handler"},
 572 
 573   { ER_PROG_ASSERT_UNKNOWN_OPCODE,
 574        "Programmer''s assertion: unknown opcode: {0}"},
 575 
 576   { ER_ZERO_OR_ONE,
 577        "0 or 1"},
 578 
 579   { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 580        "rtf() not supported by XRTreeFragSelectWrapper"},
 581 
 582   { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 583        "asNodeIterator() not supported by XRTreeFragSelectWrapper"},
 584 
 585         /**  detach() not supported by XRTreeFragSelectWrapper   */
 586    { ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 587                 "detach() not supported by XRTreeFragSelectWrapper"},
 588 
 589         /**  num() not supported by XRTreeFragSelectWrapper   */
 590    { ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 591                 "num() not supported by XRTreeFragSelectWrapper"},
 592 
 593         /**  xstr() not supported by XRTreeFragSelectWrapper   */
 594    { ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 595                 "xstr() not supported by XRTreeFragSelectWrapper"},
 596 
 597         /**  str() not supported by XRTreeFragSelectWrapper   */
 598    { ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
 599                 "str() not supported by XRTreeFragSelectWrapper"},
 600 
 601   { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
 602        "fsb() not supported for XStringForChars"},
 603 
 604   { ER_COULD_NOT_FIND_VAR,
 605       "Could not find variable with the name of {0}"},
 606 
 607   { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
 608       "XStringForChars can not take a string for an argument"},
 609 
 610   { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
 611       "The FastStringBuffer argument can not be null"},
 612 
 613   { ER_TWO_OR_THREE,
 614        "2 or 3"},
 615 
 616   { ER_VARIABLE_ACCESSED_BEFORE_BIND,
 617        "Variable accessed before it is bound!"},
 618 
 619   { ER_FSB_CANNOT_TAKE_STRING,
 620        "XStringForFSB can not take a string for an argument!"},
 621 
 622   { ER_SETTING_WALKER_ROOT_TO_NULL,
 623        "\n !!!! Error! Setting the root of a walker to null!!!"},
 624 
 625   { ER_NODESETDTM_CANNOT_ITERATE,
 626        "This NodeSetDTM can not iterate to a previous node!"},
 627 
 628   { ER_NODESET_CANNOT_ITERATE,
 629        "This NodeSet can not iterate to a previous node!"},
 630 
 631   { ER_NODESETDTM_CANNOT_INDEX,
 632        "This NodeSetDTM can not do indexing or counting functions!"},
 633 
 634   { ER_NODESET_CANNOT_INDEX,
 635        "This NodeSet can not do indexing or counting functions!"},
 636 
 637   { ER_CANNOT_CALL_SETSHOULDCACHENODE,
 638        "Can not call setShouldCacheNodes after nextNode has been called!"},
 639 
 640   { ER_ONLY_ALLOWS,
 641        "{0} only allows {1} arguments"},
 642 
 643   { ER_UNKNOWN_STEP,
 644        "Programmer''s assertion in getNextStepPos: unknown stepType: {0}"},
 645 
 646   //Note to translators:  A relative location path is a form of XPath expression.
 647   // The message indicates that such an expression was expected following the
 648   // characters '/' or '//', but was not found.
 649   { ER_EXPECTED_REL_LOC_PATH,
 650       "A relative location path was expected following the '/' or '//' token."},
 651 
 652   // Note to translators:  A location path is a form of XPath expression.
 653   // The message indicates that syntactically such an expression was expected,but
 654   // the characters specified by the substitution text were encountered instead.
 655   { ER_EXPECTED_LOC_PATH,
 656        "A location path was expected, but the following token was encountered\u003a  {0}"},
 657 
 658   // Note to translators:  A location path is a form of XPath expression.
 659   // The message indicates that syntactically such a subexpression was expected,
 660   // but no more characters were found in the expression.
 661   { ER_EXPECTED_LOC_PATH_AT_END_EXPR,
 662        "A location path was expected, but the end of the XPath expression was found instead."},
 663 
 664   // Note to translators:  A location step is part of an XPath expression.
 665   // The message indicates that syntactically such an expression was expected
 666   // following the specified characters.
 667   { ER_EXPECTED_LOC_STEP,
 668        "A location step was expected following the '/' or '//' token."},
 669 
 670   // Note to translators:  A node test is part of an XPath expression that is
 671   // used to test for particular kinds of nodes.  In this case, a node test that
 672   // consists of an NCName followed by a colon and an asterisk or that consists
 673   // of a QName was expected, but was not found.
 674   { ER_EXPECTED_NODE_TEST,
 675        "A node test that matches either NCName:* or QName was expected."},
 676 
 677   // Note to translators:  A step pattern is part of an XPath expression.
 678   // The message indicates that syntactically such an expression was expected,
 679   // but the specified character was found in the expression instead.
 680   { ER_EXPECTED_STEP_PATTERN,
 681        "A step pattern was expected, but '/' was encountered."},
 682 
 683   // Note to translators: A relative path pattern is part of an XPath expression.
 684   // The message indicates that syntactically such an expression was expected,
 685   // but was not found.
 686   { ER_EXPECTED_REL_PATH_PATTERN,
 687        "A relative path pattern was expected."},
 688 
 689   // Note to translators:  The substitution text is the name of a data type.  The
 690   // message indicates that a value of a particular type could not be converted
 691   // to a value of type boolean.
 692   { ER_CANT_CONVERT_TO_BOOLEAN,
 693        "The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a boolean."},
 694 
 695   // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
 696   // FIRST_ORDERED_NODE_TYPE.
 697   { ER_CANT_CONVERT_TO_SINGLENODE,
 698        "The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a single node. The method getSingleNodeValue applies only to types ANY_UNORDERED_NODE_TYPE and FIRST_ORDERED_NODE_TYPE."},
 699 
 700   // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
 701   // ORDERED_NODE_SNAPSHOT_TYPE.
 702   { ER_CANT_GET_SNAPSHOT_LENGTH,
 703        "The method getSnapshotLength cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."},
 704 
 705   { ER_NON_ITERATOR_TYPE,
 706        "The method iterateNext cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_ITERATOR_TYPE and ORDERED_NODE_ITERATOR_TYPE."},
 707 
 708   // Note to translators: This message indicates that the document being operated
 709   // upon changed, so the iterator object that was being used to traverse the
 710   // document has now become invalid.
 711   { ER_DOC_MUTATED,
 712        "Document mutated since result was returned. Iterator is invalid."},
 713 
 714   { ER_INVALID_XPATH_TYPE,
 715        "Invalid XPath type argument: {0}"},
 716 
 717   { ER_EMPTY_XPATH_RESULT,
 718        "Empty XPath result object"},
 719 
 720   { ER_INCOMPATIBLE_TYPES,
 721        "The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be coerced into the specified XPathResultType of {2}."},
 722 
 723   { ER_NULL_RESOLVER,
 724        "Unable to resolve prefix with null prefix resolver."},
 725 
 726   // Note to translators:  The substitution text is the name of a data type.  The
 727   // message indicates that a value of a particular type could not be converted
 728   // to a value of type string.
 729   { ER_CANT_CONVERT_TO_STRING,
 730        "The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a string."},
 731 
 732   // Note to translators: Do not translate snapshotItem,
 733   // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
 734   { ER_NON_SNAPSHOT_TYPE,
 735        "The method snapshotItem cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."},
 736 
 737   // Note to translators:  XPathEvaluator is a Java interface name.  An
 738   // XPathEvaluator is created with respect to a particular XML document, and in
 739   // this case the expression represented by this object was being evaluated with
 740   // respect to a context node from a different document.
 741   { ER_WRONG_DOCUMENT,
 742        "Context node does not belong to the document that is bound to this XPathEvaluator."},
 743 
 744   // Note to translators:  The XPath expression cannot be evaluated with respect
 745   // to this type of node.
 746   { ER_WRONG_NODETYPE,
 747        "The context node type is not supported."},
 748 
 749   { ER_XPATH_ERROR,
 750        "Unknown error in XPath."},
 751 
 752   { ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER,
 753         "The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a number"},
 754 
 755   //BEGIN:  Definitions of error keys used  in exception messages of  JAXP 1.3 XPath API implementation
 756 
 757   /** Field ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED                       */
 758 
 759   { ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED,
 760        "Extension function: ''{0}'' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true."},
 761 
 762   /** Field ER_RESOLVE_VARIABLE_RETURNS_NULL                       */
 763 
 764   { ER_RESOLVE_VARIABLE_RETURNS_NULL,
 765        "resolveVariable for variable {0} returning null"},
 766 
 767   /** Field ER_UNSUPPORTED_RETURN_TYPE                       */
 768 
 769   { ER_UNSUPPORTED_RETURN_TYPE,
 770        "UnSupported Return Type : {0}"},
 771 
 772   /** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL                       */
 773 
 774   { ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL,
 775        "Source and/or Return Type can not be null"},
 776 
 777   /** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL                       */
 778 
 779   { ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL,
 780        "Source and/or Return Type can not be null"},
 781 
 782   /** Field ER_ARG_CANNOT_BE_NULL                       */
 783 
 784   { ER_ARG_CANNOT_BE_NULL,
 785        "{0} argument can not be null"},
 786 
 787   /** Field ER_OBJECT_MODEL_NULL                       */
 788 
 789   { ER_OBJECT_MODEL_NULL,
 790        "{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == null"},
 791 
 792   /** Field ER_OBJECT_MODEL_EMPTY                       */
 793 
 794   { ER_OBJECT_MODEL_EMPTY,
 795        "{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == \"\""},
 796 
 797   /** Field ER_OBJECT_MODEL_EMPTY                       */
 798 
 799   { ER_FEATURE_NAME_NULL,
 800        "Trying to set a feature with a null name: {0}#setFeature( null, {1})"},
 801 
 802   /** Field ER_FEATURE_UNKNOWN                       */
 803 
 804   { ER_FEATURE_UNKNOWN,
 805        "Trying to set the unknown feature \"{0}\":{1}#setFeature({0},{2})"},
 806 
 807   /** Field ER_GETTING_NULL_FEATURE                       */
 808 
 809   { ER_GETTING_NULL_FEATURE,
 810        "Trying to get a feature with a null name: {0}#getFeature(null)"},
 811 
 812   /** Field ER_GETTING_NULL_FEATURE                       */
 813 
 814   { ER_GETTING_UNKNOWN_FEATURE,
 815        "Trying to get the unknown feature \"{0}\":{1}#getFeature({0})"},
 816 
 817   {ER_SECUREPROCESSING_FEATURE,
 818         "FEATURE_SECURE_PROCESSING: Cannot set the feature to false when security manager is present: {1}#setFeature({0},{2})"},
 819 
 820   /** Field ER_NULL_XPATH_FUNCTION_RESOLVER                       */
 821 
 822   { ER_NULL_XPATH_FUNCTION_RESOLVER,
 823        "Attempting to set a null XPathFunctionResolver:{0}#setXPathFunctionResolver(null)"},
 824 
 825   /** Field ER_NULL_XPATH_VARIABLE_RESOLVER                       */
 826 
 827   { ER_NULL_XPATH_VARIABLE_RESOLVER,
 828        "Attempting to set a null XPathVariableResolver:{0}#setXPathVariableResolver(null)"},
 829 
 830   //END:  Definitions of error keys used  in exception messages of  JAXP 1.3 XPath API implementation
 831 
 832   // Warnings...
 833 
 834   { WG_LOCALE_NAME_NOT_HANDLED,
 835       "locale name in the format-number function not yet handled!"},
 836 
 837   { WG_PROPERTY_NOT_SUPPORTED,
 838       "XSL Property not supported: {0}"},
 839 
 840   { WG_DONT_DO_ANYTHING_WITH_NS,
 841       "Do not currently do anything with namespace {0} in property: {1}"},
 842 
 843   { WG_SECURITY_EXCEPTION,
 844       "SecurityException when trying to access XSL system property: {0}"},
 845 
 846   { WG_QUO_NO_LONGER_DEFINED,
 847       "Old syntax: quo(...) is no longer defined in XPath."},
 848 
 849   { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
 850       "XPath needs a derived object to implement nodeTest!"},
 851 
 852   { WG_FUNCTION_TOKEN_NOT_FOUND,
 853       "function token not found."},
 854 
 855   { WG_COULDNOT_FIND_FUNCTION,
 856       "Could not find function: {0}"},
 857 
 858   { WG_CANNOT_MAKE_URL_FROM,
 859       "Can not make URL from: {0}"},
 860 
 861   { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
 862       "-E option not supported for DTM parser"},
 863 
 864   { WG_ILLEGAL_VARIABLE_REFERENCE,
 865       "VariableReference given for variable out of context or without definition!  Name = {0}"},
 866 
 867   { WG_UNSUPPORTED_ENCODING,
 868      "Unsupported encoding: {0}"},
 869 
 870 
 871 
 872   // Other miscellaneous text used inside the code...
 873   { "ui_language", "en"},
 874   { "help_language", "en"},
 875   { "language", "en"},
 876   { "BAD_CODE", "Parameter to createMessage was out of bounds"},
 877   { "FORMAT_FAILED", "Exception thrown during messageFormat call"},
 878   { "version", ">>>>>>> Xalan Version "},
 879   { "version2", "<<<<<<<"},
 880   { "yes", "yes"},
 881   { "line", "Line #"},
 882   { "column", "Column #"},
 883   { "xsldone", "XSLProcessor: done"},
 884   { "xpath_option", "xpath options: "},
 885   { "optionIN", "   [-in inputXMLURL]"},
 886   { "optionSelect", "   [-select xpath expression]"},
 887   { "optionMatch", "   [-match match pattern (for match diagnostics)]"},
 888   { "optionAnyExpr", "Or just an xpath expression will do a diagnostic dump"},
 889   { "noParsermsg1", "XSL Process was not successful."},
 890   { "noParsermsg2", "** Could not find parser **"},
 891   { "noParsermsg3", "Please check your classpath."},
 892   { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"},
 893   { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
 894   { "gtone", ">1" },
 895   { "zero", "0" },
 896   { "one", "1" },
 897   { "two" , "2" },
 898   { "three", "3" }
 899 
 900   };
 901 
 902   /**
 903    * Get the association list.
 904    *
 905    * @return The association list.
 906    */
 907   public Object[][] getContents()
 908   {
 909       return _contents;
 910   }
 911 
 912 
 913   // ================= INFRASTRUCTURE ======================
 914 
 915   /** Field BAD_CODE          */
 916   public static final String BAD_CODE = "BAD_CODE";
 917 
 918   /** Field FORMAT_FAILED          */
 919   public static final String FORMAT_FAILED = "FORMAT_FAILED";
 920 
 921   /** Field ERROR_RESOURCES          */
 922   public static final String ERROR_RESOURCES =
 923     "com.sun.org.apache.xpath.internal.res.XPATHErrorResources";
 924 
 925   /** Field ERROR_STRING          */
 926   public static final String ERROR_STRING = "#error";
 927 
 928   /** Field ERROR_HEADER          */
 929   public static final String ERROR_HEADER = "Error: ";
 930 
 931   /** Field WARNING_HEADER          */
 932   public static final String WARNING_HEADER = "Warning: ";
 933 
 934   /** Field XSL_HEADER          */
 935   public static final String XSL_HEADER = "XSL ";
 936 
 937   /** Field XML_HEADER          */
 938   public static final String XML_HEADER = "XML ";
 939 
 940   /** Field QUERY_HEADER          */
 941   public static final String QUERY_HEADER = "PATTERN ";
 942 
 943 }