0001: /*
0002: * Copyright 1999-2004 The Apache Software Foundation.
0003: *
0004: * Licensed under the Apache License, Version 2.0 (the "License");
0005: * you may not use this file except in compliance with the License.
0006: * You may obtain a copy of the License at
0007: *
0008: * http://www.apache.org/licenses/LICENSE-2.0
0009: *
0010: * Unless required by applicable law or agreed to in writing, software
0011: * distributed under the License is distributed on an "AS IS" BASIS,
0012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013: * See the License for the specific language governing permissions and
0014: * limitations under the License.
0015: */
0016: /*
0017: * $Id: XPATHErrorResources_es.java,v 1.10 2005/01/23 01:39:54 mcnamara Exp $
0018: */
0019: package org.apache.xpath.res;
0020:
0021: import java.util.ListResourceBundle;
0022: import java.util.Locale;
0023: import java.util.MissingResourceException;
0024: import java.util.ResourceBundle;
0025:
0026: /**
0027: * Set up error messages.
0028: * We build a two dimensional array of message keys and
0029: * message strings. In order to add a new message here,
0030: * you need to first add a Static string constant for the
0031: * Key and update the contents array with Key, Value pair
0032: * Also you need to update the count of messages(MAX_CODE)or
0033: * the count of warnings(MAX_WARNING) [ Information purpose only]
0034: * @xsl.usage advanced
0035: */
0036: public class XPATHErrorResources_es extends ListResourceBundle {
0037:
0038: /*
0039: * General notes to translators:
0040: *
0041: * This file contains error and warning messages related to XPath Error
0042: * Handling.
0043: *
0044: * 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
0045: * components.
0046: * XSLT is an acronym for "XML Stylesheet Language: Transformations".
0047: * XSLTC is an acronym for XSLT Compiler.
0048: *
0049: * 2) A stylesheet is a description of how to transform an input XML document
0050: * into a resultant XML document (or HTML document or text). The
0051: * stylesheet itself is described in the form of an XML document.
0052: *
0053: * 3) A template is a component of a stylesheet that is used to match a
0054: * particular portion of an input document and specifies the form of the
0055: * corresponding portion of the output document.
0056: *
0057: * 4) An element is a mark-up tag in an XML document; an attribute is a
0058: * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
0059: * "elem" is an element name, "attr" and "attr2" are attribute names with
0060: * the values "val" and "val2", respectively.
0061: *
0062: * 5) A namespace declaration is a special attribute that is used to associate
0063: * a prefix with a URI (the namespace). The meanings of element names and
0064: * attribute names that use that prefix are defined with respect to that
0065: * namespace.
0066: *
0067: * 6) "Translet" is an invented term that describes the class file that
0068: * results from compiling an XML stylesheet into a Java class.
0069: *
0070: * 7) XPath is a specification that describes a notation for identifying
0071: * nodes in a tree-structured representation of an XML document. An
0072: * instance of that notation is referred to as an XPath expression.
0073: *
0074: * 8) The context node is the node in the document with respect to which an
0075: * XPath expression is being evaluated.
0076: *
0077: * 9) An iterator is an object that traverses nodes in the tree, one at a time.
0078: *
0079: * 10) NCName is an XML term used to describe a name that does not contain a
0080: * colon (a "no-colon name").
0081: *
0082: * 11) QName is an XML term meaning "qualified name".
0083: */
0084:
0085: /** Field MAX_CODE */
0086: public static final int MAX_CODE = 108; // this is needed to keep track of the number of messages
0087:
0088: /** Field MAX_WARNING */
0089: public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
0090:
0091: /** Field MAX_OTHERS */
0092: public static final int MAX_OTHERS = 20;
0093:
0094: /** Field MAX_MESSAGES */
0095: public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
0096:
0097: /*
0098: * static variables
0099: */
0100: public static final String ERROR0000 = "ERROR0000";
0101: public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
0102: public static final String ER_CURRENT_TAKES_NO_ARGS = "ER_CURRENT_TAKES_NO_ARGS";
0103: public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
0104: public static final String ER_CONTEXT_HAS_NO_OWNERDOC = "ER_CONTEXT_HAS_NO_OWNERDOC";
0105: public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
0106: public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
0107: public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
0108: public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = "ER_NUMBER_HAS_TOO_MANY_ARGS";
0109: public static final String ER_NAME_HAS_TOO_MANY_ARGS = "ER_NAME_HAS_TOO_MANY_ARGS";
0110: public static final String ER_STRING_HAS_TOO_MANY_ARGS = "ER_STRING_HAS_TOO_MANY_ARGS";
0111: public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
0112: public static final String ER_TRANSLATE_TAKES_3_ARGS = "ER_TRANSLATE_TAKES_3_ARGS";
0113: public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
0114: public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
0115: public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
0116: public static final String ER_UNKNOWN_MATCH_OPERATION = "ER_UNKNOWN_MATCH_OPERATION";
0117: public static final String ER_INCORRECT_ARG_LENGTH = "ER_INCORRECT_ARG_LENGTH";
0118: public static final String ER_CANT_CONVERT_TO_NUMBER = "ER_CANT_CONVERT_TO_NUMBER";
0119: public static final String ER_CANT_CONVERT_TO_NODELIST = "ER_CANT_CONVERT_TO_NODELIST";
0120: public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = "ER_CANT_CONVERT_TO_MUTABLENODELIST";
0121: public static final String ER_CANT_CONVERT_TO_TYPE = "ER_CANT_CONVERT_TO_TYPE";
0122: public static final String ER_EXPECTED_MATCH_PATTERN = "ER_EXPECTED_MATCH_PATTERN";
0123: public static final String ER_COULDNOT_GET_VAR_NAMED = "ER_COULDNOT_GET_VAR_NAMED";
0124: public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
0125: public static final String ER_EXTRA_ILLEGAL_TOKENS = "ER_EXTRA_ILLEGAL_TOKENS";
0126: public static final String ER_EXPECTED_DOUBLE_QUOTE = "ER_EXPECTED_DOUBLE_QUOTE";
0127: public static final String ER_EXPECTED_SINGLE_QUOTE = "ER_EXPECTED_SINGLE_QUOTE";
0128: public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
0129: public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
0130: public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = "ER_INCORRECT_PROGRAMMER_ASSERTION";
0131: public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
0132: public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
0133: public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
0134: public static final String ER_PREDICATE_ILLEGAL_SYNTAX = "ER_PREDICATE_ILLEGAL_SYNTAX";
0135: public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
0136: public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
0137: public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
0138: public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
0139: public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
0140: public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
0141: public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
0142: public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
0143: public static final String ER_ILLEGAL_VARIABLE_REFERENCE = "ER_ILLEGAL_VARIABLE_REFERENCE";
0144: public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
0145: public static final String ER_KEY_HAS_TOO_MANY_ARGS = "ER_KEY_HAS_TOO_MANY_ARGS";
0146: public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
0147: public static final String ER_COULDNOT_FIND_FUNCTION = "ER_COULDNOT_FIND_FUNCTION";
0148: public static final String ER_UNSUPPORTED_ENCODING = "ER_UNSUPPORTED_ENCODING";
0149: public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = "ER_PROBLEM_IN_DTM_NEXTSIBLING";
0150: public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
0151: public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = "ER_SETDOMFACTORY_NOT_SUPPORTED";
0152: public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
0153: public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED";
0154: //public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED =
0155: // "ER_CREATEDOCUMENT_NOT_SUPPORTED";
0156: //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT =
0157: // "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
0158: //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT =
0159: // "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
0160: public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED";
0161: public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
0162: public static final String ER_DTM_CANNOT_HANDLE_NODES = "ER_DTM_CANNOT_HANDLE_NODES";
0163: public static final String ER_XERCES_CANNOT_HANDLE_NODES = "ER_XERCES_CANNOT_HANDLE_NODES";
0164: public static final String ER_XERCES_PARSE_ERROR_DETAILS = "ER_XERCES_PARSE_ERROR_DETAILS";
0165: public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
0166: //public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC =
0167: // "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
0168: //public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT =
0169: // "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
0170: public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
0171: public static final String ER_OIERROR = "ER_OIERROR";
0172: public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
0173: public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
0174: public static final String ER_FUNCTION_TOKEN_NOT_FOUND = "ER_FUNCTION_TOKEN_NOT_FOUND";
0175: //public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
0176: public static final String ER_CANNOT_DEAL_XPATH_TYPE = "ER_CANNOT_DEAL_XPATH_TYPE";
0177: public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE";
0178: public static final String ER_NODESETDTM_NOT_MUTABLE = "ER_NODESETDTM_NOT_MUTABLE";
0179: /** Variable not resolvable: */
0180: public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
0181: /** Null error handler */
0182: public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
0183: /** Programmer's assertion: unknown opcode */
0184: public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = "ER_PROG_ASSERT_UNKNOWN_OPCODE";
0185: /** 0 or 1 */
0186: public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
0187: /** rtf() not supported by XRTreeFragSelectWrapper */
0188: public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
0189: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0190: public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
0191: /** fsb() not supported for XStringForChars */
0192: public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
0193: /** Could not find variable with the name of */
0194: public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
0195: /** XStringForChars can not take a string for an argument */
0196: public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
0197: /** The FastStringBuffer argument can not be null */
0198: public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
0199: /** 2 or 3 */
0200: public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
0201: /** Variable accessed before it is bound! */
0202: public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = "ER_VARIABLE_ACCESSED_BEFORE_BIND";
0203: /** XStringForFSB can not take a string for an argument! */
0204: public static final String ER_FSB_CANNOT_TAKE_STRING = "ER_FSB_CANNOT_TAKE_STRING";
0205: /** Error! Setting the root of a walker to null! */
0206: public static final String ER_SETTING_WALKER_ROOT_TO_NULL = "ER_SETTING_WALKER_ROOT_TO_NULL";
0207: /** This NodeSetDTM can not iterate to a previous node! */
0208: public static final String ER_NODESETDTM_CANNOT_ITERATE = "ER_NODESETDTM_CANNOT_ITERATE";
0209: /** This NodeSet can not iterate to a previous node! */
0210: public static final String ER_NODESET_CANNOT_ITERATE = "ER_NODESET_CANNOT_ITERATE";
0211: /** This NodeSetDTM can not do indexing or counting functions! */
0212: public static final String ER_NODESETDTM_CANNOT_INDEX = "ER_NODESETDTM_CANNOT_INDEX";
0213: /** This NodeSet can not do indexing or counting functions! */
0214: public static final String ER_NODESET_CANNOT_INDEX = "ER_NODESET_CANNOT_INDEX";
0215: /** Can not call setShouldCacheNodes after nextNode has been called! */
0216: public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = "ER_CANNOT_CALL_SETSHOULDCACHENODE";
0217: /** {0} only allows {1} arguments */
0218: public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
0219: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0220: public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
0221: /** Problem with RelativeLocationPath */
0222: public static final String ER_EXPECTED_REL_LOC_PATH = "ER_EXPECTED_REL_LOC_PATH";
0223: /** Problem with LocationPath */
0224: public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
0225: /** Problem with Step */
0226: public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
0227: /** Problem with NodeTest */
0228: public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
0229: /** Expected step pattern */
0230: public static final String ER_EXPECTED_STEP_PATTERN = "ER_EXPECTED_STEP_PATTERN";
0231: /** Expected relative path pattern */
0232: public static final String ER_EXPECTED_REL_PATH_PATTERN = "ER_EXPECTED_REL_PATH_PATTERN";
0233: /** localname in QNAME should be a valid NCName */
0234: //public static final String ER_ARG_LOCALNAME_INVALID =
0235: // "ER_ARG_LOCALNAME_INVALID";
0236: /** prefix in QNAME should be a valid NCName */
0237: //public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
0238: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0239: public static final String ER_CANT_CONVERT_TO_BOOLEAN = "ER_CANT_CONVERT_TO_BOOLEAN";
0240: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0241: public static final String ER_CANT_CONVERT_TO_SINGLENODE = "ER_CANT_CONVERT_TO_SINGLENODE";
0242: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0243: public static final String ER_CANT_GET_SNAPSHOT_LENGTH = "ER_CANT_GET_SNAPSHOT_LENGTH";
0244: /** Field ER_NON_ITERATOR_TYPE */
0245: public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
0246: /** Field ER_DOC_MUTATED */
0247: public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED";
0248: public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
0249: public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
0250: public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
0251: public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
0252: public static final String ER_CANT_CONVERT_TO_STRING = "ER_CANT_CONVERT_TO_STRING";
0253: public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
0254: public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
0255: /* Note to translators: The XPath expression cannot be evaluated with respect
0256: * to this type of node.
0257: */
0258: /** Field ER_WRONG_NODETYPE */
0259: public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
0260: public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR";
0261:
0262: public static final String WG_LOCALE_NAME_NOT_HANDLED = "WG_LOCALE_NAME_NOT_HANDLED";
0263: public static final String WG_PROPERTY_NOT_SUPPORTED = "WG_PROPERTY_NOT_SUPPORTED";
0264: public static final String WG_DONT_DO_ANYTHING_WITH_NS = "WG_DONT_DO_ANYTHING_WITH_NS";
0265: public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
0266: public static final String WG_QUO_NO_LONGER_DEFINED = "WG_QUO_NO_LONGER_DEFINED";
0267: public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
0268: public static final String WG_FUNCTION_TOKEN_NOT_FOUND = "WG_FUNCTION_TOKEN_NOT_FOUND";
0269: public static final String WG_COULDNOT_FIND_FUNCTION = "WG_COULDNOT_FIND_FUNCTION";
0270: public static final String WG_CANNOT_MAKE_URL_FROM = "WG_CANNOT_MAKE_URL_FROM";
0271: public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
0272: public static final String WG_ILLEGAL_VARIABLE_REFERENCE = "WG_ILLEGAL_VARIABLE_REFERENCE";
0273: public static final String WG_UNSUPPORTED_ENCODING = "WG_UNSUPPORTED_ENCODING";
0274:
0275: // Error messages...
0276:
0277: /**
0278: * Get the association list.
0279: *
0280: * @return The association list.
0281: */
0282: public Object[][] getContents() {
0283: return new Object[][] {
0284:
0285: /** Field ERROR0000 */
0286:
0287: // public static final int ERROR0000 = 0;
0288: { "ERROR0000", "{0}" },
0289:
0290: /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
0291: // public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
0292: {
0293: ER_CURRENT_NOT_ALLOWED_IN_MATCH,
0294: "\u00a1No est\u00e1 permitida la funci\u00f3n current() en un patr\u00f3n de coincidencia!" },
0295:
0296: /** Field ER_CURRENT_TAKES_NO_ARGS */
0297: //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
0298: { ER_CURRENT_TAKES_NO_ARGS,
0299: "\u00a1La funci\u00f3n current() no acepta argumentos!" },
0300:
0301: /** Field ER_DOCUMENT_REPLACED */
0302: // public static final int ER_DOCUMENT_REPLACED = 3;
0303: {
0304: ER_DOCUMENT_REPLACED,
0305: "\u00a1La implementaci\u00f3n de la funci\u00f3n document() ha sido sustituida por org.apache.xalan.xslt.FuncDocument!" },
0306:
0307: /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
0308: // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
0309: { ER_CONTEXT_HAS_NO_OWNERDOC,
0310: "\u00a1El contexto no tiene un documento propietario!" },
0311:
0312: /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
0313: // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
0314: { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
0315: "local-name() tiene demasiados argumentos." },
0316:
0317: /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
0318: //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
0319: { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
0320: "namespace-uri() tiene demasiados argumentos." },
0321:
0322: /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
0323: // public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
0324: { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
0325: "normalize-space() tiene demasiados argumentos." },
0326:
0327: /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
0328: // public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
0329: { ER_NUMBER_HAS_TOO_MANY_ARGS,
0330: "number() tiene demasiados argumentos." },
0331:
0332: /** Field ER_NAME_HAS_TOO_MANY_ARGS */
0333: // public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
0334: { ER_NAME_HAS_TOO_MANY_ARGS,
0335: "name() tiene demasiados argumentos." },
0336:
0337: /** Field ER_STRING_HAS_TOO_MANY_ARGS */
0338: // public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
0339: { ER_STRING_HAS_TOO_MANY_ARGS,
0340: "string() tiene demasiados argumentos." },
0341:
0342: /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
0343: // public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
0344: { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
0345: "string-length() tiene demasiados argumentos." },
0346:
0347: /** Field ER_TRANSLATE_TAKES_3_ARGS */
0348: // public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
0349: { ER_TRANSLATE_TAKES_3_ARGS,
0350: "\u00a1La funci\u00f3n translate() utiliza tres argumentos!" },
0351:
0352: /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
0353: // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
0354: {
0355: ER_UNPARSEDENTITYURI_TAKES_1_ARG,
0356: "\u00a1La funci\u00f3n unparsed-entity-uri deber\u00eda utilizar un solo argumento!" },
0357:
0358: /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
0359: // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0360: { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0361: "\u00a1Eje de espacio de nombres a\u00fan no implementado!" },
0362:
0363: /** Field ER_UNKNOWN_AXIS */
0364: // public static final int ER_UNKNOWN_AXIS = 15;
0365: { ER_UNKNOWN_AXIS, "Eje desconocido: {0}" },
0366:
0367: /** Field ER_UNKNOWN_MATCH_OPERATION */
0368: // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0369: { ER_UNKNOWN_MATCH_OPERATION,
0370: "\u00a1Operaci\u00f3n de coincidencia desconocida!" },
0371:
0372: /** Field ER_INCORRECT_ARG_LENGTH */
0373: // public static final int ER_INCORRECT_ARG_LENGTH = 17;
0374: {
0375: ER_INCORRECT_ARG_LENGTH,
0376: "\u00a1La longitud del argumento de prueba del nodo processing-instruction() es incorrecta!" },
0377:
0378: /** Field ER_CANT_CONVERT_TO_NUMBER */
0379: // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
0380: { ER_CANT_CONVERT_TO_NUMBER,
0381: "No se puede convertir {0} a un n\u00famero" },
0382:
0383: /** Field ER_CANT_CONVERT_TO_NODELIST */
0384: //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
0385: { ER_CANT_CONVERT_TO_NODELIST,
0386: "\u00a1No se puede convertir {0} a NodeList!" },
0387:
0388: /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
0389: // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
0390: { ER_CANT_CONVERT_TO_MUTABLENODELIST,
0391: "\u00a1No se puede convertir {0} a NodeSetDTM!" },
0392:
0393: /** Field ER_CANT_CONVERT_TO_TYPE */
0394: // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
0395: { ER_CANT_CONVERT_TO_TYPE,
0396: "No se puede convertir {0} a un tipo {1}" },
0397:
0398: /** Field ER_EXPECTED_MATCH_PATTERN */
0399: // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
0400: { ER_EXPECTED_MATCH_PATTERN,
0401: "\u00a1Se esperaba un patr\u00f3n de coincidencia en getMatchScore!" },
0402:
0403: /** Field ER_COULDNOT_GET_VAR_NAMED */
0404: // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
0405: { ER_COULDNOT_GET_VAR_NAMED,
0406: "No se ha podido obtener la variable de nombre {0}" },
0407:
0408: /** Field ER_UNKNOWN_OPCODE */
0409: // public static final int ER_UNKNOWN_OPCODE = 24;
0410: { ER_UNKNOWN_OPCODE,
0411: "\u00a1ERROR! C\u00f3digo de operaci\u00f3n desconocido: {0}" },
0412:
0413: /** Field ER_EXTRA_ILLEGAL_TOKENS */
0414: // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0415: { ER_EXTRA_ILLEGAL_TOKENS,
0416: "Se\u00f1ales extra no permitidas: {0}" },
0417:
0418: /** Field ER_EXPECTED_DOUBLE_QUOTE */
0419: // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0420: { ER_EXPECTED_DOUBLE_QUOTE,
0421: "Literal sin entrecomillar... \u00a1Se esperaban comillas dobles!" },
0422:
0423: /** Field ER_EXPECTED_SINGLE_QUOTE */
0424: // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0425: { ER_EXPECTED_SINGLE_QUOTE,
0426: "Literal sin entrecomillar... \u00a1Se esperaban comillas simples!" },
0427:
0428: /** Field ER_EMPTY_EXPRESSION */
0429: // public static final int ER_EMPTY_EXPRESSION = 28;
0430: { ER_EMPTY_EXPRESSION,
0431: "\u00a1Expresi\u00f3n vac\u00eda!" },
0432:
0433: /** Field ER_EXPECTED_BUT_FOUND */
0434: // public static final int ER_EXPECTED_BUT_FOUND = 29;
0435: { ER_EXPECTED_BUT_FOUND,
0436: "Se esperaba {0}, pero se ha encontrado: {1}" },
0437:
0438: /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
0439: // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0440: { ER_INCORRECT_PROGRAMMER_ASSERTION,
0441: "\u00a1La aserci\u00f3n del programador es incorrecta! - {0}" },
0442:
0443: /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
0444: // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0445: {
0446: ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0447: "El argumento boolean(...) ya no es opcional con el borrador de XPath 19990709." },
0448:
0449: /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
0450: // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0451: { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0452: "\u00a1Se ha encontrado ',' pero sin argumento precedente!" },
0453:
0454: /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
0455: // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0456: { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0457: "\u00a1Se ha encontrado ',' pero sin argumento siguiente!" },
0458:
0459: /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
0460: // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0461: {
0462: ER_PREDICATE_ILLEGAL_SYNTAX,
0463: "'..[predicate]' o '.[predicate]' es una sintaxis no permitida. Utilice 'self::node()[predicate]' en su lugar." },
0464:
0465: /** Field ER_ILLEGAL_AXIS_NAME */
0466: // public static final int ER_ILLEGAL_AXIS_NAME = 35;
0467: { ER_ILLEGAL_AXIS_NAME,
0468: "Nombre de eje no permitido: {0}" },
0469:
0470: /** Field ER_UNKNOWN_NODETYPE */
0471: // public static final int ER_UNKNOWN_NODETYPE = 36;
0472: { ER_UNKNOWN_NODETYPE, "nodetype desconocido: {0}" },
0473:
0474: /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
0475: // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0476: { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0477: "\u00a1El literal del patr\u00f3n ({0}) tiene que estar entrecomillado!" },
0478:
0479: /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
0480: // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0481: { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0482: "\u00a1No se ha podido formatear {0} como un n\u00famero!" },
0483:
0484: /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
0485: // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0486: { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0487: "No se ha podido crear Liaison TransformerFactory XML: {0}" },
0488:
0489: /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
0490: // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0491: {
0492: ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0493: "\u00a1Error! No se ha encontrado la expresi\u00f3n de selecci\u00f3n (-select) de xpath." },
0494:
0495: /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
0496: // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0497: { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0498: "\u00a1ERROR! No se ha podido encontrar ENDOP despu\u00e9s de OP_LOCATIONPATH" },
0499:
0500: /** Field ER_ERROR_OCCURED */
0501: // public static final int ER_ERROR_OCCURED = 42;
0502: { ER_ERROR_OCCURED, "\u00a1Se ha producido un error!" },
0503:
0504: /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
0505: // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0506: {
0507: ER_ILLEGAL_VARIABLE_REFERENCE,
0508: "\u00a1La VariableReference dada para la variable est\u00e1 fuera de contexto o sin definici\u00f3n! Nombre = {0}" },
0509:
0510: /** Field ER_AXES_NOT_ALLOWED */
0511: // public static final int ER_AXES_NOT_ALLOWED = 44;
0512: {
0513: ER_AXES_NOT_ALLOWED,
0514: "\u00a1S\u00f3lo se permiten los ejes child:: y attribute:: en patrones de coincidencia! Ejes incorrectos = {0}" },
0515:
0516: /** Field ER_KEY_HAS_TOO_MANY_ARGS */
0517: // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0518: { ER_KEY_HAS_TOO_MANY_ARGS,
0519: "key() tiene un n\u00famero incorrecto de argumentos." },
0520:
0521: /** Field ER_COUNT_TAKES_1_ARG */
0522: // public static final int ER_COUNT_TAKES_1_ARG = 46;
0523: { ER_COUNT_TAKES_1_ARG,
0524: "\u00a1La funci\u00f3n count deber\u00eda utilizar un solo argumento!" },
0525:
0526: /** Field ER_COULDNOT_FIND_FUNCTION */
0527: // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0528: { ER_COULDNOT_FIND_FUNCTION,
0529: "No se ha podido encontrar la funci\u00f3n: {0}" },
0530:
0531: /** Field ER_UNSUPPORTED_ENCODING */
0532: // public static final int ER_UNSUPPORTED_ENCODING = 48;
0533: { ER_UNSUPPORTED_ENCODING,
0534: "Codificaci\u00f3n no soportada: {0}" },
0535:
0536: /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
0537: // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0538: { ER_PROBLEM_IN_DTM_NEXTSIBLING,
0539: "Se ha producido un problema en DTM en getNextSibling... Intentando recuperar" },
0540:
0541: /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
0542: // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0543: { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0544: "Error del programador: No se puede escribir enEmptyNodeList." },
0545:
0546: /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
0547: // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0548: { ER_SETDOMFACTORY_NOT_SUPPORTED,
0549: "\u00a1setDOMFactory no soportada por XPathContext!" },
0550:
0551: /** Field ER_PREFIX_MUST_RESOLVE */
0552: // public static final int ER_PREFIX_MUST_RESOLVE = 52;
0553: { ER_PREFIX_MUST_RESOLVE,
0554: "El prefijo debe resolverse como un espacio de nombres: {0}" },
0555:
0556: /** Field ER_PARSE_NOT_SUPPORTED */
0557: // public static final int ER_PARSE_NOT_SUPPORTED = 53;
0558: {
0559: ER_PARSE_NOT_SUPPORTED,
0560: "\u00a1parse (InputSource source) no soportada en XPathContext! No se puede abrir {0}" },
0561:
0562: /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
0563: // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0564: //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0565: // "createDocument() not supported in XPathContext!"},
0566: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
0567: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0568: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0569: // "Attribute child does not have an owner document!"},
0570: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
0571: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0572: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0573: // "Attribute child does not have an owner document element!"},
0574: /** Field ER_SAX_API_NOT_HANDLED */
0575: // public static final int ER_SAX_API_NOT_HANDLED = 57;
0576: { ER_SAX_API_NOT_HANDLED,
0577: "\u00a1API SAX characters(char ch[]... no manejada por DTM!" },
0578:
0579: /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
0580: //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0581: { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0582: "\u00a1ignorableWhitespace(char ch[]... no manejada por DTM!" },
0583:
0584: /** Field ER_DTM_CANNOT_HANDLE_NODES */
0585: // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0586: { ER_DTM_CANNOT_HANDLE_NODES,
0587: "DTMLiaison no puede manejar nodos de tipo {0}" },
0588:
0589: /** Field ER_XERCES_CANNOT_HANDLE_NODES */
0590: // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0591: { ER_XERCES_CANNOT_HANDLE_NODES,
0592: "DOM2Helper no puede manejar nodos de tipo {0}" },
0593:
0594: /** Field ER_XERCES_PARSE_ERROR_DETAILS */
0595: // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0596: { ER_XERCES_PARSE_ERROR_DETAILS,
0597: "Error DOM2Helper.parse: SystemID - {0} l\u00ednea - {1}" },
0598:
0599: /** Field ER_XERCES_PARSE_ERROR */
0600: // public static final int ER_XERCES_PARSE_ERROR = 62;
0601: { ER_XERCES_PARSE_ERROR, "Error DOM2Helper.parse" },
0602:
0603: /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
0604: // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0605: //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0606: // "Warning: can't output text before document element! Ignoring..."},
0607: /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
0608: // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0609: //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0610: // "Can't have more than one root on a DOM!"},
0611: /** Field ER_INVALID_UTF16_SURROGATE */
0612: // public static final int ER_INVALID_UTF16_SURROGATE = 65;
0613: { ER_INVALID_UTF16_SURROGATE,
0614: "\u00bfSe ha detectado un sustituto UTF-16 no v\u00e1lido: {0}?" },
0615:
0616: /** Field ER_OIERROR */
0617: //public static final int ER_OIERROR = 66;
0618: { ER_OIERROR, "Error de ES" },
0619:
0620: /** Field ER_CANNOT_CREATE_URL */
0621: //public static final int ER_CANNOT_CREATE_URL = 67;
0622: { ER_CANNOT_CREATE_URL,
0623: "No se puede crear url para: {0}" },
0624:
0625: /** Field ER_XPATH_READOBJECT */
0626: // public static final int ER_XPATH_READOBJECT = 68;
0627: { ER_XPATH_READOBJECT, "En XPath.readObject: {0}" },
0628:
0629: /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
0630: // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0631: { ER_FUNCTION_TOKEN_NOT_FOUND,
0632: "Se\u00f1al de funci\u00f3n no encontrada." },
0633:
0634: /** Argument 'localName' is null */
0635: // public static final int ER_ARG_LOCALNAME_NULL = 70;
0636: //{ ER_ARG_LOCALNAME_NULL,
0637: // "Argument 'localName' is null"},
0638: /** Can not deal with XPath type: */
0639: // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0640: { ER_CANNOT_DEAL_XPATH_TYPE,
0641: "No se puede tratar con el tipo XPath: {0}" },
0642:
0643: /** This NodeSet is not mutable */
0644: // public static final int ER_NODESET_NOT_MUTABLE = 72;
0645: { ER_NODESET_NOT_MUTABLE, "Este NodeSet no es mutable" },
0646:
0647: /** This NodeSetDTM is not mutable */
0648: // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0649: { ER_NODESETDTM_NOT_MUTABLE,
0650: "Este NodeSetDTM no es mutable" },
0651:
0652: /** Variable not resolvable: */
0653: // public static final int ER_VAR_NOT_RESOLVABLE = 74;
0654: { ER_VAR_NOT_RESOLVABLE, "Variable no resoluble: {0}" },
0655:
0656: /** Null error handler */
0657: // public static final int ER_NULL_ERROR_HANDLER = 75;
0658: { ER_NULL_ERROR_HANDLER, "Manejador de error nulo" },
0659:
0660: /** Programmer's assertion: unknown opcode */
0661: // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
0662: { ER_PROG_ASSERT_UNKNOWN_OPCODE,
0663: "Aserci\u00f3n del programador: opcode desconocido: {0}" },
0664:
0665: /** 0 or 1 */
0666: // public static final int ER_ZERO_OR_ONE = 77;
0667: { ER_ZERO_OR_ONE, "0 \u00f3 1" },
0668:
0669: /** rtf() not supported by XRTreeFragSelectWrapper */
0670: //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
0671: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0672: "rtf() no soportada por XRTreeFragSelectWrapper" },
0673:
0674: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0675: //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
0676: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0677: "asNodeIterator() no soportada por XRTreeFragSelectWrapper" },
0678:
0679: /** fsb() not supported for XStringForChars */
0680: // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
0681: { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
0682: "fsb() no soportada para XStringForChars" },
0683:
0684: /** Could not find variable with the name of */
0685: // public static final int ER_COULD_NOT_FIND_VAR = 81;
0686: { ER_COULD_NOT_FIND_VAR,
0687: "No se ha podido encontrar la variable con el nombre {0}" },
0688:
0689: /** XStringForChars can not take a string for an argument */
0690: // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
0691: { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
0692: "XStringForChars no puede utilizar una serie para un argumento" },
0693:
0694: /** The FastStringBuffer argument can not be null */
0695: // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
0696: { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
0697: "El argumento FastStringBuffer no puede ser nulo" },
0698:
0699: /* MANTIS_XALAN CHANGE: BEGIN */
0700: /** 2 or 3 */
0701: // public static final int ER_TWO_OR_THREE = 84;
0702: { ER_TWO_OR_THREE, "2 \u00f3 3" },
0703:
0704: /** Variable accessed before it is bound! */
0705: // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
0706: { ER_VARIABLE_ACCESSED_BEFORE_BIND,
0707: "\u00a1Se ha accedido a la variable antes de enlazarla!" },
0708:
0709: /** XStringForFSB can not take a string for an argument! */
0710: // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
0711: { ER_FSB_CANNOT_TAKE_STRING,
0712: "\u00a1XStringForFSB no puede utilizar una serie para un argumento!" },
0713:
0714: /** Error! Setting the root of a walker to null! */
0715: // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
0716: { ER_SETTING_WALKER_ROOT_TO_NULL,
0717: "\n !!!! \u00a1Error! Estableciendo ra\u00edz de walker como nulo!!!" },
0718:
0719: /** This NodeSetDTM can not iterate to a previous node! */
0720: // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
0721: { ER_NODESETDTM_CANNOT_ITERATE,
0722: "\u00a1Este NodeSetDTM no puede iterar a un nodo previo!" },
0723:
0724: /** This NodeSet can not iterate to a previous node! */
0725: // public static final int ER_NODESET_CANNOT_ITERATE = 89;
0726: { ER_NODESET_CANNOT_ITERATE,
0727: "\u00a1Este NodeSet no puede iterar a un nodo previo!" },
0728:
0729: /** This NodeSetDTM can not do indexing or counting functions! */
0730: // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0731: {
0732: ER_NODESETDTM_CANNOT_INDEX,
0733: "\u00a1Este NodeSetDTM no puede realizar funciones de indexaci\u00f3n o recuento!" },
0734:
0735: /** This NodeSet can not do indexing or counting functions! */
0736: // public static final int ER_NODESET_CANNOT_INDEX = 91;
0737: { ER_NODESET_CANNOT_INDEX,
0738: "\u00a1Este NodeSet no puede realizar funciones de indexaci\u00f3n o recuento!" },
0739:
0740: /** Can not call setShouldCacheNodes after nextNode has been called! */
0741: // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0742: {
0743: ER_CANNOT_CALL_SETSHOULDCACHENODE,
0744: "\u00a1No se puede llamar a setShouldCacheNodes despu\u00e9s de llamar a nextNode!" },
0745:
0746: /** {0} only allows {1} arguments */
0747: // public static final int ER_ONLY_ALLOWS = 93;
0748: { ER_ONLY_ALLOWS, "{0} s\u00f3lo admite {1} argumentos" },
0749:
0750: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0751: // public static final int ER_UNKNOWN_STEP = 94;
0752: { ER_UNKNOWN_STEP,
0753: "Aserci\u00f3n del programador en getNextStepPos: stepType desconocido: {0}" },
0754:
0755: //Note to translators: A relative location path is a form of XPath expression.
0756: // The message indicates that such an expression was expected following the
0757: // characters '/' or '//', but was not found.
0758:
0759: /** Problem with RelativeLocationPath */
0760: // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0761: {
0762: ER_EXPECTED_REL_LOC_PATH,
0763: "Se esperaba una v\u00eda de acceso de ubicaci\u00f3n relativa despu\u00e9s de la se\u00f1al '/' o '//'." },
0764:
0765: // Note to translators: A location path is a form of XPath expression.
0766: // The message indicates that syntactically such an expression was expected,but
0767: // the characters specified by the substitution text were encountered instead.
0768:
0769: /** Problem with LocationPath */
0770: // public static final int ER_EXPECTED_LOC_PATH = 96;
0771: {
0772: ER_EXPECTED_LOC_PATH,
0773: "Se esperaba una v\u00eda de acceso de ubicaci\u00f3n, pero se ha encontrado la se\u00f1al siguiente\u003a {0}" },
0774:
0775: // Note to translators: A location step is part of an XPath expression.
0776: // The message indicates that syntactically such an expression was expected
0777: // following the specified characters.
0778:
0779: /** Problem with Step */
0780: // public static final int ER_EXPECTED_LOC_STEP = 97;
0781: {
0782: ER_EXPECTED_LOC_STEP,
0783: "Se esperaba un paso de ubicaci\u00f3n despu\u00e9s de la se\u00f1al '/' o '//'." },
0784:
0785: // Note to translators: A node test is part of an XPath expression that is
0786: // used to test for particular kinds of nodes. In this case, a node test that
0787: // consists of an NCName followed by a colon and an asterisk or that consists
0788: // of a QName was expected, but was not found.
0789:
0790: /** Problem with NodeTest */
0791: // public static final int ER_EXPECTED_NODE_TEST = 98;
0792: { ER_EXPECTED_NODE_TEST,
0793: "Se esperaba una prueba de nodo coincidente con NCName:* o QName." },
0794:
0795: // Note to translators: A step pattern is part of an XPath expression.
0796: // The message indicates that syntactically such an expression was expected,
0797: // but the specified character was found in the expression instead.
0798:
0799: /** Expected step pattern */
0800: // public static final int ER_EXPECTED_STEP_PATTERN = 99;
0801: { ER_EXPECTED_STEP_PATTERN,
0802: "Se esperaba un patr\u00f3n de paso, pero se ha encontrado '/'." },
0803:
0804: // Note to translators: A relative path pattern is part of an XPath expression.
0805: // The message indicates that syntactically such an expression was expected,
0806: // but was not found.
0807:
0808: /** Expected relative path pattern */
0809: // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0810: { ER_EXPECTED_REL_PATH_PATTERN,
0811: "Se esperaba un patr\u00f3n de v\u00eda de acceso relativa." },
0812:
0813: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0814: // The localname is the portion after the optional colon; the message indicates
0815: // that there is a problem with that part of the QNAME.
0816:
0817: /** localname in QNAME should be a valid NCName */
0818: // public static final int ER_ARG_LOCALNAME_INVALID = 101;
0819: //{ ER_ARG_LOCALNAME_INVALID,
0820: // "Localname in QNAME should be a valid NCName"},
0821: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0822: // The prefix is the portion before the optional colon; the message indicates
0823: // that there is a problem with that part of the QNAME.
0824: /** prefix in QNAME should be a valid NCName */
0825: // public static final int ER_ARG_PREFIX_INVALID = 102;
0826: //{ ER_ARG_PREFIX_INVALID,
0827: // "Prefix in QNAME should be a valid NCName"},
0828: // Note to translators: The substitution text is the name of a data type. The
0829: // message indicates that a value of a particular type could not be converted
0830: // to a value of type string.
0831: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0832: // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0833: { ER_CANT_CONVERT_TO_BOOLEAN,
0834: "No se puede convertir {0} a booleano." },
0835:
0836: // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0837: // FIRST_ORDERED_NODE_TYPE.
0838:
0839: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0840: //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0841: {
0842: ER_CANT_CONVERT_TO_SINGLENODE,
0843: "No se puede convertir {0} a un solo nodo. Este obtenedor se aplica a los tipos ANY_UNORDERED_NODE_TYPE y FIRST_ORDERED_NODE_TYPE." },
0844:
0845: // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0846: // ORDERED_NODE_SNAPSHOT_TYPE.
0847:
0848: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0849: // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0850: {
0851: ER_CANT_GET_SNAPSHOT_LENGTH,
0852: "No se puede obtener longitud de instant\u00e1nea sobre el tipo: {0}. Este obtenedor se aplica a los tipos UNORDERED_NODE_SNAPSHOT_TYPE y ORDERED_NODE_SNAPSHOT_TYPE." },
0853:
0854: /** Field ER_NON_ITERATOR_TYPE */
0855: //public static final int ER_NON_ITERATOR_TYPE = 106;
0856: { ER_NON_ITERATOR_TYPE,
0857: "No se puede iterar sobre un tipo no iterador: {0}" },
0858:
0859: // Note to translators: This message indicates that the document being operated
0860: // upon changed, so the iterator object that was being used to traverse the
0861: // document has now become invalid.
0862:
0863: /** Field ER_DOC_MUTATED */
0864: // public static final int ER_DOC_MUTATED = 107;
0865: {
0866: ER_DOC_MUTATED,
0867: "El documento ha mutado desde que se devolvi\u00f3 el resultado. El iterador no es v\u00e1lido." },
0868:
0869: /** Field ER_INVALID_XPATH_TYPE */
0870: // public static final int ER_INVALID_XPATH_TYPE = 108;
0871: { ER_INVALID_XPATH_TYPE,
0872: "Argumento de tipo XPath no v\u00e1lido: {0}" },
0873:
0874: /** Field ER_EMPTY_XPATH_RESULT */
0875: // public static final int ER_EMPTY_XPATH_RESULT = 109;
0876: { ER_EMPTY_XPATH_RESULT,
0877: "Objeto de resultado XPath vac\u00edo" },
0878:
0879: /** Field ER_INCOMPATIBLE_TYPES */
0880: // public static final int ER_INCOMPATIBLE_TYPES = 110;
0881: { ER_INCOMPATIBLE_TYPES,
0882: "El tipo devuelto: {0} no se puede forzar al tipo especificado: {1}" },
0883:
0884: /** Field ER_NULL_RESOLVER */
0885: // public static final int ER_NULL_RESOLVER = 111;
0886: { ER_NULL_RESOLVER,
0887: "Imposible resolver prefijo con un solucionador de prefijo nulo." },
0888:
0889: // Note to translators: The substitution text is the name of a data type. The
0890: // message indicates that a value of a particular type could not be converted
0891: // to a value of type string.
0892:
0893: /** Field ER_CANT_CONVERT_TO_STRING */
0894: // public static final int ER_CANT_CONVERT_TO_STRING = 112;
0895: { ER_CANT_CONVERT_TO_STRING,
0896: "No se puede convertir {0} a serie." },
0897:
0898: // Note to translators: Do not translate snapshotItem,
0899: // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0900:
0901: /** Field ER_NON_SNAPSHOT_TYPE */
0902: // public static final int ER_NON_SNAPSHOT_TYPE = 113;
0903: {
0904: ER_NON_SNAPSHOT_TYPE,
0905: "No se puede llamar a snapshotItem sobre el tipo: {0}. Este m\u00e9todo se aplica a los tipos UNORDERED_NODE_SNAPSHOT_TYPE y ORDERED_NODE_SNAPSHOT_TYPE." },
0906:
0907: // Note to translators: XPathEvaluator is a Java interface name. An
0908: // XPathEvaluator is created with respect to a particular XML document, and in
0909: // this case the expression represented by this object was being evaluated with
0910: // respect to a context node from a different document.
0911:
0912: /** Field ER_WRONG_DOCUMENT */
0913: // public static final int ER_WRONG_DOCUMENT = 114;
0914: {
0915: ER_WRONG_DOCUMENT,
0916: "El nodo de contexto no pertenece al documento que est\u00e1 enlazado a este XPathEvaluator." },
0917:
0918: // Note to translators: The XPath expression cannot be evaluated with respect
0919: // to this type of node.
0920: /** Field ER_WRONG_NODETYPE */
0921: // public static final int ER_WRONG_NODETYPE = 115;
0922: { ER_WRONG_NODETYPE,
0923: "El tipo de nodo de contexto no est\u00e1 soportado." },
0924:
0925: /** Field ER_XPATH_ERROR */
0926: // public static final int ER_XPATH_ERROR = 116;
0927: { ER_XPATH_ERROR, "Error desconocido en XPath." },
0928:
0929: // Warnings...
0930:
0931: /** Field WG_LOCALE_NAME_NOT_HANDLED */
0932: // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0933: {
0934: WG_LOCALE_NAME_NOT_HANDLED,
0935: "\u00a1No se maneja a\u00fan el nombre de entorno local en la funci\u00f3n format-number!" },
0936:
0937: /** Field WG_PROPERTY_NOT_SUPPORTED */
0938: // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0939: { WG_PROPERTY_NOT_SUPPORTED,
0940: "Propiedad XSL no soportada: {0}" },
0941:
0942: /** Field WG_DONT_DO_ANYTHING_WITH_NS */
0943: // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0944: { WG_DONT_DO_ANYTHING_WITH_NS,
0945: "No hacer nada actualmente con el espacio de nombres {0} en la propiedad: {1}" },
0946:
0947: /** Field WG_SECURITY_EXCEPTION */
0948: // public static final int WG_SECURITY_EXCEPTION = 4;
0949: { WG_SECURITY_EXCEPTION,
0950: "SecurityException al intentar acceder a la propiedad del sistema XSL: {0}" },
0951:
0952: /** Field WG_QUO_NO_LONGER_DEFINED */
0953: // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0954: { WG_QUO_NO_LONGER_DEFINED,
0955: "La antigua sintaxis: quo(...) ya no est\u00e1 definida en XPath." },
0956:
0957: /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
0958: // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0959: { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0960: "\u00a1XPath necesita un objeto derivado para implementar nodeTest!" },
0961:
0962: /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
0963: // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0964: { WG_FUNCTION_TOKEN_NOT_FOUND,
0965: "Se\u00f1al de funci\u00f3n no encontrada." },
0966:
0967: /** Field WG_COULDNOT_FIND_FUNCTION */
0968: // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0969: { WG_COULDNOT_FIND_FUNCTION,
0970: "No se ha podido encontrar la funci\u00f3n: {0}" },
0971:
0972: /** Field WG_CANNOT_MAKE_URL_FROM */
0973: // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
0974: { WG_CANNOT_MAKE_URL_FROM,
0975: "No se puede crear URL desde: {0}" },
0976:
0977: /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
0978: // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
0979: { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
0980: "Opci\u00f3n -E no soportada para analizador DTM" },
0981:
0982: /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
0983: // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
0984: {
0985: WG_ILLEGAL_VARIABLE_REFERENCE,
0986: "\u00a1VariableReference dada para la variable est\u00e1 fuera de contexto o sin definici\u00f3n! Nombre = {0}" },
0987:
0988: /** Field WG_UNSUPPORTED_ENCODING */
0989: // public static final int WG_UNSUPPORTED_ENCODING = 12;
0990: { WG_UNSUPPORTED_ENCODING,
0991: "Codificaci\u00f3n no soportada: {0}" },
0992:
0993: // Other miscellaneous text used inside the code...
0994: { "ui_language", "es" },
0995: { "help_language", "es" },
0996: { "language", "es" },
0997: { "BAD_CODE",
0998: "El par\u00e1metro para createMessage estaba fuera de los l\u00edmites" },
0999: { "FORMAT_FAILED",
1000: "Se ha generado una excepci\u00f3n durante la llamada messageFormat" },
1001: { "version", ">>>>>>> Xalan versi\u00f3n" },
1002: { "version2", "<<<<<<<" },
1003: { "yes", "s\u00ed" },
1004: { "line", "L\u00ednea n\u00fam." },
1005: { "column", "Columna n\u00fam." },
1006: { "xsldone", "XSLProcessor: terminado" },
1007: { "xpath_option", "Opciones de xpath:" },
1008: { "optionIN", "[-in URLXMLEntrada]" },
1009: { "optionSelect", "[-select expresi\u00f3n xpath]" },
1010: { "optionMatch",
1011: "[-match patr\u00f3n de coincidencia (para diagn\u00f3sticos de coincidencia)]" },
1012: {
1013: "optionAnyExpr",
1014: "O simplemente una expresi\u00f3n xpath realizar\u00e1 un vuelco de diagn\u00f3stico" },
1015: { "noParsermsg1",
1016: "El proceso XSL no ha sido satisfactorio." },
1017: { "noParsermsg2",
1018: "** No se ha podido encontrar el analizador **" },
1019: { "noParsermsg3", "Compruebe la classpath." },
1020: { "noParsermsg4",
1021: "Si no dispone del analizador XML para Java de IBM, puede bajarlo de " },
1022: { "noParsermsg5",
1023: "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml" },
1024: { "gtone", ">1" }, { "zero", "0" }, { "one", "1" },
1025: { "two", "2" }, { "three", "3" }
1026:
1027: };
1028: }
1029:
1030: // ================= INFRASTRUCTURE ======================
1031:
1032: /** Field BAD_CODE */
1033: public static final String BAD_CODE = "BAD_CODE";
1034:
1035: /** Field FORMAT_FAILED */
1036: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1037:
1038: /** Field ERROR_RESOURCES */
1039: public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1040:
1041: /** Field ERROR_STRING */
1042: public static final String ERROR_STRING = "#error";
1043:
1044: /** Field ERROR_HEADER */
1045: public static final String ERROR_HEADER = "Error: ";
1046:
1047: /** Field WARNING_HEADER */
1048: public static final String WARNING_HEADER = "Aviso: ";
1049:
1050: /** Field XSL_HEADER */
1051: public static final String XSL_HEADER = "XSL ";
1052:
1053: /** Field XML_HEADER */
1054: public static final String XML_HEADER = "XML ";
1055:
1056: /** Field QUERY_HEADER */
1057: public static final String QUERY_HEADER = "PATTERN ";
1058:
1059: /**
1060: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1061: * of ResourceBundle.getBundle().
1062: *
1063: * @param className Name of local-specific subclass.
1064: * @return the ResourceBundle
1065: * @throws MissingResourceException
1066: */
1067: public static final XPATHErrorResources loadResourceBundle(
1068: String className) throws MissingResourceException {
1069:
1070: Locale locale = Locale.getDefault();
1071: String suffix = getResourceSuffix(locale);
1072:
1073: try {
1074:
1075: // first try with the given locale
1076: return (XPATHErrorResources) ResourceBundle.getBundle(
1077: className + suffix, locale);
1078: } catch (MissingResourceException e) {
1079: try // try to fall back to en_US if we can't load
1080: {
1081:
1082: // Since we can't find the localized property file,
1083: // fall back to en_US.
1084: return (XPATHErrorResources) ResourceBundle.getBundle(
1085: className, new Locale("es", "ES"));
1086: } catch (MissingResourceException e2) {
1087:
1088: // Now we are really in trouble.
1089: // very bad, definitely very bad...not going to get very far
1090: throw new MissingResourceException(
1091: "Could not load any resource bundles.",
1092: className, "");
1093: }
1094: }
1095: }
1096:
1097: /**
1098: * Return the resource file suffic for the indicated locale
1099: * For most locales, this will be based the language code. However
1100: * for Chinese, we do distinguish between Taiwan and PRC
1101: *
1102: * @param locale the locale
1103: * @return an String suffix which canbe appended to a resource name
1104: */
1105: private static final String getResourceSuffix(Locale locale) {
1106:
1107: String suffix = "_" + locale.getLanguage();
1108: String country = locale.getCountry();
1109:
1110: if (country.equals("TW"))
1111: suffix += "_" + country;
1112:
1113: return suffix;
1114: }
1115:
1116: }
|