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_zh_TW.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_zh_TW 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: "\u5728\u6bd4\u5c0d\u578b\u6a23\u4e2d\u4e0d\u5141\u8a31\u4f7f\u7528 current() \u51fd\u6578\uff01" },
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: "current() \u51fd\u6578\u4e0d\u63a5\u53d7\u5f15\u6578\uff01" },
0300:
0301: /** Field ER_DOCUMENT_REPLACED */
0302: // public static final int ER_DOCUMENT_REPLACED = 3;
0303: {
0304: ER_DOCUMENT_REPLACED,
0305: "document() \u51fd\u6578\u5be6\u4f5c\u5df2\u88ab org.apache.xalan.xslt.FuncDocument \u53d6\u4ee3\uff01" },
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: "\u74b0\u5883\u5b9a\u7fa9\u6c92\u6709\u64c1\u6709\u8005\u6587\u4ef6\uff01" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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() \u6709\u592a\u591a\u5f15\u6578\u3002" },
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: "translate() \u51fd\u6578\u9700\u8981 3 \u500b\u5f15\u6578\uff01" },
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: "unparsed-entity-uri \u51fd\u6578\u53ea\u9700\u8981 1 \u500b\u5f15\u6578\uff01" },
0356:
0357: /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
0358: // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0359: { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0360: "namespace axis \u5c1a\u672a\u5be6\u4f5c\uff01" },
0361:
0362: /** Field ER_UNKNOWN_AXIS */
0363: // public static final int ER_UNKNOWN_AXIS = 15;
0364: { ER_UNKNOWN_AXIS, "\u4e0d\u660e\u8ef8\uff1a{0}" },
0365:
0366: /** Field ER_UNKNOWN_MATCH_OPERATION */
0367: // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0368: { ER_UNKNOWN_MATCH_OPERATION,
0369: "\u4e0d\u660e\u7684\u6bd4\u5c0d\u4f5c\u696d\uff01" },
0370:
0371: /** Field ER_INCORRECT_ARG_LENGTH */
0372: // public static final int ER_INCORRECT_ARG_LENGTH = 17;
0373: {
0374: ER_INCORRECT_ARG_LENGTH,
0375: "processing-instruction() \u7bc0\u9ede\u6e2c\u8a66\u7684\u5f15\u6578\u9577\u5ea6\u4e0d\u6b63\u78ba\uff01" },
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: "{0} \u7121\u6cd5\u8f49\u63db\u70ba\u6578\u5b57" },
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: "{0} \u7121\u6cd5\u8f49\u63db\u70ba NodeList\uff01" },
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: "{0} \u7121\u6cd5\u8f49\u63db\u70ba NodeSetDTM\uff01" },
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: "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba type#{1}" },
0396:
0397: /** Field ER_EXPECTED_MATCH_PATTERN */
0398: // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
0399: {
0400: ER_EXPECTED_MATCH_PATTERN,
0401: "\u539f\u9810\u671f\u5728 getMatchScore \u4e2d\u6703\u51fa\u73fe\u6bd4\u5c0d\u578b\u6a23\uff01" },
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: "\u7121\u6cd5\u53d6\u5f97\u8b8a\u6578\u540d\u7a31 {0}" },
0407:
0408: /** Field ER_UNKNOWN_OPCODE */
0409: // public static final int ER_UNKNOWN_OPCODE = 24;
0410: { ER_UNKNOWN_OPCODE,
0411: "\u932f\u8aa4\uff01\u4e0d\u660e\u4f5c\u696d\u78bc\uff1a{0}" },
0412:
0413: /** Field ER_EXTRA_ILLEGAL_TOKENS */
0414: // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0415: { ER_EXTRA_ILLEGAL_TOKENS,
0416: "\u984d\u5916\u7684\u4e0d\u5408\u6cd5\u8a18\u865f\uff1a{0}" },
0417:
0418: /** Field ER_EXPECTED_DOUBLE_QUOTE */
0419: // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0420: {
0421: ER_EXPECTED_DOUBLE_QUOTE,
0422: "\u62ec\u932f\u5f15\u865f\u7684\u6587\u5b57... \u539f\u9810\u671f\u70ba\u96d9\u5f15\u865f\uff01" },
0423:
0424: /** Field ER_EXPECTED_SINGLE_QUOTE */
0425: // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0426: {
0427: ER_EXPECTED_SINGLE_QUOTE,
0428: "\u62ec\u932f\u5f15\u865f\u7684\u6587\u5b57... \u539f\u9810\u671f\u70ba\u55ae\u5f15\u865f\uff01" },
0429:
0430: /** Field ER_EMPTY_EXPRESSION */
0431: // public static final int ER_EMPTY_EXPRESSION = 28;
0432: { ER_EMPTY_EXPRESSION,
0433: "\u7a7a\u7684\u8868\u793a\u5f0f\uff01" },
0434:
0435: /** Field ER_EXPECTED_BUT_FOUND */
0436: // public static final int ER_EXPECTED_BUT_FOUND = 29;
0437: { ER_EXPECTED_BUT_FOUND,
0438: "\u539f\u9810\u671f\u70ba {0}\uff0c\u537b\u767c\u73fe\uff1a{1}" },
0439:
0440: /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
0441: // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0442: {
0443: ER_INCORRECT_PROGRAMMER_ASSERTION,
0444: "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u5047\u8a2d(Programmer assertion)\u4e0d\u6b63\u78ba\uff01- {0}" },
0445:
0446: /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
0447: // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0448: {
0449: ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0450: "boolean(...) \u5f15\u6578\u5728 19990709 XPath \u521d\u7a3f\u4e2d\u4e0d\u518d\u662f\u53ef\u9078\u7528\u7684\u3002" },
0451:
0452: /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
0453: // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0454: { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0455: "\u627e\u5230 ','\uff0c\u4f46\u4e4b\u524d\u6c92\u6709\u5f15\u6578\uff01" },
0456:
0457: /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
0458: // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0459: { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0460: "\u627e\u5230 ','\uff0c\u4f46\u4e4b\u5f8c\u6c92\u6709\u5f15\u6578\uff01" },
0461:
0462: /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
0463: // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0464: {
0465: ER_PREDICATE_ILLEGAL_SYNTAX,
0466: "'..[predicate]' \u6216 '.[predicate]' \u662f\u4e0d\u5408\u6cd5\u8a9e\u6cd5\u3002\u8acb\u6539\u7528 'self::node()[predicate]'\u3002" },
0467:
0468: /** Field ER_ILLEGAL_AXIS_NAME */
0469: // public static final int ER_ILLEGAL_AXIS_NAME = 35;
0470: { ER_ILLEGAL_AXIS_NAME,
0471: "\u4e0d\u5408\u6cd5\u8ef8\u540d\u7a31\uff1a{0}" },
0472:
0473: /** Field ER_UNKNOWN_NODETYPE */
0474: // public static final int ER_UNKNOWN_NODETYPE = 36;
0475: { ER_UNKNOWN_NODETYPE,
0476: "\u4e0d\u660e\u7bc0\u9ede\u985e\u578b\uff1a{0}" },
0477:
0478: /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
0479: // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0480: {
0481: ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0482: "\u578b\u6a23\u6587\u5b57 ({0}) \u9700\u8981\u7528\u5f15\u865f\u62ec\u4f4f\uff01" },
0483:
0484: /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
0485: // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0486: { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0487: "{0} \u7121\u6cd5\u683c\u5f0f\u5316\u70ba\u6578\u5b57\uff01" },
0488:
0489: /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
0490: // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0491: { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0492: "\u7121\u6cd5\u5efa\u7acb XML TransformerFactory Liaison\uff1a{0}" },
0493:
0494: /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
0495: // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0496: {
0497: ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0498: "\u932f\u8aa4\uff01\u6c92\u6709\u627e\u5230 xpath select \u8868\u793a\u5f0f (-select)\u3002" },
0499:
0500: /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
0501: // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0502: { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0503: "\u932f\u8aa4\uff01\u5728 OP_LOCATIONPATH \u4e4b\u5f8c\u627e\u4e0d\u5230 ENDOP" },
0504:
0505: /** Field ER_ERROR_OCCURED */
0506: // public static final int ER_ERROR_OCCURED = 42;
0507: { ER_ERROR_OCCURED, "\u767c\u751f\u932f\u8aa4\uff01" },
0508:
0509: /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
0510: // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0511: {
0512: ER_ILLEGAL_VARIABLE_REFERENCE,
0513: "\u63d0\u4f9b\u7d66\u8b8a\u6578\u7684 VariableReference \u8d85\u51fa\u74b0\u5883\u5b9a\u7fa9\u6216\u6c92\u6709\u5b9a\u7fa9\uff01\u540d\u7a31 = {0}" },
0514:
0515: /** Field ER_AXES_NOT_ALLOWED */
0516: // public static final int ER_AXES_NOT_ALLOWED = 44;
0517: {
0518: ER_AXES_NOT_ALLOWED,
0519: "\u6bd4\u5c0d\u578b\u6a23\u4e2d\u53ea\u63a5\u53d7 child:: \u4ee5\u53ca attribute:: \u5169\u7a2e\u8ef8\uff01\u4e0d\u7576\u7684\u8ef8 = {0}" },
0520:
0521: /** Field ER_KEY_HAS_TOO_MANY_ARGS */
0522: // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0523: { ER_KEY_HAS_TOO_MANY_ARGS,
0524: "key() \u542b\u6709\u4e0d\u6b63\u78ba\u5f15\u6578\u6578\u76ee\u3002" },
0525:
0526: /** Field ER_COUNT_TAKES_1_ARG */
0527: // public static final int ER_COUNT_TAKES_1_ARG = 46;
0528: { ER_COUNT_TAKES_1_ARG,
0529: "count \u51fd\u6578\u53ea\u9700\u8981\u4e00\u500b\u5f15\u6578\uff01" },
0530:
0531: /** Field ER_COULDNOT_FIND_FUNCTION */
0532: // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0533: { ER_COULDNOT_FIND_FUNCTION,
0534: "\u627e\u4e0d\u5230\u51fd\u6578\uff1a{0}" },
0535:
0536: /** Field ER_UNSUPPORTED_ENCODING */
0537: // public static final int ER_UNSUPPORTED_ENCODING = 48;
0538: { ER_UNSUPPORTED_ENCODING,
0539: "\u4e0d\u652f\u63f4\u7de8\u78bc\uff1a{0}" },
0540:
0541: /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
0542: // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0543: {
0544: ER_PROBLEM_IN_DTM_NEXTSIBLING,
0545: "getNextSibling \u6642\u5728 DTM \u767c\u751f\u554f\u984c... \u5617\u8a66\u56de\u5fa9" },
0546:
0547: /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
0548: // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0549: {
0550: ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0551: "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u932f\u8aa4\uff1a\u7121\u6cd5\u5beb\u5165 EmptyNodeList\u3002" },
0552:
0553: /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
0554: // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0555: { ER_SETDOMFACTORY_NOT_SUPPORTED,
0556: "setDOMFactory \u4e0d\u53d7 XPathContext \u652f\u63f4\uff01" },
0557:
0558: /** Field ER_PREFIX_MUST_RESOLVE */
0559: // public static final int ER_PREFIX_MUST_RESOLVE = 52;
0560: { ER_PREFIX_MUST_RESOLVE,
0561: "\u5b57\u9996\u5fc5\u9808\u89e3\u6790\u70ba\u540d\u7a31\u7a7a\u9593\uff1a{0}" },
0562:
0563: /** Field ER_PARSE_NOT_SUPPORTED */
0564: // public static final int ER_PARSE_NOT_SUPPORTED = 53;
0565: {
0566: ER_PARSE_NOT_SUPPORTED,
0567: "\u5728 XPathContext \u4e2d\u4e0d\u652f\u63f4\u5256\u6790\uff08InputSource \u539f\u59cb\u6a94\uff09\uff01\u7121\u6cd5\u958b\u555f {0}" },
0568:
0569: /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
0570: // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0571: //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0572: // "createDocument() not supported in XPathContext!"},
0573: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
0574: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0575: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0576: // "Attribute child does not have an owner document!"},
0577: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
0578: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0579: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0580: // "Attribute child does not have an owner document element!"},
0581: /** Field ER_SAX_API_NOT_HANDLED */
0582: // public static final int ER_SAX_API_NOT_HANDLED = 57;
0583: { ER_SAX_API_NOT_HANDLED,
0584: "SAX API character(char ch[]... \u4e0d\u80fd\u88ab DTM \u8655\u7406\uff01" },
0585:
0586: /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
0587: //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0588: { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0589: "ignorableWhitespace(char ch[]... \u4e0d\u80fd\u88ab DTM \u8655\u7406\uff01" },
0590:
0591: /** Field ER_DTM_CANNOT_HANDLE_NODES */
0592: // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0593: { ER_DTM_CANNOT_HANDLE_NODES,
0594: "DTMLiaison \u4e0d\u80fd\u8655\u7406 {0} \u985e\u578b\u7684\u7bc0\u9ede" },
0595:
0596: /** Field ER_XERCES_CANNOT_HANDLE_NODES */
0597: // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0598: { ER_XERCES_CANNOT_HANDLE_NODES,
0599: "DOM2Helper \u4e0d\u80fd\u8655\u7406 {0} \u985e\u578b\u7684\u7bc0\u9ede" },
0600:
0601: /** Field ER_XERCES_PARSE_ERROR_DETAILS */
0602: // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0603: { ER_XERCES_PARSE_ERROR_DETAILS,
0604: "DOM2Helper.parse \u932f\u8aa4\uff1aSystemID - {0} \u884c - {1}" },
0605:
0606: /** Field ER_XERCES_PARSE_ERROR */
0607: // public static final int ER_XERCES_PARSE_ERROR = 62;
0608: { ER_XERCES_PARSE_ERROR,
0609: "DOM2Helper.parse \u932f\u8aa4" },
0610:
0611: /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
0612: // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0613: //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0614: // "Warning: can't output text before document element! Ignoring..."},
0615: /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
0616: // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0617: //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0618: // "Can't have more than one root on a DOM!"},
0619: /** Field ER_INVALID_UTF16_SURROGATE */
0620: // public static final int ER_INVALID_UTF16_SURROGATE = 65;
0621: { ER_INVALID_UTF16_SURROGATE,
0622: "\u5075\u6e2c\u5230\u7121\u6548\u7684 UTF-16 \u4ee3\u7406\uff1a{0}?" },
0623:
0624: /** Field ER_OIERROR */
0625: //public static final int ER_OIERROR = 66;
0626: { ER_OIERROR, "IO \u932f\u8aa4" },
0627:
0628: /** Field ER_CANNOT_CREATE_URL */
0629: //public static final int ER_CANNOT_CREATE_URL = 67;
0630: { ER_CANNOT_CREATE_URL,
0631: "\u7121\u6cd5\u91dd\u5c0d\uff1a{0} \u5efa\u7acb URL" },
0632:
0633: /** Field ER_XPATH_READOBJECT */
0634: // public static final int ER_XPATH_READOBJECT = 68;
0635: { ER_XPATH_READOBJECT,
0636: "\u4f4d\u65bc XPath.readObject\uff1a{0}" },
0637:
0638: /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
0639: // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0640: { ER_FUNCTION_TOKEN_NOT_FOUND,
0641: "\u627e\u4e0d\u5230\u51fd\u6578\u8a18\u865f\u3002" },
0642:
0643: /** Argument 'localName' is null */
0644: // public static final int ER_ARG_LOCALNAME_NULL = 70;
0645: //{ ER_ARG_LOCALNAME_NULL,
0646: // "Argument 'localName' is null"},
0647: /** Can not deal with XPath type: */
0648: // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0649: { ER_CANNOT_DEAL_XPATH_TYPE,
0650: "\u7121\u6cd5\u8655\u7406 XPath \u985e\u578b\uff1a{0}" },
0651:
0652: /** This NodeSet is not mutable */
0653: // public static final int ER_NODESET_NOT_MUTABLE = 72;
0654: { ER_NODESET_NOT_MUTABLE,
0655: "\u6b64 NodeSet \u4e0d\u662f\u6613\u8b8a\u7684" },
0656:
0657: /** This NodeSetDTM is not mutable */
0658: // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0659: { ER_NODESETDTM_NOT_MUTABLE,
0660: "\u6b64 NodeSetDTM \u4e0d\u662f\u6613\u8b8a\u7684" },
0661:
0662: /** Variable not resolvable: */
0663: // public static final int ER_VAR_NOT_RESOLVABLE = 74;
0664: { ER_VAR_NOT_RESOLVABLE,
0665: "\u8b8a\u6578\u7121\u6cd5\u89e3\u6790\uff1a{0}" },
0666:
0667: /** Null error handler */
0668: // public static final int ER_NULL_ERROR_HANDLER = 75;
0669: { ER_NULL_ERROR_HANDLER,
0670: "\u7a7a\u503c\u932f\u8aa4\u8655\u7406\u7a0b\u5f0f" },
0671:
0672: /** Programmer's assertion: unknown opcode */
0673: // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
0674: {
0675: ER_PROG_ASSERT_UNKNOWN_OPCODE,
0676: "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5047\u8a2d(assertion)\uff1a\u4e0d\u660e opcode\uff1a{0}" },
0677:
0678: /** 0 or 1 */
0679: // public static final int ER_ZERO_OR_ONE = 77;
0680: { ER_ZERO_OR_ONE, "0 \u6216 1" },
0681:
0682: /** rtf() not supported by XRTreeFragSelectWrapper */
0683: //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
0684: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0685: "rtf() \u4e0d\u53d7 XRTreeFragSelectWrapper \u652f\u63f4" },
0686:
0687: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0688: //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
0689: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0690: "asNodeIterator() \u4e0d\u53d7 XRTreeFragSelectWrapper \u652f\u63f4" },
0691:
0692: /** fsb() not supported for XStringForChars */
0693: // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
0694: { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
0695: "fsb() \u4e0d\u53d7 XStringForChars \u652f\u63f4" },
0696:
0697: /** Could not find variable with the name of */
0698: // public static final int ER_COULD_NOT_FIND_VAR = 81;
0699: { ER_COULD_NOT_FIND_VAR,
0700: "\u627e\u4e0d\u5230\u540d\u7a31\u70ba {0} \u7684\u8b8a\u6578" },
0701:
0702: /** XStringForChars can not take a string for an argument */
0703: // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
0704: { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
0705: "XStringForChars \u4e0d\u63a5\u53d7\u5b57\u4e32\u4f5c\u70ba\u5f15\u6578" },
0706:
0707: /** The FastStringBuffer argument can not be null */
0708: // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
0709: { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
0710: "FastStringBuffer \u5f15\u6578\u4e0d\u53ef\u70ba\u7a7a\u503c" },
0711:
0712: /* MANTIS_XALAN CHANGE: BEGIN */
0713: /** 2 or 3 */
0714: // public static final int ER_TWO_OR_THREE = 84;
0715: { ER_TWO_OR_THREE, "2 \u6216 3" },
0716:
0717: /** Variable accessed before it is bound! */
0718: // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
0719: { ER_VARIABLE_ACCESSED_BEFORE_BIND,
0720: "\u8b8a\u6578\u5728\u9023\u7d50\u4e4b\u524d\u5373\u88ab\u5b58\u53d6\uff01" },
0721:
0722: /** XStringForFSB can not take a string for an argument! */
0723: // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
0724: {
0725: ER_FSB_CANNOT_TAKE_STRING,
0726: "XStringForFSB \u4e0d\u53ef\u4f7f\u7528\u5b57\u4e32\u4f5c\u70ba\u5f15\u6578\uff01" },
0727:
0728: /** Error! Setting the root of a walker to null! */
0729: // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
0730: {
0731: ER_SETTING_WALKER_ROOT_TO_NULL,
0732: "\n!!!! \u932f\u8aa4\uff01\u8a2d\u5b9a Walker \u7684\u6839\u76ee\u9304\u70ba\u7a7a\u503c!!!" },
0733:
0734: /** This NodeSetDTM can not iterate to a previous node! */
0735: // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
0736: {
0737: ER_NODESETDTM_CANNOT_ITERATE,
0738: "\u6b64 NodeSetDTM \u4e0d\u53ef\u758a\u4ee3\u70ba\u524d\u4e00\u500b\u7bc0\u9ede\uff01" },
0739:
0740: /** This NodeSet can not iterate to a previous node! */
0741: // public static final int ER_NODESET_CANNOT_ITERATE = 89;
0742: {
0743: ER_NODESET_CANNOT_ITERATE,
0744: "\u6b64 NodeSet \u4e0d\u53ef\u758a\u4ee3\u70ba\u524d\u4e00\u500b\u7bc0\u9ede\uff01" },
0745:
0746: /** This NodeSetDTM can not do indexing or counting functions! */
0747: // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0748: {
0749: ER_NODESETDTM_CANNOT_INDEX,
0750: "\u6b64 NodeSetDTM \u4e0d\u53ef\u57f7\u884c\u6aa2\u7d22\u6216\u8a08\u6578\u529f\u80fd\uff01" },
0751:
0752: /** This NodeSet can not do indexing or counting functions! */
0753: // public static final int ER_NODESET_CANNOT_INDEX = 91;
0754: {
0755: ER_NODESET_CANNOT_INDEX,
0756: "\u6b64 NodeSet \u4e0d\u53ef\u57f7\u884c\u6aa2\u7d22\u6216\u8a08\u6578\u529f\u80fd\uff01" },
0757:
0758: /** Can not call setShouldCacheNodes after nextNode has been called! */
0759: // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0760: {
0761: ER_CANNOT_CALL_SETSHOULDCACHENODE,
0762: "\u5728\u547c\u53eb nextNode \u4e4b\u5f8c\u4e0d\u80fd\u547c\u53eb setShouldCacheNodes\u3002" },
0763:
0764: /** {0} only allows {1} arguments */
0765: // public static final int ER_ONLY_ALLOWS = 93;
0766: { ER_ONLY_ALLOWS,
0767: "{0} \u53ea\u5141\u8a31 {1} \u5f15\u6578" },
0768:
0769: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0770: // public static final int ER_UNKNOWN_STEP = 94;
0771: {
0772: ER_UNKNOWN_STEP,
0773: "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u5c0d\u65bc getNextStepPos \u7684\u5047\u8a2d(assertion)\uff1a\u4e0d\u660e stepType\uff1a{0}" },
0774:
0775: //Note to translators: A relative location path is a form of XPath expression.
0776: // The message indicates that such an expression was expected following the
0777: // characters '/' or '//', but was not found.
0778:
0779: /** Problem with RelativeLocationPath */
0780: // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0781: {
0782: ER_EXPECTED_REL_LOC_PATH,
0783: "\u9810\u671f\u5728 '/' \u6216 '//' \u8a18\u865f\u4e4b\u5f8c\u70ba\u76f8\u5c0d\u7684\u4f4d\u7f6e\u8def\u5f91\u3002" },
0784:
0785: // Note to translators: A location path is a form of XPath expression.
0786: // The message indicates that syntactically such an expression was expected,but
0787: // the characters specified by the substitution text were encountered instead.
0788:
0789: /** Problem with LocationPath */
0790: // public static final int ER_EXPECTED_LOC_PATH = 96;
0791: {
0792: ER_EXPECTED_LOC_PATH,
0793: "\u5fc5\u9808\u662f\u4f4d\u7f6e\u8def\u5f91\uff0c\u537b\u9047\u5230\u4e0b\u5217\u8a18\u865f\u003a {0}" },
0794:
0795: // Note to translators: A location step is part of an XPath expression.
0796: // The message indicates that syntactically such an expression was expected
0797: // following the specified characters.
0798:
0799: /** Problem with Step */
0800: // public static final int ER_EXPECTED_LOC_STEP = 97;
0801: {
0802: ER_EXPECTED_LOC_STEP,
0803: "\u9810\u671f\u5728 '/' \u6216 '//' \u8a18\u865f\u4e4b\u5f8c\u70ba location step\u3002" },
0804:
0805: // Note to translators: A node test is part of an XPath expression that is
0806: // used to test for particular kinds of nodes. In this case, a node test that
0807: // consists of an NCName followed by a colon and an asterisk or that consists
0808: // of a QName was expected, but was not found.
0809:
0810: /** Problem with NodeTest */
0811: // public static final int ER_EXPECTED_NODE_TEST = 98;
0812: {
0813: ER_EXPECTED_NODE_TEST,
0814: "\u539f\u9810\u671f\u70ba\u7b26\u5408 NCName:* \u6216 QName \u7684 node test\u3002" },
0815:
0816: // Note to translators: A step pattern is part of an XPath expression.
0817: // The message indicates that syntactically such an expression was expected,
0818: // but the specified character was found in the expression instead.
0819:
0820: /** Expected step pattern */
0821: // public static final int ER_EXPECTED_STEP_PATTERN = 99;
0822: { ER_EXPECTED_STEP_PATTERN,
0823: "\u539f\u9810\u671f\u70ba step pattern\uff0c\u4f46\u537b\u9047\u5230 '/'\u3002" },
0824:
0825: // Note to translators: A relative path pattern is part of an XPath expression.
0826: // The message indicates that syntactically such an expression was expected,
0827: // but was not found.
0828:
0829: /** Expected relative path pattern */
0830: // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0831: { ER_EXPECTED_REL_PATH_PATTERN,
0832: "\u539f\u9810\u671f\u70ba\u76f8\u5c0d\u7684\u8def\u5f91\u578b\u6a23\u3002" },
0833:
0834: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0835: // The localname is the portion after the optional colon; the message indicates
0836: // that there is a problem with that part of the QNAME.
0837:
0838: /** localname in QNAME should be a valid NCName */
0839: // public static final int ER_ARG_LOCALNAME_INVALID = 101;
0840: //{ ER_ARG_LOCALNAME_INVALID,
0841: // "Localname in QNAME should be a valid NCName"},
0842: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0843: // The prefix is the portion before the optional colon; the message indicates
0844: // that there is a problem with that part of the QNAME.
0845: /** prefix in QNAME should be a valid NCName */
0846: // public static final int ER_ARG_PREFIX_INVALID = 102;
0847: //{ ER_ARG_PREFIX_INVALID,
0848: // "Prefix in QNAME should be a valid NCName"},
0849: // Note to translators: The substitution text is the name of a data type. The
0850: // message indicates that a value of a particular type could not be converted
0851: // to a value of type string.
0852: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0853: // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0854: { ER_CANT_CONVERT_TO_BOOLEAN,
0855: "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba boolean\u3002" },
0856:
0857: // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0858: // FIRST_ORDERED_NODE_TYPE.
0859:
0860: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0861: //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0862: {
0863: ER_CANT_CONVERT_TO_SINGLENODE,
0864: "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba\u55ae\u4e00\u7bc0\u9ede\u3002\u6b64\u53d6\u5f97\u5143\u9069\u7528\u65bc ANY_UNORDERED_NODE_TYPE \u548c FIRST_ORDERED_NODE_TYPE \u5169\u7a2e\u985e\u578b\u3002" },
0865:
0866: // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0867: // ORDERED_NODE_SNAPSHOT_TYPE.
0868:
0869: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0870: // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0871: {
0872: ER_CANT_GET_SNAPSHOT_LENGTH,
0873: "\u7121\u6cd5\u53d6\u5f97\u985e\u578b {0} \u7684\u77ac\u9593\u5feb\u7167\u9577\u5ea6\u3002\u6b64\u53d6\u5f97\u5143\u9069\u7528\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE \u5169\u7a2e\u985e\u578b\u3002" },
0874:
0875: /** Field ER_NON_ITERATOR_TYPE */
0876: //public static final int ER_NON_ITERATOR_TYPE = 106;
0877: { ER_NON_ITERATOR_TYPE,
0878: "\u7121\u6cd5\u758a\u4ee3\u975e\u758a\u4ee3\u985e\u578b\uff1a{0}" },
0879:
0880: // Note to translators: This message indicates that the document being operated
0881: // upon changed, so the iterator object that was being used to traverse the
0882: // document has now become invalid.
0883:
0884: /** Field ER_DOC_MUTATED */
0885: // public static final int ER_DOC_MUTATED = 107;
0886: {
0887: ER_DOC_MUTATED,
0888: "\u81ea\u50b3\u56de\u7d50\u679c\u4e4b\u5f8c\uff0c\u6587\u4ef6\u5df2\u7522\u751f\u8b8a\u5316\u3002\u91cd\u8907\u9805\u76ee\u7121\u6548\u3002" },
0889:
0890: /** Field ER_INVALID_XPATH_TYPE */
0891: // public static final int ER_INVALID_XPATH_TYPE = 108;
0892: { ER_INVALID_XPATH_TYPE,
0893: "XPath \u985e\u578b\u5f15\u6578 {0} \u7121\u6548" },
0894:
0895: /** Field ER_EMPTY_XPATH_RESULT */
0896: // public static final int ER_EMPTY_XPATH_RESULT = 109;
0897: { ER_EMPTY_XPATH_RESULT,
0898: "XPath \u7d50\u679c\u7269\u4ef6\u7a7a\u767d" },
0899:
0900: /** Field ER_INCOMPATIBLE_TYPES */
0901: // public static final int ER_INCOMPATIBLE_TYPES = 110;
0902: {
0903: ER_INCOMPATIBLE_TYPES,
0904: "\u50b3\u56de\u985e\u578b\uff1a{0} \u7121\u6cd5\u5f37\u5236\u6210\u70ba\u6307\u5b9a\u7684\u985e\u578b\uff1a{1}" },
0905:
0906: /** Field ER_NULL_RESOLVER */
0907: // public static final int ER_NULL_RESOLVER = 111;
0908: {
0909: ER_NULL_RESOLVER,
0910: "\u7121\u6cd5\u89e3\u6790\u542b\u7a7a\u503c\u5b57\u9996\u89e3\u6790\u5668\u7684\u5b57\u9996\u3002" },
0911:
0912: // Note to translators: The substitution text is the name of a data type. The
0913: // message indicates that a value of a particular type could not be converted
0914: // to a value of type string.
0915:
0916: /** Field ER_CANT_CONVERT_TO_STRING */
0917: // public static final int ER_CANT_CONVERT_TO_STRING = 112;
0918: { ER_CANT_CONVERT_TO_STRING,
0919: "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba\u5b57\u4e32\u3002" },
0920:
0921: // Note to translators: Do not translate snapshotItem,
0922: // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0923:
0924: /** Field ER_NON_SNAPSHOT_TYPE */
0925: // public static final int ER_NON_SNAPSHOT_TYPE = 113;
0926: {
0927: ER_NON_SNAPSHOT_TYPE,
0928: "\u7121\u6cd5\u547c\u53eb snapshotItem \u985e\u578b\uff1a{0}\u3002\u6b64\u65b9\u6cd5\u9069\u7528\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE \u5169\u7a2e\u985e\u578b\u3002" },
0929:
0930: // Note to translators: XPathEvaluator is a Java interface name. An
0931: // XPathEvaluator is created with respect to a particular XML document, and in
0932: // this case the expression represented by this object was being evaluated with
0933: // respect to a context node from a different document.
0934:
0935: /** Field ER_WRONG_DOCUMENT */
0936: // public static final int ER_WRONG_DOCUMENT = 114;
0937: {
0938: ER_WRONG_DOCUMENT,
0939: "\u74b0\u5883\u5b9a\u7fa9\u7bc0\u9ede\u4e0d\u5c6c\u65bc\u548c\u6b64 XPathEvaluator \u9023\u7d50\u7684\u6587\u4ef6\u3002" },
0940:
0941: // Note to translators: The XPath expression cannot be evaluated with respect
0942: // to this type of node.
0943: /** Field ER_WRONG_NODETYPE */
0944: // public static final int ER_WRONG_NODETYPE = 115;
0945: {
0946: ER_WRONG_NODETYPE,
0947: "\u74b0\u5883\u5b9a\u7fa9\u7bc0\u9ede\u985e\u578b\u672a\u53d7\u652f\u63f4\u3002" },
0948:
0949: /** Field ER_XPATH_ERROR */
0950: // public static final int ER_XPATH_ERROR = 116;
0951: { ER_XPATH_ERROR,
0952: "XPath \u767c\u751f\u4e0d\u660e\u932f\u8aa4\u3002" },
0953:
0954: // Warnings...
0955:
0956: /** Field WG_LOCALE_NAME_NOT_HANDLED */
0957: // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0958: {
0959: WG_LOCALE_NAME_NOT_HANDLED,
0960: "format-number \u51fd\u6578\u4e2d\u7684\u8a9e\u8a00\u74b0\u5883\u540d\u7a31\u5c1a\u672a\u8655\u7406\uff01" },
0961:
0962: /** Field WG_PROPERTY_NOT_SUPPORTED */
0963: // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0964: { WG_PROPERTY_NOT_SUPPORTED,
0965: "XSL \u5167\u5bb9\u672a\u53d7\u652f\u63f4\uff1a{0}" },
0966:
0967: /** Field WG_DONT_DO_ANYTHING_WITH_NS */
0968: // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0969: {
0970: WG_DONT_DO_ANYTHING_WITH_NS,
0971: "\u76ee\u524d\u4e0d\u8981\u5c0d\u5167\u5bb9\uff1a{1} \u4e2d\u7684\u540d\u7a31\u7a7a\u9593 {0} \u505a\u4efb\u4f55\u52d5\u4f5c" },
0972:
0973: /** Field WG_SECURITY_EXCEPTION */
0974: // public static final int WG_SECURITY_EXCEPTION = 4;
0975: {
0976: WG_SECURITY_EXCEPTION,
0977: "\u5617\u8a66\u5b58\u53d6 XSL \u7cfb\u7d71\u5167\u5bb9\uff1a{0} \u6642\u767c\u751f SecurityException" },
0978:
0979: /** Field WG_QUO_NO_LONGER_DEFINED */
0980: // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0981: {
0982: WG_QUO_NO_LONGER_DEFINED,
0983: "XPath \u4e2d\u5df2\u4e0d\u518d\u5b9a\u7fa9\u820a\u8a9e\u6cd5\uff1aquo(...)\u3002" },
0984:
0985: /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
0986: // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0987: { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0988: "XPath \u9700\u8981\u884d\u751f\u7269\u4ef6\u4f86\u5be6\u4f5c nodeTest\uff01" },
0989:
0990: /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
0991: // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0992: { WG_FUNCTION_TOKEN_NOT_FOUND,
0993: "\u627e\u4e0d\u5230\u51fd\u6578\u8a18\u865f\u3002" },
0994:
0995: /** Field WG_COULDNOT_FIND_FUNCTION */
0996: // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0997: { WG_COULDNOT_FIND_FUNCTION,
0998: "\u627e\u4e0d\u5230\u51fd\u6578\uff1a{0}" },
0999:
1000: /** Field WG_CANNOT_MAKE_URL_FROM */
1001: // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
1002: { WG_CANNOT_MAKE_URL_FROM,
1003: "\u7121\u6cd5\u5f9e\uff1a{0} \u7522\u751f URL" },
1004:
1005: /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
1006: // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
1007: { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
1008: "-E \u9078\u9805\u4e0d\u53d7 DTM \u5256\u6790\u5668\u652f\u63f4" },
1009:
1010: /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
1011: // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
1012: {
1013: WG_ILLEGAL_VARIABLE_REFERENCE,
1014: "\u63d0\u4f9b\u7d66\u8b8a\u6578\u7684 VariableReference \u8d85\u51fa\u74b0\u5883\u5b9a\u7fa9\u6216\u6c92\u6709\u5b9a\u7fa9\uff01\u540d\u7a31 = {0}" },
1015:
1016: /** Field WG_UNSUPPORTED_ENCODING */
1017: // public static final int WG_UNSUPPORTED_ENCODING = 12;
1018: { WG_UNSUPPORTED_ENCODING,
1019: "\u4e0d\u652f\u63f4\u7de8\u78bc\uff1a{0}" },
1020:
1021: // Other miscellaneous text used inside the code...
1022: { "ui_language", "zh" },
1023: { "help_language", "zh" },
1024: { "language", "zh" },
1025: { "BAD_CODE",
1026: "createMessage \u7684\u53c3\u6578\u8d85\u51fa\u754c\u9650" },
1027: { "FORMAT_FAILED",
1028: "\u5728 messageFormat \u547c\u53eb\u671f\u9593\u64f2\u51fa\u7570\u5e38" },
1029: { "version", ">>>>>>> Xalan \u7248\u672c" },
1030: { "version2", "<<<<<<<" },
1031: { "yes", "yes" },
1032: { "line", "\u884c\u865f" },
1033: { "column", "\u6b04\u865f" },
1034: { "xsldone", "XSLProcessor\uff1a\u5b8c\u6210" },
1035: { "xpath_option", "xpath \u9078\u9805\uff1a" },
1036: { "optionIN", "[-in inputXMLURL]" },
1037: { "optionSelect", "[-select xpath \u8868\u793a\u5f0f]" },
1038: {
1039: "optionMatch",
1040: "[-match \u7b26\u5408\u578b\u6a23\uff08\u7528\u65bc\u6bd4\u5c0d\u8a3a\u65b7\uff09]" },
1041: {
1042: "optionAnyExpr",
1043: "\u6216\u53ea\u6709\u4e00\u500b xpath \u8868\u793a\u5f0f\u6703\u57f7\u884c\u8a3a\u65b7\u50be\u51fa" },
1044: { "noParsermsg1",
1045: "XSL \u7a0b\u5e8f\u6c92\u6709\u9806\u5229\u5b8c\u6210\u3002" },
1046: { "noParsermsg2",
1047: "** \u627e\u4e0d\u5230\u5256\u6790\u5668 **" },
1048: { "noParsermsg3",
1049: "\u8acb\u6aa2\u67e5\u985e\u5225\u8def\u5f91\u3002" },
1050: {
1051: "noParsermsg4",
1052: "\u5982\u679c\u60a8\u6c92\u6709 IBM \u7684 XML Parser for Java\uff0c\u53ef\u81ea\u4ee5\u4e0b\u7db2\u5740\u4e0b\u8f09" },
1053: { "noParsermsg5",
1054: "IBM \u7684 AlphaWorks\uff1ahttp://www.alphaworks.ibm.com/formula/xml" },
1055: { "gtone", ">1" }, { "zero", "0" }, { "one", "1" },
1056: { "two", "2" }, { "three", "3" }
1057:
1058: };
1059: }
1060:
1061: // ================= INFRASTRUCTURE ======================
1062:
1063: /** Field BAD_CODE */
1064: public static final String BAD_CODE = "BAD_CODE";
1065:
1066: /** Field FORMAT_FAILED */
1067: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1068:
1069: /** Field ERROR_RESOURCES */
1070: public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1071:
1072: /** Field ERROR_STRING */
1073: public static final String ERROR_STRING = "#error";
1074:
1075: /** Field ERROR_HEADER */
1076: public static final String ERROR_HEADER = "\u932f\u8aa4\uff1a";
1077:
1078: /** Field WARNING_HEADER */
1079: public static final String WARNING_HEADER = "\u8b66\u544a\uff1a";
1080:
1081: /** Field XSL_HEADER */
1082: public static final String XSL_HEADER = "XSL ";
1083:
1084: /** Field XML_HEADER */
1085: public static final String XML_HEADER = "XML ";
1086:
1087: /** Field QUERY_HEADER */
1088: public static final String QUERY_HEADER = "PATTERN ";
1089:
1090: /**
1091: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1092: * of ResourceBundle.getBundle().
1093: *
1094: * @param className Name of local-specific subclass.
1095: * @return the ResourceBundle
1096: * @throws MissingResourceException
1097: */
1098: public static final XPATHErrorResources loadResourceBundle(
1099: String className) throws MissingResourceException {
1100:
1101: Locale locale = Locale.getDefault();
1102: String suffix = getResourceSuffix(locale);
1103:
1104: try {
1105:
1106: // first try with the given locale
1107: return (XPATHErrorResources) ResourceBundle.getBundle(
1108: className + suffix, locale);
1109: } catch (MissingResourceException e) {
1110: try // try to fall back to en_US if we can't load
1111: {
1112:
1113: // Since we can't find the localized property file,
1114: // fall back to en_US.
1115: return (XPATHErrorResources) ResourceBundle.getBundle(
1116: className, new Locale("zh", "TW"));
1117: } catch (MissingResourceException e2) {
1118:
1119: // Now we are really in trouble.
1120: // very bad, definitely very bad...not going to get very far
1121: throw new MissingResourceException(
1122: "Could not load any resource bundles.",
1123: className, "");
1124: }
1125: }
1126: }
1127:
1128: /**
1129: * Return the resource file suffic for the indicated locale
1130: * For most locales, this will be based the language code. However
1131: * for Chinese, we do distinguish between Taiwan and PRC
1132: *
1133: * @param locale the locale
1134: * @return an String suffix which canbe appended to a resource name
1135: */
1136: private static final String getResourceSuffix(Locale locale) {
1137:
1138: String suffix = "_" + locale.getLanguage();
1139: String country = locale.getCountry();
1140:
1141: if (country.equals("TW"))
1142: suffix += "_" + country;
1143:
1144: return suffix;
1145: }
1146:
1147: }
|