001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements. See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership. The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the  "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *     http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    /*
019     * $Id: XPATHErrorResources_pt_BR.java 468655 2006-10-28 07:12:06Z minchau $
020     */
021    package org.apache.xpath.res;
022    
023    import java.util.ListResourceBundle;
024    import java.util.Locale;
025    import java.util.MissingResourceException;
026    import java.util.ResourceBundle;
027    
028    /**
029     * Set up error messages.
030     * We build a two dimensional array of message keys and
031     * message strings. In order to add a new message here,
032     * you need to first add a Static string constant for the
033     * Key and update the contents array with Key, Value pair
034      * Also you need to  update the count of messages(MAX_CODE)or
035     * the count of warnings(MAX_WARNING) [ Information purpose only]
036     * @xsl.usage advanced
037     */
038    public class XPATHErrorResources_pt_BR extends ListResourceBundle
039    {
040    
041    /*
042     * General notes to translators:
043     *
044     * This file contains error and warning messages related to XPath Error
045     * Handling.
046     *
047     *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
048     *     components.
049     *     XSLT is an acronym for "XML Stylesheet Language: Transformations".
050     *     XSLTC is an acronym for XSLT Compiler.
051     *
052     *  2) A stylesheet is a description of how to transform an input XML document
053     *     into a resultant XML document (or HTML document or text).  The
054     *     stylesheet itself is described in the form of an XML document.
055     *
056     *  3) A template is a component of a stylesheet that is used to match a
057     *     particular portion of an input document and specifies the form of the
058     *     corresponding portion of the output document.
059     *
060     *  4) An element is a mark-up tag in an XML document; an attribute is a
061     *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
062     *     "elem" is an element name, "attr" and "attr2" are attribute names with
063     *     the values "val" and "val2", respectively.
064     *
065     *  5) A namespace declaration is a special attribute that is used to associate
066     *     a prefix with a URI (the namespace).  The meanings of element names and
067     *     attribute names that use that prefix are defined with respect to that
068     *     namespace.
069     *
070     *  6) "Translet" is an invented term that describes the class file that
071     *     results from compiling an XML stylesheet into a Java class.
072     *
073     *  7) XPath is a specification that describes a notation for identifying
074     *     nodes in a tree-structured representation of an XML document.  An
075     *     instance of that notation is referred to as an XPath expression.
076     *
077     *  8) The context node is the node in the document with respect to which an
078     *     XPath expression is being evaluated.
079     *
080     *  9) An iterator is an object that traverses nodes in the tree, one at a time.
081     *
082     *  10) NCName is an XML term used to describe a name that does not contain a
083     *     colon (a "no-colon name").
084     *
085     *  11) QName is an XML term meaning "qualified name".
086     */
087    
088      /*
089       * static variables
090       */
091      public static final String ERROR0000 = "ERROR0000";
092      public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =
093             "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
094      public static final String ER_CURRENT_TAKES_NO_ARGS =
095             "ER_CURRENT_TAKES_NO_ARGS";
096      public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
097      public static final String ER_CONTEXT_HAS_NO_OWNERDOC =
098             "ER_CONTEXT_HAS_NO_OWNERDOC";
099      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    
307      //BEGIN: Keys needed for exception messages of  JAXP 1.3 XPath API implementation
308      public static final String ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED = "ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED";
309      public static final String ER_RESOLVE_VARIABLE_RETURNS_NULL = "ER_RESOLVE_VARIABLE_RETURNS_NULL";
310      public static final String ER_UNSUPPORTED_RETURN_TYPE = "ER_UNSUPPORTED_RETURN_TYPE";
311      public static final String ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL = "ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL";
312      public static final String ER_ARG_CANNOT_BE_NULL = "ER_ARG_CANNOT_BE_NULL";
313    
314      public static final String ER_OBJECT_MODEL_NULL = "ER_OBJECT_MODEL_NULL";
315      public static final String ER_OBJECT_MODEL_EMPTY = "ER_OBJECT_MODEL_EMPTY";
316      public static final String ER_FEATURE_NAME_NULL = "ER_FEATURE_NAME_NULL";
317      public static final String ER_FEATURE_UNKNOWN = "ER_FEATURE_UNKNOWN";
318      public static final String ER_GETTING_NULL_FEATURE = "ER_GETTING_NULL_FEATURE";
319      public static final String ER_GETTING_UNKNOWN_FEATURE = "ER_GETTING_UNKNOWN_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    
362      /**
363       * Get the association list.
364       *
365       * @return The association list.
366       */
367      public Object[][] getContents()
368      {
369        return new Object[][]{
370    
371      { "ERROR0000" , "{0}" },
372    
373      { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "A fun\u00e7\u00e3o current() n\u00e3o \u00e9 permitida em um padr\u00e3o de correspond\u00eancia!" },
374    
375      { ER_CURRENT_TAKES_NO_ARGS, "A fun\u00e7\u00e3o current() n\u00e3o aceita argumentos!" },
376    
377      { ER_DOCUMENT_REPLACED,
378          "A implementa\u00e7\u00e3o da fun\u00e7\u00e3o document() foi substitu\u00edda por org.apache.xalan.xslt.FuncDocument!"},
379    
380      { ER_CONTEXT_HAS_NO_OWNERDOC,
381          "context n\u00e3o possui um documento do propriet\u00e1rio!"},
382    
383      { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
384          "local-name() possui argumentos em excesso."},
385    
386      { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
387          "namespace-uri() possui argumentos em excesso."},
388    
389      { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
390          "normalize-space() possui argumentos em excesso."},
391    
392      { ER_NUMBER_HAS_TOO_MANY_ARGS,
393          "number() possui argumentos em excesso."},
394    
395      { ER_NAME_HAS_TOO_MANY_ARGS,
396         "name() possui argumentos em excesso."},
397    
398      { ER_STRING_HAS_TOO_MANY_ARGS,
399          "string() possui argumentos em excesso."},
400    
401      { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
402          "string-length() possui argumentos em excesso."},
403    
404      { ER_TRANSLATE_TAKES_3_ARGS,
405          "A fun\u00e7\u00e3o translate() tem tr\u00eas argumentos!"},
406    
407      { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
408          "A fun\u00e7\u00e3o unparsed-entity-uri deve ter um argumento!"},
409    
410      { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
411          "eixo do espa\u00e7o de nomes ainda n\u00e3o implementado!"},
412    
413      { ER_UNKNOWN_AXIS,
414         "eixo desconhecido: {0}"},
415    
416      { ER_UNKNOWN_MATCH_OPERATION,
417         "opera\u00e7\u00e3o de correspond\u00eancia desconhecida!"},
418    
419      { ER_INCORRECT_ARG_LENGTH,
420          "O comprimento de arg do teste de n\u00f3 de processing-instruction() est\u00e1 incorreto! "},
421    
422      { ER_CANT_CONVERT_TO_NUMBER,
423          "Imposs\u00edvel converter {0} em um n\u00famero"},
424    
425      { ER_CANT_CONVERT_TO_NODELIST,
426          "Imposs\u00edvel converter {0} em um NodeList!"},
427    
428      { ER_CANT_CONVERT_TO_MUTABLENODELIST,
429          "Imposs\u00edvel converter {0} em um NodeSetDTM!"},
430    
431      { ER_CANT_CONVERT_TO_TYPE,
432          "Imposs\u00edvel converter {0} em um tipo {1}"},
433    
434      { ER_EXPECTED_MATCH_PATTERN,
435          "Padr\u00e3o de correspond\u00eancia esperado em getMatchScore!"},
436    
437      { ER_COULDNOT_GET_VAR_NAMED,
438          "N\u00e3o foi poss\u00edvel obter a vari\u00e1vel {0}"},
439    
440      { ER_UNKNOWN_OPCODE,
441         "ERRO! C\u00f3digo op desconhecido: {0}"},
442    
443      { ER_EXTRA_ILLEGAL_TOKENS,
444         "Tokens inv\u00e1lidos extras: {0}"},
445    
446    
447      { ER_EXPECTED_DOUBLE_QUOTE,
448          "literal com aspa incorreta... era esperada aspa dupla!"},
449    
450      { ER_EXPECTED_SINGLE_QUOTE,
451          "literal com aspa incorreta... era esperada aspa simples!"},
452    
453      { ER_EMPTY_EXPRESSION,
454         "Express\u00e3o vazia!"},
455    
456      { ER_EXPECTED_BUT_FOUND,
457         "Esperado {0}, mas encontrado: {1}"},
458    
459      { ER_INCORRECT_PROGRAMMER_ASSERTION,
460          "A declara\u00e7\u00e3o do programador est\u00e1 incorreta! - {0}"},
461    
462      { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
463          "O argumento boolean(...) n\u00e3o \u00e9 mais opcional com o rascunho 19990709 XPath."},
464    
465      { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
466          "Encontrado ',' mas sem argumento precedente!"},
467    
468      { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
469          "Encontrado ',' mas sem argumento seguinte!"},
470    
471      { ER_PREDICATE_ILLEGAL_SYNTAX,
472          "'..[predicate]' ou '.[predicate]' \u00e9 sintaxe inv\u00e1lida. Utilize ent\u00e3o 'self::node()[predicate]'."},
473    
474      { ER_ILLEGAL_AXIS_NAME,
475         "nome de eixo inv\u00e1lido: {0}"},
476    
477      { ER_UNKNOWN_NODETYPE,
478         "Tipo de n\u00f3 desconhecido: {0}"},
479    
480      { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
481          "O literal de padr\u00e3o ({0}) precisa ser colocado entre aspas!"},
482    
483      { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
484          "{0} n\u00e3o p\u00f4de ser formatado para um n\u00famero!"},
485    
486      { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
487          "N\u00e3o foi poss\u00edvel criar XML TransformerFactory Liaison: {0}"},
488    
489      { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
490          "Erro! N\u00e3o encontrada a express\u00e3o xpath select (-select)."},
491    
492      { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
493          "ERRO! N\u00e3o foi poss\u00edvel encontrar ENDOP ap\u00f3s OP_LOCATIONPATH"},
494    
495      { ER_ERROR_OCCURED,
496         "Ocorreu um erro!"},
497    
498      { ER_ILLEGAL_VARIABLE_REFERENCE,
499          "VariableReference fornecido para a vari\u00e1vel fora de contexto ou sem defini\u00e7\u00e3o!  Nome = {0}"},
500    
501      { ER_AXES_NOT_ALLOWED,
502          "Apenas os eixos child:: e attribute:: s\u00e3o permitidos em padr\u00f5es de correspond\u00eancia! Eixos transgredidos = {0}"},
503    
504      { ER_KEY_HAS_TOO_MANY_ARGS,
505          "key() possui um n\u00famero incorreto de argumentos."},
506    
507      { ER_COUNT_TAKES_1_ARG,
508          "A fun\u00e7\u00e3o count deve ter um argumento!"},
509    
510      { ER_COULDNOT_FIND_FUNCTION,
511         "N\u00e3o foi poss\u00edvel localizar a fun\u00e7\u00e3o: {0}"},
512    
513      { ER_UNSUPPORTED_ENCODING,
514         "Codifica\u00e7\u00e3o n\u00e3o suportada: {0}"},
515    
516      { ER_PROBLEM_IN_DTM_NEXTSIBLING,
517          "Ocorreu um problema no DTM em getNextSibling... tentando recuperar"},
518    
519      { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
520          "Erro do programador: EmptyNodeList n\u00e3o pode ser gravado."},
521    
522      { ER_SETDOMFACTORY_NOT_SUPPORTED,
523          "setDOMFactory n\u00e3o \u00e9 suportado por XPathContext!"},
524    
525      { ER_PREFIX_MUST_RESOLVE,
526          "O prefixo deve ser resolvido para um espa\u00e7o de nomes: {0}"},
527    
528      { ER_PARSE_NOT_SUPPORTED,
529          "parse (origem InputSource) n\u00e3o suportada no XPathContext! Imposs\u00edvel abrir {0}"},
530    
531      { ER_SAX_API_NOT_HANDLED,
532          "SAX API characters(char ch[]... n\u00e3o tratado pelo DTM!"},
533    
534      { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
535          "ignorableWhitespace(char ch[]... n\u00e3o tratado pelo DTM!"},
536    
537      { ER_DTM_CANNOT_HANDLE_NODES,
538          "DTMLiaison n\u00e3o pode tratar n\u00f3s do tipo {0}"},
539    
540      { ER_XERCES_CANNOT_HANDLE_NODES,
541          "DOM2Helper n\u00e3o pode tratar n\u00f3s do tipo {0}"},
542    
543      { ER_XERCES_PARSE_ERROR_DETAILS,
544          "DOM2Helper.parse error: SystemID - {0} linha - {1}"},
545    
546      { ER_XERCES_PARSE_ERROR,
547         "Erro de DOM2Helper.parse"},
548    
549      { ER_INVALID_UTF16_SURROGATE,
550          "Detectado substituto UTF-16 inv\u00e1lido: {0} ?"},
551    
552      { ER_OIERROR,
553         "Erro de E/S"},
554    
555      { ER_CANNOT_CREATE_URL,
556         "Imposs\u00edvel criar url para: {0}"},
557    
558      { ER_XPATH_READOBJECT,
559         "Em XPath.readObject: {0}"},
560    
561      { ER_FUNCTION_TOKEN_NOT_FOUND,
562          "Token function n\u00e3o encontrado."},
563    
564      { ER_CANNOT_DEAL_XPATH_TYPE,
565           "Imposs\u00edvel lidar com o tipo XPath: {0}"},
566    
567      { ER_NODESET_NOT_MUTABLE,
568           "Este NodeSet n\u00e3o \u00e9 mut\u00e1vel"},
569    
570      { ER_NODESETDTM_NOT_MUTABLE,
571           "Este NodeSetDTM n\u00e3o \u00e9 mut\u00e1vel"},
572    
573      { ER_VAR_NOT_RESOLVABLE,
574            "A vari\u00e1vel n\u00e3o pode ser resolvida: {0}"},
575    
576      { ER_NULL_ERROR_HANDLER,
577            "Rotina de tratamento de erros nula"},
578    
579      { ER_PROG_ASSERT_UNKNOWN_OPCODE,
580           "Declara\u00e7\u00e3o do programador: opcode desconhecido: {0} "},
581    
582      { ER_ZERO_OR_ONE,
583           "0 ou 1"},
584    
585      { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
586           "rtf() n\u00e3o suportado por XRTreeFragSelectWrapper"},
587    
588      { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
589           "asNodeIterator() n\u00e3o suportado por XRTreeFragSelectWrapper"},
590    
591       { ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
592                    "detach() n\u00e3o suportado por XRTreeFragSelectWrapper "},
593    
594       { ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
595                    "num() n\u00e3o suportado por XRTreeFragSelectWrapper"},
596    
597       { ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
598                    "xstr() n\u00e3o suportado por XRTreeFragSelectWrapper "},
599    
600       { ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
601                    "str() n\u00e3o suportado por XRTreeFragSelectWrapper"},
602    
603      { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
604           "fsb() n\u00e3o suportado para XStringForChars"},
605    
606      { ER_COULD_NOT_FIND_VAR,
607          "N\u00e3o foi poss\u00edvel encontrar a vari\u00e1vel com o nome {0}"},
608    
609      { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
610          "XStringForChars n\u00e3o pode obter uma cadeia para um argumento"},
611    
612      { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
613          "O argumento FastStringBuffer n\u00e3o pode ser nulo"},
614    
615      { ER_TWO_OR_THREE,
616           "2 ou 3"},
617    
618      { ER_VARIABLE_ACCESSED_BEFORE_BIND,
619           "Vari\u00e1vel acessada antes de ser ligada!"},
620    
621      { ER_FSB_CANNOT_TAKE_STRING,
622           "XStringForFSB n\u00e3o pode obter uma cadeia para um argumento!"},
623    
624      { ER_SETTING_WALKER_ROOT_TO_NULL,
625           "\n !!!! Erro! Definindo a raiz de um transmissor como nula!!!"},
626    
627      { ER_NODESETDTM_CANNOT_ITERATE,
628           "Este NodeSetDTM n\u00e3o pode iterar em um n\u00f3 anterior!"},
629    
630      { ER_NODESET_CANNOT_ITERATE,
631           "Este NodeSet n\u00e3o pode iterar em um n\u00f3 anterior!"},
632    
633      { ER_NODESETDTM_CANNOT_INDEX,
634           "Este NodeSetDTM n\u00e3o pode executar fun\u00e7\u00f5es de indexa\u00e7\u00e3o ou de contagem!"},
635    
636      { ER_NODESET_CANNOT_INDEX,
637           "Este NodeSet n\u00e3o pode executar fun\u00e7\u00f5es de indexa\u00e7\u00e3o ou de contagem!"},
638    
639      { ER_CANNOT_CALL_SETSHOULDCACHENODE,
640           "Imposs\u00edvel chamar setShouldCacheNodes depois de nextNode ter sido chamado!"},
641    
642      { ER_ONLY_ALLOWS,
643           "{0} permite apenas {1} argumento(s)"},
644    
645      { ER_UNKNOWN_STEP,
646           "Declara\u00e7\u00e3o do programador em getNextStepPos: stepType desconhecido: {0} "},
647    
648      //Note to translators:  A relative location path is a form of XPath expression.
649      // The message indicates that such an expression was expected following the
650      // characters '/' or '//', but was not found.
651      { ER_EXPECTED_REL_LOC_PATH,
652          "Era esperado um caminho de localiza\u00e7\u00e3o relativo ap\u00f3s o token '/' ou '//'."},
653    
654      // Note to translators:  A location path is a form of XPath expression.
655      // The message indicates that syntactically such an expression was expected,but
656      // the characters specified by the substitution text were encountered instead.
657      { ER_EXPECTED_LOC_PATH,
658           "Era esperado um caminho de localiza\u00e7\u00e3o, mas o seguinte token foi encontrado\u003a  {0}"},
659    
660      // Note to translators:  A location path is a form of XPath expression.
661      // The message indicates that syntactically such a subexpression was expected,
662      // but no more characters were found in the expression.
663      { ER_EXPECTED_LOC_PATH_AT_END_EXPR,
664           "Era esperado um caminho de local, mas foi encontrado o final da express\u00e3o XPath: "},
665    
666      // Note to translators:  A location step is part of an XPath expression.
667      // The message indicates that syntactically such an expression was expected
668      // following the specified characters.
669      { ER_EXPECTED_LOC_STEP,
670           "Era esperada uma etapa de localiza\u00e7\u00e3o ap\u00f3s o token '/' ou '//'."},
671    
672      // Note to translators:  A node test is part of an XPath expression that is
673      // used to test for particular kinds of nodes.  In this case, a node test that
674      // consists of an NCName followed by a colon and an asterisk or that consists
675      // of a QName was expected, but was not found.
676      { ER_EXPECTED_NODE_TEST,
677           "Era esperado um n\u00f3 correspondente a NCName:* ou QName."},
678    
679      // Note to translators:  A step pattern is part of an XPath expression.
680      // The message indicates that syntactically such an expression was expected,
681      // but the specified character was found in the expression instead.
682      { ER_EXPECTED_STEP_PATTERN,
683           "Era esperado um padr\u00e3o de etapa, mas foi encontrado '/'."},
684    
685      // Note to translators: A relative path pattern is part of an XPath expression.
686      // The message indicates that syntactically such an expression was expected,
687      // but was not found.
688      { ER_EXPECTED_REL_PATH_PATTERN,
689           "Era esperado um padr\u00e3o de caminho relativo."},
690    
691      // Note to translators:  The substitution text is the name of a data type.  The
692      // message indicates that a value of a particular type could not be converted
693      // to a value of type boolean.
694      { ER_CANT_CONVERT_TO_BOOLEAN,
695           "O XPathResult da express\u00e3o XPath ''{0}'' tem um XPathResultType de {1} que n\u00e3o pode ser convertido em um booleano."},
696    
697      // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
698      // FIRST_ORDERED_NODE_TYPE.
699      { ER_CANT_CONVERT_TO_SINGLENODE,
700           "O XPathResult da express\u00e3o XPath ''{0}'' tem um XPathResultType de {1} que n\u00e3o pode ser convertido em um \u00fanico n\u00f3. O m\u00e9todo getSingleNodeValue aplica-se apenas aos tipos ANY_UNORDERED_NODE_TYPE e FIRST_ORDERED_NODE_TYPE."},
701    
702      // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
703      // ORDERED_NODE_SNAPSHOT_TYPE.
704      { ER_CANT_GET_SNAPSHOT_LENGTH,
705           "O m\u00e9todo getSnapshotLength n\u00e3o pode ser chamado no XPathResult da express\u00e3o XPath ''{0}'' porque seu XPathResultType \u00e9 {1}. Este m\u00e9todo aplica-se apenas aos tipos UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
706    
707      { ER_NON_ITERATOR_TYPE,
708           "O m\u00e9todo iterateNext n\u00e3o pode ser chamado no XPathResult da express\u00e3o XPath ''{0}'' porque seu XPathResultType \u00e9 {1}. Este m\u00e9todo aplica-se apenas aos tipos UNORDERED_NODE_ITERATOR_TYPE e ORDERED_NODE_ITERATOR_TYPE."},
709    
710      // Note to translators: This message indicates that the document being operated
711      // upon changed, so the iterator object that was being used to traverse the
712      // document has now become invalid.
713      { ER_DOC_MUTATED,
714           "Documento alterado desde o retorno do resultado. O iterador \u00e9 inv\u00e1lido."},
715    
716      { ER_INVALID_XPATH_TYPE,
717           "Argumento de tipo XPath inv\u00e1lido: {0}"},
718    
719      { ER_EMPTY_XPATH_RESULT,
720           "Objeto de resultado XPath vazio"},
721    
722      { ER_INCOMPATIBLE_TYPES,
723           "O XPathResult da express\u00e3o XPath ''{0}'' tem um XPathResultType de {1} que n\u00e3o pode ser for\u00e7ado no XPathResultType especificado de {2}."},
724    
725      { ER_NULL_RESOLVER,
726           "N\u00e3o foi poss\u00edvel resolver o prefixo com um resolvedor de prefixo nulo."},
727    
728      // Note to translators:  The substitution text is the name of a data type.  The
729      // message indicates that a value of a particular type could not be converted
730      // to a value of type string.
731      { ER_CANT_CONVERT_TO_STRING,
732           "O XPathResult da express\u00e3o XPath ''{0}'' tem um XPathResultType de {1} que n\u00e3o pode ser convertido em uma cadeia."},
733    
734      // Note to translators: Do not translate snapshotItem,
735      // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
736      { ER_NON_SNAPSHOT_TYPE,
737           "O m\u00e9todo snapshotItem n\u00e3o pode ser chamado no XPathResult da express\u00e3o XPath ''{0}'' porque seu XPathResultType \u00e9 {1}. Este m\u00e9todo aplica-se apenas aos tipos UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE."},
738    
739      // Note to translators:  XPathEvaluator is a Java interface name.  An
740      // XPathEvaluator is created with respect to a particular XML document, and in
741      // this case the expression represented by this object was being evaluated with
742      // respect to a context node from a different document.
743      { ER_WRONG_DOCUMENT,
744           "O n\u00f3 do contexto n\u00e3o pertence ao documento que est\u00e1 ligado a este XPathEvaluator."},
745    
746      // Note to translators:  The XPath expression cannot be evaluated with respect
747      // to this type of node.
748      { ER_WRONG_NODETYPE,
749           "O tipo de n\u00f3 de contexto n\u00e3o \u00e9 suportado."},
750    
751      { ER_XPATH_ERROR,
752           "Erro desconhecido em XPath."},
753    
754            { ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER,
755                    "O XPathResult da express\u00e3o XPath ''{0}'' tem um XPathResultType de {1} que n\u00e3o pode ser convertido em um n\u00famero."},
756    
757     //BEGIN:  Definitions of error keys used  in exception messages of  JAXP 1.3 XPath API implementation
758    
759      /** Field ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED                       */
760    
761      { ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED,
762           "Fun\u00e7\u00e3o de extens\u00e3o: ''{0}'' n\u00e3o pode ser chamado quando o recurso XMLConstants.FEATURE_SECURE_PROCESSING est\u00e1 definido como true."},
763    
764      /** Field ER_RESOLVE_VARIABLE_RETURNS_NULL                       */
765    
766      { ER_RESOLVE_VARIABLE_RETURNS_NULL,
767           "resolveVariable para a vari\u00e1vel {0} retornando nulo"},
768    
769      /** Field ER_UNSUPPORTED_RETURN_TYPE                       */
770    
771      { ER_UNSUPPORTED_RETURN_TYPE,
772           "Tipo de Retorno N\u00e3o Suportado : {0}"},
773    
774      /** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL                       */
775    
776      { ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL,
777           "O Tipo de Origem e/ou Retorno n\u00e3o pode ser nulo"},
778    
779      /** Field ER_ARG_CANNOT_BE_NULL                       */
780    
781      { ER_ARG_CANNOT_BE_NULL,
782           "O argumento {0} n\u00e3o pode ser nulo"},
783    
784      /** Field ER_OBJECT_MODEL_NULL                       */
785    
786      { ER_OBJECT_MODEL_NULL,
787           "{0}#isObjectModelSupported( String objectModel ) n\u00e3o pode ser chamado com objectModel == null"},
788    
789      /** Field ER_OBJECT_MODEL_EMPTY                       */
790    
791      { ER_OBJECT_MODEL_EMPTY,
792           "{0}#isObjectModelSupported( String objectModel ) n\u00e3o pode ser chamado com objectModel == \"\""},
793    
794      /** Field ER_OBJECT_MODEL_EMPTY                       */
795    
796      { ER_FEATURE_NAME_NULL,
797           "Tentando definir um recurso com um nome nulo: {0}#setFeature( null, {1})"},
798    
799      /** Field ER_FEATURE_UNKNOWN                       */
800    
801      { ER_FEATURE_UNKNOWN,
802           "Tentando definir o recurso desconhecido \"{0}\":{1}#setFeature({0},{2})"},
803    
804      /** Field ER_GETTING_NULL_FEATURE                       */
805    
806      { ER_GETTING_NULL_FEATURE,
807           "Tentando obter um recurso com um nome nulo: {0}#getFeature(null)"},
808    
809      /** Field ER_GETTING_NULL_FEATURE                       */
810    
811      { ER_GETTING_UNKNOWN_FEATURE,
812           "Tentando obter o recurso desconhecido \"{0}\":{1}#getFeature({0})"},
813    
814      /** Field ER_NULL_XPATH_FUNCTION_RESOLVER                       */
815    
816      { ER_NULL_XPATH_FUNCTION_RESOLVER,
817           "Tentando definir um nulo XPathFunctionResolver:{0}#setXPathFunctionResolver(null)"},
818    
819      /** Field ER_NULL_XPATH_VARIABLE_RESOLVER                       */
820    
821      { ER_NULL_XPATH_VARIABLE_RESOLVER,
822           "Tentando definir um nulo XPathVariableResolver:{0}#setXPathVariableResolver(null)"},
823    
824      //END:  Definitions of error keys used  in exception messages of  JAXP 1.3 XPath API implementation
825    
826      // Warnings...
827    
828      { WG_LOCALE_NAME_NOT_HANDLED,
829          "nome de locale na fun\u00e7\u00e3o format-number ainda n\u00e3o tratado!"},
830    
831      { WG_PROPERTY_NOT_SUPPORTED,
832          "Propriedade XSL n\u00e3o suportada: {0}"},
833    
834      { WG_DONT_DO_ANYTHING_WITH_NS,
835          "N\u00e3o fazer nada no momento com o espa\u00e7o de nomes {0} na propriedade {1}"},
836    
837      { WG_SECURITY_EXCEPTION,
838          "SecurityException ao tentar acessar a propriedade do sistema XSL: {0}"},
839    
840      { WG_QUO_NO_LONGER_DEFINED,
841          "Sintaxe antiga: quo(...) n\u00e3o est\u00e1 mais definida no XPath."},
842    
843      { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
844          "XPath precisa de um objeto derivado para implementar nodeTest!"},
845    
846      { WG_FUNCTION_TOKEN_NOT_FOUND,
847          "Token function n\u00e3o encontrado."},
848    
849      { WG_COULDNOT_FIND_FUNCTION,
850          "N\u00e3o foi poss\u00edvel localizar a fun\u00e7\u00e3o: {0}"},
851    
852      { WG_CANNOT_MAKE_URL_FROM,
853          "Imposs\u00edvel criar URL a partir de: {0}"},
854    
855      { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
856          "A op\u00e7\u00e3o -E n\u00e3o \u00e9 suportada pelo analisador do DTM"},
857    
858      { WG_ILLEGAL_VARIABLE_REFERENCE,
859          "VariableReference fornecido para a vari\u00e1vel fora de contexto ou sem defini\u00e7\u00e3o!  Nome = {0}"},
860    
861      { WG_UNSUPPORTED_ENCODING,
862         "Codifica\u00e7\u00e3o n\u00e3o suportada: {0}"},
863    
864    
865    
866      // Other miscellaneous text used inside the code...
867      { "ui_language", "pt"},
868      { "help_language", "pt"},
869      { "language", "pt"},
870      { "BAD_CODE", "O par\u00e2metro para createMessage estava fora dos limites"},
871      { "FORMAT_FAILED", "Exce\u00e7\u00e3o emitida durante chamada messageFormat"},
872      { "version", ">>>>>>> Vers\u00e3o Xalan"},
873      { "version2", "<<<<<<<"},
874      { "yes", "sim"},
875      { "line", "Linha n\u00b0"},
876      { "column", "Coluna n\u00b0"},
877      { "xsldone", "XSLProcessor: conclu\u00eddo"},
878      { "xpath_option", "op\u00e7\u00f5es xpath:"},
879      { "optionIN", "   [-in inputXMLURL]"},
880      { "optionSelect", "   [-select xpath expression]"},
881      { "optionMatch", "[-match match pattern (para corresponder diagn\u00f3sticos)]"},
882      { "optionAnyExpr", "Ou apenas uma express\u00e3o xpath executar\u00e1 um dump de diagn\u00f3stico"},
883      { "noParsermsg1", "O Processo XSL n\u00e3o obteve \u00eaxito."},
884      { "noParsermsg2", "** N\u00e3o foi poss\u00edvel encontrar o analisador **"},
885      { "noParsermsg3", "Verifique seu classpath."},
886      { "noParsermsg4", "Se voc\u00ea n\u00e3o tiver o XML Parser para Java da IBM, poder\u00e1 fazer o download dele a partir de"},
887      { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
888      { "gtone", ">1" },
889      { "zero", "0" },
890      { "one", "1" },
891      { "two" , "2" },
892      { "three", "3" }
893    
894      };
895      }
896    
897    
898      // ================= INFRASTRUCTURE ======================
899    
900      /** Field BAD_CODE          */
901      public static final String BAD_CODE = "BAD_CODE";
902    
903      /** Field FORMAT_FAILED          */
904      public static final String FORMAT_FAILED = "FORMAT_FAILED";
905    
906      /** Field ERROR_RESOURCES          */
907      public static final String ERROR_RESOURCES =
908        "org.apache.xpath.res.XPATHErrorResources";
909    
910      /** Field ERROR_STRING          */
911      public static final String ERROR_STRING = "#error";
912    
913      /** Field ERROR_HEADER          */
914      public static final String ERROR_HEADER = "Erro: ";
915    
916      /** Field WARNING_HEADER          */
917      public static final String WARNING_HEADER = "Aviso: ";
918    
919      /** Field XSL_HEADER          */
920      public static final String XSL_HEADER = "XSL ";
921    
922      /** Field XML_HEADER          */
923      public static final String XML_HEADER = "XML ";
924    
925      /** Field QUERY_HEADER          */
926      public static final String QUERY_HEADER = "PADR\u00c3O ";
927    
928    
929      /**
930       * Return a named ResourceBundle for a particular locale.  This method mimics the behavior
931       * of ResourceBundle.getBundle().
932       *
933       * @param className Name of local-specific subclass.
934       * @return the ResourceBundle
935       * @throws MissingResourceException
936       */
937      public static final XPATHErrorResources loadResourceBundle(String className)
938              throws MissingResourceException
939      {
940    
941        Locale locale = Locale.getDefault();
942        String suffix = getResourceSuffix(locale);
943    
944        try
945        {
946    
947          // first try with the given locale
948          return (XPATHErrorResources) ResourceBundle.getBundle(className
949                  + suffix, locale);
950        }
951        catch (MissingResourceException e)
952        {
953          try  // try to fall back to en_US if we can't load
954          {
955    
956            // Since we can't find the localized property file,
957            // fall back to en_US.
958            return (XPATHErrorResources) ResourceBundle.getBundle(className,
959                    new Locale("pt", "BR"));
960          }
961          catch (MissingResourceException e2)
962          {
963    
964            // Now we are really in trouble.
965            // very bad, definitely very bad...not going to get very far
966            throw new MissingResourceException(
967              "Could not load any resource bundles.", className, "");
968          }
969        }
970      }
971    
972      /**
973       * Return the resource file suffic for the indicated locale
974       * For most locales, this will be based the language code.  However
975       * for Chinese, we do distinguish between Taiwan and PRC
976       *
977       * @param locale the locale
978       * @return an String suffix which canbe appended to a resource name
979       */
980      private static final String getResourceSuffix(Locale locale)
981      {
982    
983        String suffix = "_" + locale.getLanguage();
984        String country = locale.getCountry();
985    
986        if (country.equals("TW"))
987          suffix += "_" + country;
988    
989        return suffix;
990      }
991    
992    }