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_ca.java,v 1.5 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_ca 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: "La funci\u00f3 current() no \u00e9s permesa en un patr\u00f3 de coincid\u00e8ncia. " },
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: "La funci\u00f3 current() no accepta arguments. " },
0300:
0301: /** Field ER_DOCUMENT_REPLACED */
0302: // public static final int ER_DOCUMENT_REPLACED = 3;
0303: {
0304: ER_DOCUMENT_REPLACED,
0305: "La implementaci\u00f3 de la funci\u00f3 document() s'ha substitu\u00eft per 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: "El context no t\u00e9 un document de propietari. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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() t\u00e9 massa arguments. " },
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: "La funci\u00f3 translate() t\u00e9 tres arguments. " },
0351:
0352: /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
0353: // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
0354: { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
0355: "La funci\u00f3 unparsed-entity-uri ha de tenir un argument. " },
0356:
0357: /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
0358: // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0359: { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0360: "L'eix de l'espai de noms encara no s'ha implementat. " },
0361:
0362: /** Field ER_UNKNOWN_AXIS */
0363: // public static final int ER_UNKNOWN_AXIS = 15;
0364: { ER_UNKNOWN_AXIS, "Eix desconegut: {0} " },
0365:
0366: /** Field ER_UNKNOWN_MATCH_OPERATION */
0367: // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0368: { ER_UNKNOWN_MATCH_OPERATION,
0369: "Operaci\u00f3 de coincid\u00e8ncia desconeguda. " },
0370:
0371: /** Field ER_INCORRECT_ARG_LENGTH */
0372: // public static final int ER_INCORRECT_ARG_LENGTH = 17;
0373: {
0374: ER_INCORRECT_ARG_LENGTH,
0375: "La longitud de l'argument de la prova de node processing-instruction() no \u00e9s correcta. " },
0376:
0377: /** Field ER_CANT_CONVERT_TO_NUMBER */
0378: // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
0379: { ER_CANT_CONVERT_TO_NUMBER,
0380: "No es pot convertir {0} en un n\u00famero. " },
0381:
0382: /** Field ER_CANT_CONVERT_TO_NODELIST */
0383: //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
0384: { ER_CANT_CONVERT_TO_NODELIST,
0385: "No es pot convertir {0} en una NodeList. " },
0386:
0387: /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
0388: // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
0389: { ER_CANT_CONVERT_TO_MUTABLENODELIST,
0390: "No es pot convertir {0} en un NodeSetDTM. " },
0391:
0392: /** Field ER_CANT_CONVERT_TO_TYPE */
0393: // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
0394: { ER_CANT_CONVERT_TO_TYPE,
0395: "No es pot convertir {0} en un tipus #{1} " },
0396:
0397: /** Field ER_EXPECTED_MATCH_PATTERN */
0398: // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
0399: { ER_EXPECTED_MATCH_PATTERN,
0400: "El patr\u00f3 de coincid\u00e8ncia de getMatchScore \u00e9s l'esperat. " },
0401:
0402: /** Field ER_COULDNOT_GET_VAR_NAMED */
0403: // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
0404: { ER_COULDNOT_GET_VAR_NAMED,
0405: "No s''ha pogut obtenir la variable {0}. " },
0406:
0407: /** Field ER_UNKNOWN_OPCODE */
0408: // public static final int ER_UNKNOWN_OPCODE = 24;
0409: { ER_UNKNOWN_OPCODE, "ERROR. Codi op desconegut: {0} " },
0410:
0411: /** Field ER_EXTRA_ILLEGAL_TOKENS */
0412: // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0413: { ER_EXTRA_ILLEGAL_TOKENS,
0414: "Senyals addicionals no permesos: {0} " },
0415:
0416: /** Field ER_EXPECTED_DOUBLE_QUOTE */
0417: // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0418: { ER_EXPECTED_DOUBLE_QUOTE,
0419: "Les cometes del literal s\u00f3n incorrectes. Hi ha d'haver cometes dobles. " },
0420:
0421: /** Field ER_EXPECTED_SINGLE_QUOTE */
0422: // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0423: {
0424: ER_EXPECTED_SINGLE_QUOTE,
0425: "Les cometes del literal s\u00f3n incorrectes. Hi ha d'haver una cometa simple. " },
0426:
0427: /** Field ER_EMPTY_EXPRESSION */
0428: // public static final int ER_EMPTY_EXPRESSION = 28;
0429: { ER_EMPTY_EXPRESSION, "Expressi\u00f3 buida. " },
0430:
0431: /** Field ER_EXPECTED_BUT_FOUND */
0432: // public static final int ER_EXPECTED_BUT_FOUND = 29;
0433: { ER_EXPECTED_BUT_FOUND,
0434: "S''esperava {0}, per\u00f2 s''ha detectat {1} " },
0435:
0436: /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
0437: // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0438: { ER_INCORRECT_PROGRAMMER_ASSERTION,
0439: "L''afirmaci\u00f3 del programador \u00e9s incorrecta. - {0} " },
0440:
0441: /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
0442: // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0443: {
0444: ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0445: "L'argument boolean(...) ja no \u00e9s opcional amb l'esborrany d'XPath 19990709. " },
0446:
0447: /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
0448: // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0449: { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0450: "S'ha trobat ',' per\u00f2 no hi havia cap argument abans. " },
0451:
0452: /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
0453: // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0454: { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0455: "S'ha trobat ',' per\u00f2 no hi havia cap argument darrere. " },
0456:
0457: /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
0458: // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0459: {
0460: ER_PREDICATE_ILLEGAL_SYNTAX,
0461: "'..[predicate]' o '.[predicate]' no \u00e9s una sintaxi permesa. En comptes d'aix\u00f2, utilitzeu 'self::node()[predicate]'. " },
0462:
0463: /** Field ER_ILLEGAL_AXIS_NAME */
0464: // public static final int ER_ILLEGAL_AXIS_NAME = 35;
0465: { ER_ILLEGAL_AXIS_NAME,
0466: "Nom d''eix no perm\u00e8s: {0} " },
0467:
0468: /** Field ER_UNKNOWN_NODETYPE */
0469: // public static final int ER_UNKNOWN_NODETYPE = 36;
0470: { ER_UNKNOWN_NODETYPE, "Tipus de node desconegut: {0} " },
0471:
0472: /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
0473: // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0474: { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0475: "El literal de patr\u00f3 ({0}) ha d''anar entre cometes. " },
0476:
0477: /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
0478: // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0479: { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0480: "{0} no s''ha pogut formatar com a n\u00famero. " },
0481:
0482: /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
0483: // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0484: { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0485: "No s''ha pogut crear la relaci\u00f3 XML TransformerFactory: {0} " },
0486:
0487: /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
0488: // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0489: { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0490: "Error. No s'ha trobat l'expressi\u00f3 select d'xpath (-select). " },
0491:
0492: /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
0493: // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0494: { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0495: "ERROR. No s'ha trobat ENDOP despr\u00e9s d'OP_LOCATIONPATH. " },
0496:
0497: /** Field ER_ERROR_OCCURED */
0498: // public static final int ER_ERROR_OCCURED = 42;
0499: { ER_ERROR_OCCURED, "S'ha produ\u00eft un error. " },
0500:
0501: /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
0502: // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0503: {
0504: ER_ILLEGAL_VARIABLE_REFERENCE,
0505: "S''ha donat VariableReference per a una variable fora de context o sense definici\u00f3. Nom = {0} " },
0506:
0507: /** Field ER_AXES_NOT_ALLOWED */
0508: // public static final int ER_AXES_NOT_ALLOWED = 44;
0509: {
0510: ER_AXES_NOT_ALLOWED,
0511: "Nom\u00e9s es permeten els eixos subordinat:: i atribut:: en els patrons de coincid\u00e8ncia. Eixos incorrectes = {0} " },
0512:
0513: /** Field ER_KEY_HAS_TOO_MANY_ARGS */
0514: // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0515: { ER_KEY_HAS_TOO_MANY_ARGS,
0516: "key() t\u00e9 un nombre incorrecte d'arguments. " },
0517:
0518: /** Field ER_COUNT_TAKES_1_ARG */
0519: // public static final int ER_COUNT_TAKES_1_ARG = 46;
0520: { ER_COUNT_TAKES_1_ARG,
0521: "La funci\u00f3 count ha de tenir un argument. " },
0522:
0523: /** Field ER_COULDNOT_FIND_FUNCTION */
0524: // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0525: { ER_COULDNOT_FIND_FUNCTION,
0526: "No s''ha pogut trobar la funci\u00f3: {0} " },
0527:
0528: /** Field ER_UNSUPPORTED_ENCODING */
0529: // public static final int ER_UNSUPPORTED_ENCODING = 48;
0530: { ER_UNSUPPORTED_ENCODING,
0531: "Codificaci\u00f3 sense suport: {0} " },
0532:
0533: /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
0534: // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0535: {
0536: ER_PROBLEM_IN_DTM_NEXTSIBLING,
0537: "S'ha produ\u00eft un error en el DTM de getNextSibling. S'intentar\u00e0 solucionar. " },
0538:
0539: /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
0540: // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0541: { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0542: "Error del programador: no es pot escriure a EmptyNodeList. " },
0543:
0544: /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
0545: // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0546: { ER_SETDOMFACTORY_NOT_SUPPORTED,
0547: "XPathContext no d\u00f3na suport a setDOMFactory. " },
0548:
0549: /** Field ER_PREFIX_MUST_RESOLVE */
0550: // public static final int ER_PREFIX_MUST_RESOLVE = 52;
0551: { ER_PREFIX_MUST_RESOLVE,
0552: "El prefix s''ha de resoldre en un espai de noms: {0} " },
0553:
0554: /** Field ER_PARSE_NOT_SUPPORTED */
0555: // public static final int ER_PARSE_NOT_SUPPORTED = 53;
0556: {
0557: ER_PARSE_NOT_SUPPORTED,
0558: "L''an\u00e0lisi (origen InputSource) no t\u00e9 suport a XPathContext. No es pot obrir {0}. " },
0559:
0560: /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
0561: // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0562: //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0563: // "createDocument() not supported in XPathContext!"},
0564: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
0565: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0566: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0567: // "Attribute child does not have an owner document!"},
0568: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
0569: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0570: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0571: // "Attribute child does not have an owner document element!"},
0572: /** Field ER_SAX_API_NOT_HANDLED */
0573: // public static final int ER_SAX_API_NOT_HANDLED = 57;
0574: { ER_SAX_API_NOT_HANDLED,
0575: "Car\u00e0cters SAX API (char ch[]... no es poden gestionar pel DTM. " },
0576:
0577: /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
0578: //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0579: { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0580: "ignorableWhitespace(char ch[]... no es poden gestionar pel DTM. " },
0581:
0582: /** Field ER_DTM_CANNOT_HANDLE_NODES */
0583: // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0584: { ER_DTM_CANNOT_HANDLE_NODES,
0585: "DTMLiaison no pot gestionar nodes del tipus {0}. " },
0586:
0587: /** Field ER_XERCES_CANNOT_HANDLE_NODES */
0588: // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0589: { ER_XERCES_CANNOT_HANDLE_NODES,
0590: "DOM2Helper no pot gestionar nodes del tipus {0}. " },
0591:
0592: /** Field ER_XERCES_PARSE_ERROR_DETAILS */
0593: // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0594: { ER_XERCES_PARSE_ERROR_DETAILS,
0595: "Error de DOM2Helper.parse: ID del sistema - {0} l\u00ednia - {1} " },
0596:
0597: /** Field ER_XERCES_PARSE_ERROR */
0598: // public static final int ER_XERCES_PARSE_ERROR = 62;
0599: { ER_XERCES_PARSE_ERROR, "Error de DOM2Helper.parse " },
0600:
0601: /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
0602: // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0603: //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0604: // "Warning: can't output text before document element! Ignoring..."},
0605: /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
0606: // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0607: //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0608: // "Can't have more than one root on a DOM!"},
0609: /** Field ER_INVALID_UTF16_SURROGATE */
0610: // public static final int ER_INVALID_UTF16_SURROGATE = 65;
0611: { ER_INVALID_UTF16_SURROGATE,
0612: "S''ha detectat un suplent UTF-16 no v\u00e0lid: {0} ? " },
0613:
0614: /** Field ER_OIERROR */
0615: //public static final int ER_OIERROR = 66;
0616: { ER_OIERROR, "Error d'E/S " },
0617:
0618: /** Field ER_CANNOT_CREATE_URL */
0619: //public static final int ER_CANNOT_CREATE_URL = 67;
0620: { ER_CANNOT_CREATE_URL,
0621: "No es pot crear la url de: {0} " },
0622:
0623: /** Field ER_XPATH_READOBJECT */
0624: // public static final int ER_XPATH_READOBJECT = 68;
0625: { ER_XPATH_READOBJECT, "En XPath.readObject: {0} " },
0626:
0627: /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
0628: // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0629: { ER_FUNCTION_TOKEN_NOT_FOUND,
0630: "No s'ha trobat el senyal de funci\u00f3. " },
0631:
0632: /** Argument 'localName' is null */
0633: // public static final int ER_ARG_LOCALNAME_NULL = 70;
0634: //{ ER_ARG_LOCALNAME_NULL,
0635: // "Argument 'localName' is null"},
0636: /** Can not deal with XPath type: */
0637: // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0638: { ER_CANNOT_DEAL_XPATH_TYPE,
0639: "No s''ha pogut tractar amb el tipus d''XPath: {0} " },
0640:
0641: /** This NodeSet is not mutable */
0642: // public static final int ER_NODESET_NOT_MUTABLE = 72;
0643: { ER_NODESET_NOT_MUTABLE,
0644: "Aquest NodeSet no \u00e9s mutable. " },
0645:
0646: /** This NodeSetDTM is not mutable */
0647: // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0648: { ER_NODESETDTM_NOT_MUTABLE,
0649: "Aquest NodeSetDTM no \u00e9s mutable. " },
0650:
0651: /** Variable not resolvable: */
0652: // public static final int ER_VAR_NOT_RESOLVABLE = 74;
0653: { ER_VAR_NOT_RESOLVABLE,
0654: "No es pot resoldre la variable: {0} " },
0655:
0656: /** Null error handler */
0657: // public static final int ER_NULL_ERROR_HANDLER = 75;
0658: { ER_NULL_ERROR_HANDLER, "Manejador d'error nul " },
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: "Afirmaci\u00f3 del programador: opcode desconegut: {0}" },
0664:
0665: /** 0 or 1 */
0666: // public static final int ER_ZERO_OR_ONE = 77;
0667: { ER_ZERO_OR_ONE, "0 o 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 t\u00e9 suport de 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 t\u00e9 suport de 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 t\u00e9 suport de 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 s''ha trobat la variable amb el nom de {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 pot agafar una cadena com a argument. " },
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: "L'argument FastStringBuffer no pot ser nul." },
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 o 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: "S'ha accedit a la variable abans que estigu\u00e9s vinculada. " },
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: "XStringForFSB no pot agafar una cadena com a argument. " },
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 Error. S'est\u00e0 establint l'arrel d'un itinerant en nul. " },
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: "Aquest NodeSetDTM no es pot iterar en un node previ " },
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: "Aquest NodeSet no es pot iterar en un node previ " },
0728:
0729: /** This NodeSetDTM can not do indexing or counting functions! */
0730: // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0731: { ER_NODESETDTM_CANNOT_INDEX,
0732: "Aquest NodeSetDTM no pot indexar ni efectuar funcions de recompte " },
0733:
0734: /** This NodeSet can not do indexing or counting functions! */
0735: // public static final int ER_NODESET_CANNOT_INDEX = 91;
0736: { ER_NODESET_CANNOT_INDEX,
0737: "Aquest NodeSet no pot indexar ni efectuar funcions de recompte " },
0738:
0739: /** Can not call setShouldCacheNodes after nextNode has been called! */
0740: // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0741: { ER_CANNOT_CALL_SETSHOULDCACHENODE,
0742: "No es pot cridar setShouldCacheNodes despr\u00e9s que s'hagi cridat nextNode " },
0743:
0744: /** {0} only allows {1} arguments */
0745: // public static final int ER_ONLY_ALLOWS = 93;
0746: { ER_ONLY_ALLOWS,
0747: "{0} nom\u00e9s permet {1} arguments " },
0748:
0749: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0750: // public static final int ER_UNKNOWN_STEP = 94;
0751: { ER_UNKNOWN_STEP,
0752: "Afirmaci\u00f3 del programador a getNextStepPos: stepType desconegut: {0}" },
0753:
0754: //Note to translators: A relative location path is a form of XPath expression.
0755: // The message indicates that such an expression was expected following the
0756: // characters '/' or '//', but was not found.
0757:
0758: /** Problem with RelativeLocationPath */
0759: // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0760: { ER_EXPECTED_REL_LOC_PATH,
0761: "S'esperava una via d'acc\u00e9s relativa darrere del senyal '/' o '//'. " },
0762:
0763: // Note to translators: A location path is a form of XPath expression.
0764: // The message indicates that syntactically such an expression was expected,but
0765: // the characters specified by the substitution text were encountered instead.
0766:
0767: /** Problem with LocationPath */
0768: // public static final int ER_EXPECTED_LOC_PATH = 96;
0769: {
0770: ER_EXPECTED_LOC_PATH,
0771: "S''esperava una via d''acc\u00e9s d''ubicaci\u00f3, per\u00f2 s''ha trobat el senyal seg\u00fcent\u003a {0}" },
0772:
0773: // Note to translators: A location step is part of an XPath expression.
0774: // The message indicates that syntactically such an expression was expected
0775: // following the specified characters.
0776:
0777: /** Problem with Step */
0778: // public static final int ER_EXPECTED_LOC_STEP = 97;
0779: { ER_EXPECTED_LOC_STEP,
0780: "S'esperava un pas d'ubicaci\u00f3 despr\u00e9s del senyal '/' o '//'. " },
0781:
0782: // Note to translators: A node test is part of an XPath expression that is
0783: // used to test for particular kinds of nodes. In this case, a node test that
0784: // consists of an NCName followed by a colon and an asterisk or that consists
0785: // of a QName was expected, but was not found.
0786:
0787: /** Problem with NodeTest */
0788: // public static final int ER_EXPECTED_NODE_TEST = 98;
0789: { ER_EXPECTED_NODE_TEST,
0790: "S'esperava una prova de node que coincid\u00eds amb NCName:* o QName. " },
0791:
0792: // Note to translators: A step pattern is part of an XPath expression.
0793: // The message indicates that syntactically such an expression was expected,
0794: // but the specified character was found in the expression instead.
0795:
0796: /** Expected step pattern */
0797: // public static final int ER_EXPECTED_STEP_PATTERN = 99;
0798: { ER_EXPECTED_STEP_PATTERN,
0799: "S'esperava un patr\u00f3 de pas per\u00f2 s'ha trobat '/'. " },
0800:
0801: // Note to translators: A relative path pattern is part of an XPath expression.
0802: // The message indicates that syntactically such an expression was expected,
0803: // but was not found.
0804:
0805: /** Expected relative path pattern */
0806: // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0807: { ER_EXPECTED_REL_PATH_PATTERN,
0808: "S'esperava un patr\u00f3 de via d'acc\u00e9s relativa. " },
0809:
0810: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0811: // The localname is the portion after the optional colon; the message indicates
0812: // that there is a problem with that part of the QNAME.
0813:
0814: /** localname in QNAME should be a valid NCName */
0815: // public static final int ER_ARG_LOCALNAME_INVALID = 101;
0816: //{ ER_ARG_LOCALNAME_INVALID,
0817: // "Localname in QNAME should be a valid NCName"},
0818: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0819: // The prefix is the portion before the optional colon; the message indicates
0820: // that there is a problem with that part of the QNAME.
0821: /** prefix in QNAME should be a valid NCName */
0822: // public static final int ER_ARG_PREFIX_INVALID = 102;
0823: //{ ER_ARG_PREFIX_INVALID,
0824: // "Prefix in QNAME should be a valid NCName"},
0825: // Note to translators: The substitution text is the name of a data type. The
0826: // message indicates that a value of a particular type could not be converted
0827: // to a value of type string.
0828: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0829: // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0830: { ER_CANT_CONVERT_TO_BOOLEAN,
0831: "No es pot convertir {0} en boole\u00e0. " },
0832:
0833: // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0834: // FIRST_ORDERED_NODE_TYPE.
0835:
0836: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0837: //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0838: {
0839: ER_CANT_CONVERT_TO_SINGLENODE,
0840: "No es pot convertir {0} en un node \u00fanic. Aquest captador fa refer\u00e8ncia als tipus ANY_UNORDERED_NODE_TYPE i FIRST_ORDERED_NODE_TYPE. " },
0841:
0842: // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0843: // ORDERED_NODE_SNAPSHOT_TYPE.
0844:
0845: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0846: // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0847: {
0848: ER_CANT_GET_SNAPSHOT_LENGTH,
0849: "No es pot obtenir la longitud de la instant\u00e0nia del tipus: {0}. Aquest captador fa refer\u00e8ncia als tipus UNORDERED_NODE_SNAPSHOT_TYPE i ORDERED_NODE_SNAPSHOT_TYPE. " },
0850:
0851: /** Field ER_NON_ITERATOR_TYPE */
0852: //public static final int ER_NON_ITERATOR_TYPE = 106;
0853: { ER_NON_ITERATOR_TYPE,
0854: "No es pot iterar en un tipus no iterador: {0} " },
0855:
0856: // Note to translators: This message indicates that the document being operated
0857: // upon changed, so the iterator object that was being used to traverse the
0858: // document has now become invalid.
0859:
0860: /** Field ER_DOC_MUTATED */
0861: // public static final int ER_DOC_MUTATED = 107;
0862: {
0863: ER_DOC_MUTATED,
0864: "El document s'ha modificat des que es van produir els resultats. L'iterador no \u00e9s v\u00e0lid. " },
0865:
0866: /** Field ER_INVALID_XPATH_TYPE */
0867: // public static final int ER_INVALID_XPATH_TYPE = 108;
0868: { ER_INVALID_XPATH_TYPE,
0869: "L''argument de tipus XPath no \u00e9s v\u00e0lid: {0} " },
0870:
0871: /** Field ER_EMPTY_XPATH_RESULT */
0872: // public static final int ER_EMPTY_XPATH_RESULT = 109;
0873: { ER_EMPTY_XPATH_RESULT,
0874: "L'objecte de resultats XPath est\u00e0 buit. " },
0875:
0876: /** Field ER_INCOMPATIBLE_TYPES */
0877: // public static final int ER_INCOMPATIBLE_TYPES = 110;
0878: { ER_INCOMPATIBLE_TYPES,
0879: "El tipus retornat {0} no es pot encaixar en el tipus especificat {1} " },
0880:
0881: /** Field ER_NULL_RESOLVER */
0882: // public static final int ER_NULL_RESOLVER = 111;
0883: { ER_NULL_RESOLVER,
0884: "No es pot resoldre el prefix amb un solucionador de prefix nul. " },
0885:
0886: // Note to translators: The substitution text is the name of a data type. The
0887: // message indicates that a value of a particular type could not be converted
0888: // to a value of type string.
0889:
0890: /** Field ER_CANT_CONVERT_TO_STRING */
0891: // public static final int ER_CANT_CONVERT_TO_STRING = 112;
0892: { ER_CANT_CONVERT_TO_STRING,
0893: "No es pot convertir {0} en cadena. " },
0894:
0895: // Note to translators: Do not translate snapshotItem,
0896: // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0897:
0898: /** Field ER_NON_SNAPSHOT_TYPE */
0899: // public static final int ER_NON_SNAPSHOT_TYPE = 113;
0900: {
0901: ER_NON_SNAPSHOT_TYPE,
0902: "No es pot cridar snapshotItem en el tipus: {0}. Aquest m\u00e8tode fa refer\u00e8ncia als tipus UNORDERED_NODE_SNAPSHOT_TYPE i ORDERED_NODE_SNAPSHOT_TYPE. " },
0903:
0904: // Note to translators: XPathEvaluator is a Java interface name. An
0905: // XPathEvaluator is created with respect to a particular XML document, and in
0906: // this case the expression represented by this object was being evaluated with
0907: // respect to a context node from a different document.
0908:
0909: /** Field ER_WRONG_DOCUMENT */
0910: // public static final int ER_WRONG_DOCUMENT = 114;
0911: { ER_WRONG_DOCUMENT,
0912: "El node de context no pertany al document vinculat a aquest XPathEvaluator. " },
0913:
0914: // Note to translators: The XPath expression cannot be evaluated with respect
0915: // to this type of node.
0916: /** Field ER_WRONG_NODETYPE */
0917: // public static final int ER_WRONG_NODETYPE = 115;
0918: { ER_WRONG_NODETYPE,
0919: "El tipus de node de context no t\u00e9 suport. " },
0920:
0921: /** Field ER_XPATH_ERROR */
0922: // public static final int ER_XPATH_ERROR = 116;
0923: { ER_XPATH_ERROR,
0924: "S'ha produ\u00eft un error desconegut a XPath." },
0925:
0926: // Warnings...
0927:
0928: /** Field WG_LOCALE_NAME_NOT_HANDLED */
0929: // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0930: {
0931: WG_LOCALE_NAME_NOT_HANDLED,
0932: "No s'ha gestionat encara el nom d'entorn nacional en la funci\u00f3 format-number. " },
0933:
0934: /** Field WG_PROPERTY_NOT_SUPPORTED */
0935: // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0936: { WG_PROPERTY_NOT_SUPPORTED,
0937: "La propietat XSL no t\u00e9 suport: {0} " },
0938:
0939: /** Field WG_DONT_DO_ANYTHING_WITH_NS */
0940: // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0941: { WG_DONT_DO_ANYTHING_WITH_NS,
0942: "No feu res ara mateix amb l''espai de noms {0} de la propietat: {1} " },
0943:
0944: /** Field WG_SECURITY_EXCEPTION */
0945: // public static final int WG_SECURITY_EXCEPTION = 4;
0946: {
0947: WG_SECURITY_EXCEPTION,
0948: "S''ha produ\u00eft SecurityException en intentar accedir a la propietat de sistema XSL: {0} " },
0949:
0950: /** Field WG_QUO_NO_LONGER_DEFINED */
0951: // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0952: { WG_QUO_NO_LONGER_DEFINED,
0953: "Sintaxi antiga: quo(...) ja no est\u00e0 definit a XPath. " },
0954:
0955: /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
0956: // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0957: { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0958: "XPath necessita un objecte dedu\u00eft per implementar nodeTest. " },
0959:
0960: /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
0961: // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0962: { WG_FUNCTION_TOKEN_NOT_FOUND,
0963: "No s'ha trobat el senyal de funci\u00f3. " },
0964:
0965: /** Field WG_COULDNOT_FIND_FUNCTION */
0966: // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0967: { WG_COULDNOT_FIND_FUNCTION,
0968: "No s''ha pogut trobar la funci\u00f3: {0} " },
0969:
0970: /** Field WG_CANNOT_MAKE_URL_FROM */
0971: // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
0972: { WG_CANNOT_MAKE_URL_FROM,
0973: "No es pot crear la URL de: {0} " },
0974:
0975: /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
0976: // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
0977: { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
0978: "L'opci\u00f3 -E no t\u00e9 suport a l'analitzador de DTM " },
0979:
0980: /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
0981: // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
0982: {
0983: WG_ILLEGAL_VARIABLE_REFERENCE,
0984: "S''ha donat VariableReference per a una variable fora de context o sense definici\u00f3. Nom = {0} " },
0985:
0986: /** Field WG_UNSUPPORTED_ENCODING */
0987: // public static final int WG_UNSUPPORTED_ENCODING = 12;
0988: { WG_UNSUPPORTED_ENCODING,
0989: "Codificaci\u00f3 sense suport: {0} " },
0990:
0991: // Other miscellaneous text used inside the code...
0992: { "ui_language", "ca" },
0993: { "help_language", "ca" },
0994: { "language", "ca" },
0995: { "BAD_CODE",
0996: "El par\u00e0metre de createMessage estava fora dels l\u00edmits. " },
0997: { "FORMAT_FAILED",
0998: "S'ha generat una excepci\u00f3 durant la crida messageFormat. " },
0999: { "version", ">>>>>>> Versi\u00f3 Xalan " },
1000: { "version2", "<<<<<<< " },
1001: { "yes", "s\u00ed" },
1002: { "line", "L\u00ednia n\u00fam. " },
1003: { "column", "Columna n\u00fam. " },
1004: { "xsldone", "XSLProcessor: fet " },
1005: { "xpath_option", "Opcions d'xpath: " },
1006: { "optionIN", "[-in inputXMLURL] " },
1007: { "optionSelect", "[-select expressi\u00f3 xpath] " },
1008: {
1009: "optionMatch",
1010: "[-match patr\u00f3 coincid\u00e8ncia (per a diagn\u00f2stics de coincid\u00e8ncia)] " },
1011: {
1012: "optionAnyExpr",
1013: "O nom\u00e9s una expressi\u00f3 xpath far\u00e0 un buidatge de diagn\u00f2stic. " },
1014: { "noParsermsg1",
1015: "El proc\u00e9s XSL no ha estat correcte. " },
1016: { "noParsermsg2", "** No s'ha trobat l'analitzador ** " },
1017: { "noParsermsg3", "Comproveu la vostra classpath. " },
1018: { "noParsermsg4",
1019: "Si no teniu XML Parser for Java d'IBM, el podeu baixar d' " },
1020: { "noParsermsg5",
1021: "AlphaWorks d'IBM: http://www.alphaworks.ibm.com/formula/xml " },
1022: { "gtone", ">1 " }, { "zero", "0 " }, { "one", "1 " },
1023: { "two", "2 " }, { "three", "3 " }
1024:
1025: };
1026: }
1027:
1028: // ================= INFRASTRUCTURE ======================
1029:
1030: /** Field BAD_CODE */
1031: public static final String BAD_CODE = "BAD_CODE";
1032:
1033: /** Field FORMAT_FAILED */
1034: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1035:
1036: /** Field ERROR_RESOURCES */
1037: public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1038:
1039: /** Field ERROR_STRING */
1040: public static final String ERROR_STRING = "#error";
1041:
1042: /** Field ERROR_HEADER */
1043: public static final String ERROR_HEADER = "Error: ";
1044:
1045: /** Field WARNING_HEADER */
1046: public static final String WARNING_HEADER = "Av\u00eds: ";
1047:
1048: /** Field XSL_HEADER */
1049: public static final String XSL_HEADER = "XSL ";
1050:
1051: /** Field XML_HEADER */
1052: public static final String XML_HEADER = "XML ";
1053:
1054: /** Field QUERY_HEADER */
1055: public static final String QUERY_HEADER = "PATTERN ";
1056:
1057: /**
1058: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1059: * of ResourceBundle.getBundle().
1060: *
1061: * @param className Name of local-specific subclass.
1062: * @return the ResourceBundle
1063: * @throws MissingResourceException
1064: */
1065: public static final XPATHErrorResources loadResourceBundle(
1066: String className) throws MissingResourceException {
1067:
1068: Locale locale = Locale.getDefault();
1069: String suffix = getResourceSuffix(locale);
1070:
1071: try {
1072:
1073: // first try with the given locale
1074: return (XPATHErrorResources) ResourceBundle.getBundle(
1075: className + suffix, locale);
1076: } catch (MissingResourceException e) {
1077: try // try to fall back to en_US if we can't load
1078: {
1079:
1080: // Since we can't find the localized property file,
1081: // fall back to en_US.
1082: return (XPATHErrorResources) ResourceBundle.getBundle(
1083: className, new Locale("ca", "ES"));
1084: } catch (MissingResourceException e2) {
1085:
1086: // Now we are really in trouble.
1087: // very bad, definitely very bad...not going to get very far
1088: throw new MissingResourceException(
1089: "Could not load any resource bundles.",
1090: className, "");
1091: }
1092: }
1093: }
1094:
1095: /**
1096: * Return the resource file suffic for the indicated locale
1097: * For most locales, this will be based the language code. However
1098: * for Chinese, we do distinguish between Taiwan and PRC
1099: *
1100: * @param locale the locale
1101: * @return an String suffix which canbe appended to a resource name
1102: */
1103: private static final String getResourceSuffix(Locale locale) {
1104:
1105: String suffix = "_" + locale.getLanguage();
1106: String country = locale.getCountry();
1107:
1108: if (country.equals("TW"))
1109: suffix += "_" + country;
1110:
1111: return suffix;
1112: }
1113:
1114: }
|