0001: /*
0002: * Copyright 1999-2005 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: XSLTErrorResources.java,v 1.52 2005/07/08 21:45:12 jycli Exp $
0018: */
0019: package org.apache.xalan.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 String constant. And
0031: * you need to enter key , value pair as part of contents
0032: * Array. You also need to update MAX_CODE for error strings
0033: * and MAX_WARNING for warnings ( Needed for only information
0034: * purpose )
0035: */
0036: public class XSLTErrorResources extends ListResourceBundle {
0037:
0038: /*
0039: * This file contains error and warning messages related to Xalan Error
0040: * Handling.
0041: *
0042: * General notes to translators:
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: */
0075:
0076: /*
0077: * Static variables
0078: */
0079: public static final String ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX = "ER_INVALID_SET_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX";
0080:
0081: public static final String ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX_FOR_DEFAULT = "ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX_FOR_DEFAULT";
0082:
0083: public static final String ER_NO_CURLYBRACE = "ER_NO_CURLYBRACE";
0084: public static final String ER_FUNCTION_NOT_SUPPORTED = "ER_FUNCTION_NOT_SUPPORTED";
0085: public static final String ER_ILLEGAL_ATTRIBUTE = "ER_ILLEGAL_ATTRIBUTE";
0086: public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = "ER_NULL_SOURCENODE_APPLYIMPORTS";
0087: public static final String ER_CANNOT_ADD = "ER_CANNOT_ADD";
0088: public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = "ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES";
0089: public static final String ER_NO_NAME_ATTRIB = "ER_NO_NAME_ATTRIB";
0090: public static final String ER_TEMPLATE_NOT_FOUND = "ER_TEMPLATE_NOT_FOUND";
0091: public static final String ER_CANT_RESOLVE_NAME_AVT = "ER_CANT_RESOLVE_NAME_AVT";
0092: public static final String ER_REQUIRES_ATTRIB = "ER_REQUIRES_ATTRIB";
0093: public static final String ER_MUST_HAVE_TEST_ATTRIB = "ER_MUST_HAVE_TEST_ATTRIB";
0094: public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB = "ER_BAD_VAL_ON_LEVEL_ATTRIB";
0095: public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = "ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
0096: public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = "ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
0097: public static final String ER_NEED_MATCH_ATTRIB = "ER_NEED_MATCH_ATTRIB";
0098: public static final String ER_NEED_NAME_OR_MATCH_ATTRIB = "ER_NEED_NAME_OR_MATCH_ATTRIB";
0099: public static final String ER_CANT_RESOLVE_NSPREFIX = "ER_CANT_RESOLVE_NSPREFIX";
0100: public static final String ER_ILLEGAL_VALUE = "ER_ILLEGAL_VALUE";
0101: public static final String ER_NO_OWNERDOC = "ER_NO_OWNERDOC";
0102: public static final String ER_ELEMTEMPLATEELEM_ERR = "ER_ELEMTEMPLATEELEM_ERR";
0103: public static final String ER_NULL_CHILD = "ER_NULL_CHILD";
0104: public static final String ER_NEED_SELECT_ATTRIB = "ER_NEED_SELECT_ATTRIB";
0105: public static final String ER_NEED_TEST_ATTRIB = "ER_NEED_TEST_ATTRIB";
0106: public static final String ER_NEED_NAME_ATTRIB = "ER_NEED_NAME_ATTRIB";
0107: public static final String ER_NO_CONTEXT_OWNERDOC = "ER_NO_CONTEXT_OWNERDOC";
0108: public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON = "ER_COULD_NOT_CREATE_XML_PROC_LIAISON";
0109: public static final String ER_PROCESS_NOT_SUCCESSFUL = "ER_PROCESS_NOT_SUCCESSFUL";
0110: public static final String ER_NOT_SUCCESSFUL = "ER_NOT_SUCCESSFUL";
0111: public static final String ER_ENCODING_NOT_SUPPORTED = "ER_ENCODING_NOT_SUPPORTED";
0112: public static final String ER_COULD_NOT_CREATE_TRACELISTENER = "ER_COULD_NOT_CREATE_TRACELISTENER";
0113: public static final String ER_KEY_REQUIRES_NAME_ATTRIB = "ER_KEY_REQUIRES_NAME_ATTRIB";
0114: public static final String ER_KEY_REQUIRES_MATCH_ATTRIB = "ER_KEY_REQUIRES_MATCH_ATTRIB";
0115: public static final String ER_KEY_REQUIRES_USE_ATTRIB = "ER_KEY_REQUIRES_USE_ATTRIB";
0116: public static final String ER_REQUIRES_ELEMENTS_ATTRIB = "ER_REQUIRES_ELEMENTS_ATTRIB";
0117: public static final String ER_MISSING_PREFIX_ATTRIB = "ER_MISSING_PREFIX_ATTRIB";
0118: public static final String ER_BAD_STYLESHEET_URL = "ER_BAD_STYLESHEET_URL";
0119: public static final String ER_FILE_NOT_FOUND = "ER_FILE_NOT_FOUND";
0120: public static final String ER_IOEXCEPTION = "ER_IOEXCEPTION";
0121: public static final String ER_NO_HREF_ATTRIB = "ER_NO_HREF_ATTRIB";
0122: public static final String ER_STYLESHEET_INCLUDES_ITSELF = "ER_STYLESHEET_INCLUDES_ITSELF";
0123: public static final String ER_PROCESSINCLUDE_ERROR = "ER_PROCESSINCLUDE_ERROR";
0124: public static final String ER_MISSING_LANG_ATTRIB = "ER_MISSING_LANG_ATTRIB";
0125: public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT = "ER_MISSING_CONTAINER_ELEMENT_COMPONENT";
0126: public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT = "ER_CAN_ONLY_OUTPUT_TO_ELEMENT";
0127: public static final String ER_PROCESS_ERROR = "ER_PROCESS_ERROR";
0128: public static final String ER_UNIMPLNODE_ERROR = "ER_UNIMPLNODE_ERROR";
0129: public static final String ER_NO_SELECT_EXPRESSION = "ER_NO_SELECT_EXPRESSION";
0130: public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR = "ER_CANNOT_SERIALIZE_XSLPROCESSOR";
0131: public static final String ER_NO_INPUT_STYLESHEET = "ER_NO_INPUT_STYLESHEET";
0132: public static final String ER_FAILED_PROCESS_STYLESHEET = "ER_FAILED_PROCESS_STYLESHEET";
0133: public static final String ER_COULDNT_PARSE_DOC = "ER_COULDNT_PARSE_DOC";
0134: public static final String ER_COULDNT_FIND_FRAGMENT = "ER_COULDNT_FIND_FRAGMENT";
0135: public static final String ER_NODE_NOT_ELEMENT = "ER_NODE_NOT_ELEMENT";
0136: public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = "ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB";
0137: public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = "ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB";
0138: public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG = "ER_NO_CLONE_OF_DOCUMENT_FRAG";
0139: public static final String ER_CANT_CREATE_ITEM = "ER_CANT_CREATE_ITEM";
0140: public static final String ER_XMLSPACE_ILLEGAL_VALUE = "ER_XMLSPACE_ILLEGAL_VALUE";
0141: public static final String ER_NO_XSLKEY_DECLARATION = "ER_NO_XSLKEY_DECLARATION";
0142: public static final String ER_CANT_CREATE_URL = "ER_CANT_CREATE_URL";
0143: public static final String ER_XSLFUNCTIONS_UNSUPPORTED = "ER_XSLFUNCTIONS_UNSUPPORTED";
0144: public static final String ER_PROCESSOR_ERROR = "ER_PROCESSOR_ERROR";
0145: public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET = "ER_NOT_ALLOWED_INSIDE_STYLESHEET";
0146: public static final String ER_RESULTNS_NOT_SUPPORTED = "ER_RESULTNS_NOT_SUPPORTED";
0147: public static final String ER_DEFAULTSPACE_NOT_SUPPORTED = "ER_DEFAULTSPACE_NOT_SUPPORTED";
0148: public static final String ER_INDENTRESULT_NOT_SUPPORTED = "ER_INDENTRESULT_NOT_SUPPORTED";
0149: public static final String ER_ILLEGAL_ATTRIB = "ER_ILLEGAL_ATTRIB";
0150: public static final String ER_UNKNOWN_XSL_ELEM = "ER_UNKNOWN_XSL_ELEM";
0151: public static final String ER_BAD_XSLSORT_USE = "ER_BAD_XSLSORT_USE";
0152: public static final String ER_MISPLACED_XSLWHEN = "ER_MISPLACED_XSLWHEN";
0153: public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = "ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE";
0154: public static final String ER_MISPLACED_XSLOTHERWISE = "ER_MISPLACED_XSLOTHERWISE";
0155: public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = "ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE";
0156: public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE = "ER_NOT_ALLOWED_INSIDE_TEMPLATE";
0157: public static final String ER_UNKNOWN_EXT_NS_PREFIX = "ER_UNKNOWN_EXT_NS_PREFIX";
0158: public static final String ER_IMPORTS_AS_FIRST_ELEM = "ER_IMPORTS_AS_FIRST_ELEM";
0159: public static final String ER_IMPORTING_ITSELF = "ER_IMPORTING_ITSELF";
0160: public static final String ER_XMLSPACE_ILLEGAL_VAL = "ER_XMLSPACE_ILLEGAL_VAL";
0161: public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = "ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL";
0162: public static final String ER_SAX_EXCEPTION = "ER_SAX_EXCEPTION";
0163: public static final String ER_XSLT_ERROR = "ER_XSLT_ERROR";
0164: public static final String ER_CURRENCY_SIGN_ILLEGAL = "ER_CURRENCY_SIGN_ILLEGAL";
0165: public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = "ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM";
0166: public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = "ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER";
0167: public static final String ER_REDIRECT_COULDNT_GET_FILENAME = "ER_REDIRECT_COULDNT_GET_FILENAME";
0168: public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = "ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT";
0169: public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = "ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX";
0170: public static final String ER_MISSING_NS_URI = "ER_MISSING_NS_URI";
0171: public static final String ER_MISSING_ARG_FOR_OPTION = "ER_MISSING_ARG_FOR_OPTION";
0172: public static final String ER_INVALID_OPTION = "ER_INVALID_OPTION";
0173: public static final String ER_MALFORMED_FORMAT_STRING = "ER_MALFORMED_FORMAT_STRING";
0174: public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = "ER_STYLESHEET_REQUIRES_VERSION_ATTRIB";
0175: public static final String ER_ILLEGAL_ATTRIBUTE_VALUE = "ER_ILLEGAL_ATTRIBUTE_VALUE";
0176: public static final String ER_CHOOSE_REQUIRES_WHEN = "ER_CHOOSE_REQUIRES_WHEN";
0177: public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH = "ER_NO_APPLY_IMPORT_IN_FOR_EACH";
0178: public static final String ER_CANT_USE_DTM_FOR_OUTPUT = "ER_CANT_USE_DTM_FOR_OUTPUT";
0179: public static final String ER_CANT_USE_DTM_FOR_INPUT = "ER_CANT_USE_DTM_FOR_INPUT";
0180: public static final String ER_CALL_TO_EXT_FAILED = "ER_CALL_TO_EXT_FAILED";
0181: public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
0182: public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
0183: public static final String ER_XSLATTRSET_USED_ITSELF = "ER_XSLATTRSET_USED_ITSELF";
0184: public static final String ER_CANNOT_MIX_XERCESDOM = "ER_CANNOT_MIX_XERCESDOM";
0185: public static final String ER_TOO_MANY_LISTENERS = "ER_TOO_MANY_LISTENERS";
0186: public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT = "ER_IN_ELEMTEMPLATEELEM_READOBJECT";
0187: public static final String ER_DUPLICATE_NAMED_TEMPLATE = "ER_DUPLICATE_NAMED_TEMPLATE";
0188: public static final String ER_INVALID_KEY_CALL = "ER_INVALID_KEY_CALL";
0189: public static final String ER_REFERENCING_ITSELF = "ER_REFERENCING_ITSELF";
0190: public static final String ER_ILLEGAL_DOMSOURCE_INPUT = "ER_ILLEGAL_DOMSOURCE_INPUT";
0191: public static final String ER_CLASS_NOT_FOUND_FOR_OPTION = "ER_CLASS_NOT_FOUND_FOR_OPTION";
0192: public static final String ER_REQUIRED_ELEM_NOT_FOUND = "ER_REQUIRED_ELEM_NOT_FOUND";
0193: public static final String ER_INPUT_CANNOT_BE_NULL = "ER_INPUT_CANNOT_BE_NULL";
0194: public static final String ER_URI_CANNOT_BE_NULL = "ER_URI_CANNOT_BE_NULL";
0195: public static final String ER_FILE_CANNOT_BE_NULL = "ER_FILE_CANNOT_BE_NULL";
0196: public static final String ER_SOURCE_CANNOT_BE_NULL = "ER_SOURCE_CANNOT_BE_NULL";
0197: public static final String ER_CANNOT_INIT_BSFMGR = "ER_CANNOT_INIT_BSFMGR";
0198: public static final String ER_CANNOT_CMPL_EXTENSN = "ER_CANNOT_CMPL_EXTENSN";
0199: public static final String ER_CANNOT_CREATE_EXTENSN = "ER_CANNOT_CREATE_EXTENSN";
0200: public static final String ER_INSTANCE_MTHD_CALL_REQUIRES = "ER_INSTANCE_MTHD_CALL_REQUIRES";
0201: public static final String ER_INVALID_ELEMENT_NAME = "ER_INVALID_ELEMENT_NAME";
0202: public static final String ER_ELEMENT_NAME_METHOD_STATIC = "ER_ELEMENT_NAME_METHOD_STATIC";
0203: public static final String ER_EXTENSION_FUNC_UNKNOWN = "ER_EXTENSION_FUNC_UNKNOWN";
0204: public static final String ER_MORE_MATCH_CONSTRUCTOR = "ER_MORE_MATCH_CONSTRUCTOR";
0205: public static final String ER_MORE_MATCH_METHOD = "ER_MORE_MATCH_METHOD";
0206: public static final String ER_MORE_MATCH_ELEMENT = "ER_MORE_MATCH_ELEMENT";
0207: public static final String ER_INVALID_CONTEXT_PASSED = "ER_INVALID_CONTEXT_PASSED";
0208: public static final String ER_POOL_EXISTS = "ER_POOL_EXISTS";
0209: public static final String ER_NO_DRIVER_NAME = "ER_NO_DRIVER_NAME";
0210: public static final String ER_NO_URL = "ER_NO_URL";
0211: public static final String ER_POOL_SIZE_LESSTHAN_ONE = "ER_POOL_SIZE_LESSTHAN_ONE";
0212: public static final String ER_INVALID_DRIVER = "ER_INVALID_DRIVER";
0213: public static final String ER_NO_STYLESHEETROOT = "ER_NO_STYLESHEETROOT";
0214: public static final String ER_ILLEGAL_XMLSPACE_VALUE = "ER_ILLEGAL_XMLSPACE_VALUE";
0215: public static final String ER_PROCESSFROMNODE_FAILED = "ER_PROCESSFROMNODE_FAILED";
0216: public static final String ER_RESOURCE_COULD_NOT_LOAD = "ER_RESOURCE_COULD_NOT_LOAD";
0217: public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = "ER_BUFFER_SIZE_LESSTHAN_ZERO";
0218: public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION = "ER_UNKNOWN_ERROR_CALLING_EXTENSION";
0219: public static final String ER_NO_NAMESPACE_DECL = "ER_NO_NAMESPACE_DECL";
0220: public static final String ER_ELEM_CONTENT_NOT_ALLOWED = "ER_ELEM_CONTENT_NOT_ALLOWED";
0221: public static final String ER_STYLESHEET_DIRECTED_TERMINATION = "ER_STYLESHEET_DIRECTED_TERMINATION";
0222: public static final String ER_ONE_OR_TWO = "ER_ONE_OR_TWO";
0223: public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
0224: public static final String ER_COULD_NOT_LOAD_RESOURCE = "ER_COULD_NOT_LOAD_RESOURCE";
0225: public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES = "ER_CANNOT_INIT_DEFAULT_TEMPLATES";
0226: public static final String ER_RESULT_NULL = "ER_RESULT_NULL";
0227: public static final String ER_RESULT_COULD_NOT_BE_SET = "ER_RESULT_COULD_NOT_BE_SET";
0228: public static final String ER_NO_OUTPUT_SPECIFIED = "ER_NO_OUTPUT_SPECIFIED";
0229: public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = "ER_CANNOT_TRANSFORM_TO_RESULT_TYPE";
0230: public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE = "ER_CANNOT_TRANSFORM_SOURCE_TYPE";
0231: public static final String ER_NULL_CONTENT_HANDLER = "ER_NULL_CONTENT_HANDLER";
0232: public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
0233: public static final String ER_CANNOT_CALL_PARSE = "ER_CANNOT_CALL_PARSE";
0234: public static final String ER_NO_PARENT_FOR_FILTER = "ER_NO_PARENT_FOR_FILTER";
0235: public static final String ER_NO_STYLESHEET_IN_MEDIA = "ER_NO_STYLESHEET_IN_MEDIA";
0236: public static final String ER_NO_STYLESHEET_PI = "ER_NO_STYLESHEET_PI";
0237: public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
0238: public static final String ER_PROPERTY_VALUE_BOOLEAN = "ER_PROPERTY_VALUE_BOOLEAN";
0239: public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT = "ER_COULD_NOT_FIND_EXTERN_SCRIPT";
0240: public static final String ER_RESOURCE_COULD_NOT_FIND = "ER_RESOURCE_COULD_NOT_FIND";
0241: public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = "ER_OUTPUT_PROPERTY_NOT_RECOGNIZED";
0242: public static final String ER_FAILED_CREATING_ELEMLITRSLT = "ER_FAILED_CREATING_ELEMLITRSLT";
0243: public static final String ER_VALUE_SHOULD_BE_NUMBER = "ER_VALUE_SHOULD_BE_NUMBER";
0244: public static final String ER_VALUE_SHOULD_EQUAL = "ER_VALUE_SHOULD_EQUAL";
0245: public static final String ER_FAILED_CALLING_METHOD = "ER_FAILED_CALLING_METHOD";
0246: public static final String ER_FAILED_CREATING_ELEMTMPL = "ER_FAILED_CREATING_ELEMTMPL";
0247: public static final String ER_CHARS_NOT_ALLOWED = "ER_CHARS_NOT_ALLOWED";
0248: public static final String ER_ATTR_NOT_ALLOWED = "ER_ATTR_NOT_ALLOWED";
0249: public static final String ER_BAD_VALUE = "ER_BAD_VALUE";
0250: public static final String ER_ATTRIB_VALUE_NOT_FOUND = "ER_ATTRIB_VALUE_NOT_FOUND";
0251: public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED = "ER_ATTRIB_VALUE_NOT_RECOGNIZED";
0252: public static final String ER_NULL_URI_NAMESPACE = "ER_NULL_URI_NAMESPACE";
0253: public static final String ER_NUMBER_TOO_BIG = "ER_NUMBER_TOO_BIG";
0254: public static final String ER_CANNOT_FIND_SAX1_DRIVER = "ER_CANNOT_FIND_SAX1_DRIVER";
0255: public static final String ER_SAX1_DRIVER_NOT_LOADED = "ER_SAX1_DRIVER_NOT_LOADED";
0256: public static final String ER_SAX1_DRIVER_NOT_INSTANTIATED = "ER_SAX1_DRIVER_NOT_INSTANTIATED";
0257: public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = "ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER";
0258: public static final String ER_PARSER_PROPERTY_NOT_SPECIFIED = "ER_PARSER_PROPERTY_NOT_SPECIFIED";
0259: public static final String ER_PARSER_ARG_CANNOT_BE_NULL = "ER_PARSER_ARG_CANNOT_BE_NULL";
0260: public static final String ER_FEATURE = "ER_FEATURE";
0261: public static final String ER_PROPERTY = "ER_PROPERTY";
0262: public static final String ER_NULL_ENTITY_RESOLVER = "ER_NULL_ENTITY_RESOLVER";
0263: public static final String ER_NULL_DTD_HANDLER = "ER_NULL_DTD_HANDLER";
0264: public static final String ER_NO_DRIVER_NAME_SPECIFIED = "ER_NO_DRIVER_NAME_SPECIFIED";
0265: public static final String ER_NO_URL_SPECIFIED = "ER_NO_URL_SPECIFIED";
0266: public static final String ER_POOLSIZE_LESS_THAN_ONE = "ER_POOLSIZE_LESS_THAN_ONE";
0267: public static final String ER_INVALID_DRIVER_NAME = "ER_INVALID_DRIVER_NAME";
0268: public static final String ER_ERRORLISTENER = "ER_ERRORLISTENER";
0269: public static final String ER_ASSERT_NO_TEMPLATE_PARENT = "ER_ASSERT_NO_TEMPLATE_PARENT";
0270: public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = "ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR";
0271: public static final String ER_NOT_ALLOWED_IN_POSITION = "ER_NOT_ALLOWED_IN_POSITION";
0272: public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = "ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION";
0273: public static final String ER_NAMESPACE_CONTEXT_NULL_NAMESPACE = "ER_NAMESPACE_CONTEXT_NULL_NAMESPACE";
0274: public static final String ER_NAMESPACE_CONTEXT_NULL_PREFIX = "ER_NAMESPACE_CONTEXT_NULL_PREFIX";
0275: public static final String ER_XPATH_RESOLVER_NULL_QNAME = "ER_XPATH_RESOLVER_NULL_QNAME";
0276: public static final String ER_XPATH_RESOLVER_NEGATIVE_ARITY = "ER_XPATH_RESOLVER_NEGATIVE_ARITY";
0277: public static final String INVALID_TCHAR = "INVALID_TCHAR";
0278: public static final String INVALID_QNAME = "INVALID_QNAME";
0279: public static final String INVALID_ENUM = "INVALID_ENUM";
0280: public static final String INVALID_NMTOKEN = "INVALID_NMTOKEN";
0281: public static final String INVALID_NCNAME = "INVALID_NCNAME";
0282: public static final String INVALID_BOOLEAN = "INVALID_BOOLEAN";
0283: public static final String INVALID_NUMBER = "INVALID_NUMBER";
0284: public static final String ER_ARG_LITERAL = "ER_ARG_LITERAL";
0285: public static final String ER_DUPLICATE_GLOBAL_VAR = "ER_DUPLICATE_GLOBAL_VAR";
0286: public static final String ER_DUPLICATE_VAR = "ER_DUPLICATE_VAR";
0287: public static final String ER_TEMPLATE_NAME_MATCH = "ER_TEMPLATE_NAME_MATCH";
0288: public static final String ER_INVALID_PREFIX = "ER_INVALID_PREFIX";
0289: public static final String ER_NO_ATTRIB_SET = "ER_NO_ATTRIB_SET";
0290: public static final String ER_FUNCTION_NOT_FOUND = "ER_FUNCTION_NOT_FOUND";
0291: public static final String ER_CANT_HAVE_CONTENT_AND_SELECT = "ER_CANT_HAVE_CONTENT_AND_SELECT";
0292: public static final String ER_INVALID_SET_PARAM_VALUE = "ER_INVALID_SET_PARAM_VALUE";
0293: public static final String ER_SET_FEATURE_NULL_NAME = "ER_SET_FEATURE_NULL_NAME";
0294: public static final String ER_GET_FEATURE_NULL_NAME = "ER_GET_FEATURE_NULL_NAME";
0295: public static final String ER_UNSUPPORTED_FEATURE = "ER_UNSUPPORTED_FEATURE";
0296: public static final String ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING = "ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING";
0297:
0298: public static final String WG_FOUND_CURLYBRACE = "WG_FOUND_CURLYBRACE";
0299: public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = "WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR";
0300: public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT = "WG_EXPR_ATTRIB_CHANGED_TO_SELECT";
0301: public static final String WG_NO_LOCALE_IN_FORMATNUMBER = "WG_NO_LOCALE_IN_FORMATNUMBER";
0302: public static final String WG_LOCALE_NOT_FOUND = "WG_LOCALE_NOT_FOUND";
0303: public static final String WG_CANNOT_MAKE_URL_FROM = "WG_CANNOT_MAKE_URL_FROM";
0304: public static final String WG_CANNOT_LOAD_REQUESTED_DOC = "WG_CANNOT_LOAD_REQUESTED_DOC";
0305: public static final String WG_CANNOT_FIND_COLLATOR = "WG_CANNOT_FIND_COLLATOR";
0306: public static final String WG_FUNCTIONS_SHOULD_USE_URL = "WG_FUNCTIONS_SHOULD_USE_URL";
0307: public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = "WG_ENCODING_NOT_SUPPORTED_USING_UTF8";
0308: public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA = "WG_ENCODING_NOT_SUPPORTED_USING_JAVA";
0309: public static final String WG_SPECIFICITY_CONFLICTS = "WG_SPECIFICITY_CONFLICTS";
0310: public static final String WG_PARSING_AND_PREPARING = "WG_PARSING_AND_PREPARING";
0311: public static final String WG_ATTR_TEMPLATE = "WG_ATTR_TEMPLATE";
0312: public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = "WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP";
0313: public static final String WG_ATTRIB_NOT_HANDLED = "WG_ATTRIB_NOT_HANDLED";
0314: public static final String WG_NO_DECIMALFORMAT_DECLARATION = "WG_NO_DECIMALFORMAT_DECLARATION";
0315: public static final String WG_OLD_XSLT_NS = "WG_OLD_XSLT_NS";
0316: public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = "WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED";
0317: public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = "WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE";
0318: public static final String WG_ILLEGAL_ATTRIBUTE = "WG_ILLEGAL_ATTRIBUTE";
0319: public static final String WG_COULD_NOT_RESOLVE_PREFIX = "WG_COULD_NOT_RESOLVE_PREFIX";
0320: public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = "WG_STYLESHEET_REQUIRES_VERSION_ATTRIB";
0321: public static final String WG_ILLEGAL_ATTRIBUTE_NAME = "WG_ILLEGAL_ATTRIBUTE_NAME";
0322: public static final String WG_ILLEGAL_ATTRIBUTE_VALUE = "WG_ILLEGAL_ATTRIBUTE_VALUE";
0323: public static final String WG_EMPTY_SECOND_ARG = "WG_EMPTY_SECOND_ARG";
0324: public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = "WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
0325: public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = "WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
0326: public static final String WG_ILLEGAL_ATTRIBUTE_POSITION = "WG_ILLEGAL_ATTRIBUTE_POSITION";
0327: public static final String NO_MODIFICATION_ALLOWED_ERR = "NO_MODIFICATION_ALLOWED_ERR";
0328:
0329: /*
0330: * Now fill in the message text.
0331: * Then fill in the message text for that message code in the
0332: * array. Use the new error code as the index into the array.
0333: */
0334:
0335: // Error messages...
0336: /** Get the lookup table for error messages.
0337: *
0338: * @return The int to message lookup table.
0339: */
0340: public Object[][] getContents() {
0341: return new Object[][] {
0342:
0343: /** Error message ID that has a null message, but takes in a single object. */
0344: { "ER0000", "{0}" },
0345:
0346: { ER_NO_CURLYBRACE,
0347: "Error: Can not have '{' within expression" },
0348:
0349: { ER_ILLEGAL_ATTRIBUTE,
0350: "{0} has an illegal attribute: {1}" },
0351:
0352: { ER_NULL_SOURCENODE_APPLYIMPORTS,
0353: "sourceNode is null in xsl:apply-imports!" },
0354:
0355: { ER_CANNOT_ADD, "Can not add {0} to {1}" },
0356:
0357: { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,
0358: "sourceNode is null in handleApplyTemplatesInstruction!" },
0359:
0360: { ER_NO_NAME_ATTRIB, "{0} must have a name attribute." },
0361:
0362: { ER_TEMPLATE_NOT_FOUND,
0363: "Could not find template named: {0}" },
0364:
0365: { ER_CANT_RESOLVE_NAME_AVT,
0366: "Could not resolve name AVT in xsl:call-template." },
0367:
0368: { ER_REQUIRES_ATTRIB, "{0} requires attribute: {1}" },
0369:
0370: { ER_MUST_HAVE_TEST_ATTRIB,
0371: "{0} must have a ''test'' attribute." },
0372:
0373: { ER_BAD_VAL_ON_LEVEL_ATTRIB,
0374: "Bad value on level attribute: {0}" },
0375:
0376: { ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
0377: "processing-instruction name can not be 'xml'" },
0378:
0379: { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
0380: "processing-instruction name must be a valid NCName: {0}" },
0381:
0382: { ER_NEED_MATCH_ATTRIB,
0383: "{0} must have a match attribute if it has a mode." },
0384:
0385: { ER_NEED_NAME_OR_MATCH_ATTRIB,
0386: "{0} requires either a name or a match attribute." },
0387:
0388: { ER_CANT_RESOLVE_NSPREFIX,
0389: "Can not resolve namespace prefix: {0}" },
0390:
0391: { ER_ILLEGAL_VALUE,
0392: "xml:space has an illegal value: {0}" },
0393:
0394: { ER_NO_OWNERDOC,
0395: "Child node does not have an owner document!" },
0396:
0397: { ER_ELEMTEMPLATEELEM_ERR,
0398: "ElemTemplateElement error: {0}" },
0399:
0400: { ER_NULL_CHILD, "Trying to add a null child!" },
0401:
0402: { ER_NEED_SELECT_ATTRIB,
0403: "{0} requires a select attribute." },
0404:
0405: { ER_NEED_TEST_ATTRIB,
0406: "xsl:when must have a 'test' attribute." },
0407:
0408: { ER_NEED_NAME_ATTRIB,
0409: "xsl:with-param must have a 'name' attribute." },
0410:
0411: { ER_NO_CONTEXT_OWNERDOC,
0412: "context does not have an owner document!" },
0413:
0414: { ER_COULD_NOT_CREATE_XML_PROC_LIAISON,
0415: "Could not create XML TransformerFactory Liaison: {0}" },
0416:
0417: { ER_PROCESS_NOT_SUCCESSFUL,
0418: "Xalan: Process was not successful." },
0419:
0420: { ER_NOT_SUCCESSFUL, "Xalan: was not successful." },
0421:
0422: { ER_ENCODING_NOT_SUPPORTED,
0423: "Encoding not supported: {0}" },
0424:
0425: { ER_COULD_NOT_CREATE_TRACELISTENER,
0426: "Could not create TraceListener: {0}" },
0427:
0428: { ER_KEY_REQUIRES_NAME_ATTRIB,
0429: "xsl:key requires a 'name' attribute!" },
0430:
0431: { ER_KEY_REQUIRES_MATCH_ATTRIB,
0432: "xsl:key requires a 'match' attribute!" },
0433:
0434: { ER_KEY_REQUIRES_USE_ATTRIB,
0435: "xsl:key requires a 'use' attribute!" },
0436:
0437: { ER_REQUIRES_ELEMENTS_ATTRIB,
0438: "(StylesheetHandler) {0} requires an ''elements'' attribute!" },
0439:
0440: { ER_MISSING_PREFIX_ATTRIB,
0441: "(StylesheetHandler) {0} attribute ''prefix'' is missing" },
0442:
0443: { ER_BAD_STYLESHEET_URL, "Stylesheet URL is bad: {0}" },
0444:
0445: { ER_FILE_NOT_FOUND,
0446: "Stylesheet file was not found: {0}" },
0447:
0448: { ER_IOEXCEPTION,
0449: "Had IO Exception with stylesheet file: {0}" },
0450:
0451: { ER_NO_HREF_ATTRIB,
0452: "(StylesheetHandler) Could not find href attribute for {0}" },
0453:
0454: { ER_STYLESHEET_INCLUDES_ITSELF,
0455: "(StylesheetHandler) {0} is directly or indirectly including itself!" },
0456:
0457: { ER_PROCESSINCLUDE_ERROR,
0458: "StylesheetHandler.processInclude error, {0}" },
0459:
0460: { ER_MISSING_LANG_ATTRIB,
0461: "(StylesheetHandler) {0} attribute ''lang'' is missing" },
0462:
0463: {
0464: ER_MISSING_CONTAINER_ELEMENT_COMPONENT,
0465: "(StylesheetHandler) misplaced {0} element?? Missing container element ''component''" },
0466:
0467: { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,
0468: "Can only output to an Element, DocumentFragment, Document, or PrintWriter." },
0469:
0470: { ER_PROCESS_ERROR, "StylesheetRoot.process error" },
0471:
0472: { ER_UNIMPLNODE_ERROR, "UnImplNode error: {0}" },
0473:
0474: { ER_NO_SELECT_EXPRESSION,
0475: "Error! Did not find xpath select expression (-select)." },
0476:
0477: { ER_CANNOT_SERIALIZE_XSLPROCESSOR,
0478: "Can not serialize an XSLProcessor!" },
0479:
0480: { ER_NO_INPUT_STYLESHEET,
0481: "Stylesheet input was not specified!" },
0482:
0483: { ER_FAILED_PROCESS_STYLESHEET,
0484: "Failed to process stylesheet!" },
0485:
0486: { ER_COULDNT_PARSE_DOC, "Could not parse {0} document!" },
0487:
0488: { ER_COULDNT_FIND_FRAGMENT,
0489: "Could not find fragment: {0}" },
0490:
0491: { ER_NODE_NOT_ELEMENT,
0492: "Node pointed to by fragment identifier was not an element: {0}" },
0493:
0494: { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,
0495: "for-each must have either a match or name attribute" },
0496:
0497: { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,
0498: "templates must have either a match or name attribute" },
0499:
0500: { ER_NO_CLONE_OF_DOCUMENT_FRAG,
0501: "No clone of a document fragment!" },
0502:
0503: { ER_CANT_CREATE_ITEM,
0504: "Can not create item in result tree: {0}" },
0505:
0506: { ER_XMLSPACE_ILLEGAL_VALUE,
0507: "xml:space in the source XML has an illegal value: {0}" },
0508:
0509: { ER_NO_XSLKEY_DECLARATION,
0510: "There is no xsl:key declaration for {0}!" },
0511:
0512: { ER_CANT_CREATE_URL,
0513: "Error! Cannot create url for: {0}" },
0514:
0515: { ER_XSLFUNCTIONS_UNSUPPORTED,
0516: "xsl:functions is unsupported" },
0517:
0518: { ER_PROCESSOR_ERROR, "XSLT TransformerFactory Error" },
0519:
0520: { ER_NOT_ALLOWED_INSIDE_STYLESHEET,
0521: "(StylesheetHandler) {0} not allowed inside a stylesheet!" },
0522:
0523: { ER_RESULTNS_NOT_SUPPORTED,
0524: "result-ns no longer supported! Use xsl:output instead." },
0525:
0526: {
0527: ER_DEFAULTSPACE_NOT_SUPPORTED,
0528: "default-space no longer supported! Use xsl:strip-space or xsl:preserve-space instead." },
0529:
0530: { ER_INDENTRESULT_NOT_SUPPORTED,
0531: "indent-result no longer supported! Use xsl:output instead." },
0532:
0533: { ER_ILLEGAL_ATTRIB,
0534: "(StylesheetHandler) {0} has an illegal attribute: {1}" },
0535:
0536: { ER_UNKNOWN_XSL_ELEM, "Unknown XSL element: {0}" },
0537:
0538: {
0539: ER_BAD_XSLSORT_USE,
0540: "(StylesheetHandler) xsl:sort can only be used with xsl:apply-templates or xsl:for-each." },
0541:
0542: { ER_MISPLACED_XSLWHEN,
0543: "(StylesheetHandler) misplaced xsl:when!" },
0544:
0545: { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,
0546: "(StylesheetHandler) xsl:when not parented by xsl:choose!" },
0547:
0548: { ER_MISPLACED_XSLOTHERWISE,
0549: "(StylesheetHandler) misplaced xsl:otherwise!" },
0550:
0551: { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,
0552: "(StylesheetHandler) xsl:otherwise not parented by xsl:choose!" },
0553:
0554: { ER_NOT_ALLOWED_INSIDE_TEMPLATE,
0555: "(StylesheetHandler) {0} is not allowed inside a template!" },
0556:
0557: { ER_UNKNOWN_EXT_NS_PREFIX,
0558: "(StylesheetHandler) {0} extension namespace prefix {1} unknown" },
0559:
0560: {
0561: ER_IMPORTS_AS_FIRST_ELEM,
0562: "(StylesheetHandler) Imports can only occur as the first elements in the stylesheet!" },
0563:
0564: { ER_IMPORTING_ITSELF,
0565: "(StylesheetHandler) {0} is directly or indirectly importing itself!" },
0566:
0567: {
0568: ER_XMLSPACE_ILLEGAL_VAL,
0569: "(StylesheetHandler) "
0570: + "xml:space has an illegal value: {0}" },
0571:
0572: { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,
0573: "processStylesheet not succesfull!" },
0574:
0575: { ER_SAX_EXCEPTION, "SAX Exception" },
0576:
0577: // add this message to fix bug 21478
0578: { ER_FUNCTION_NOT_SUPPORTED, "Function not supported!" },
0579:
0580: { ER_XSLT_ERROR, "XSLT Error" },
0581:
0582: { ER_CURRENCY_SIGN_ILLEGAL,
0583: "currency sign is not allowed in format pattern string" },
0584:
0585: { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,
0586: "Document function not supported in Stylesheet DOM!" },
0587:
0588: { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,
0589: "Can't resolve prefix of non-Prefix resolver!" },
0590:
0591: {
0592: ER_REDIRECT_COULDNT_GET_FILENAME,
0593: "Redirect extension: Could not get filename - file or select attribute must return vald string." },
0594:
0595: { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,
0596: "Can not build FormatterListener in Redirect extension!" },
0597:
0598: { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,
0599: "Prefix in exclude-result-prefixes is not valid: {0}" },
0600:
0601: { ER_MISSING_NS_URI,
0602: "Missing namespace URI for specified prefix" },
0603:
0604: { ER_MISSING_ARG_FOR_OPTION,
0605: "Missing argument for option: {0}" },
0606:
0607: { ER_INVALID_OPTION, "Invalid option: {0}" },
0608:
0609: { ER_MALFORMED_FORMAT_STRING,
0610: "Malformed format string: {0}" },
0611:
0612: { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,
0613: "xsl:stylesheet requires a 'version' attribute!" },
0614:
0615: { ER_ILLEGAL_ATTRIBUTE_VALUE,
0616: "Attribute: {0} has an illegal value: {1}" },
0617:
0618: { ER_CHOOSE_REQUIRES_WHEN,
0619: "xsl:choose requires an xsl:when" },
0620:
0621: { ER_NO_APPLY_IMPORT_IN_FOR_EACH,
0622: "xsl:apply-imports not allowed in a xsl:for-each" },
0623:
0624: {
0625: ER_CANT_USE_DTM_FOR_OUTPUT,
0626: "Cannot use a DTMLiaison for an output DOM node... pass a org.apache.xpath.DOM2Helper instead!" },
0627:
0628: {
0629: ER_CANT_USE_DTM_FOR_INPUT,
0630: "Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xpath.DOM2Helper instead!" },
0631:
0632: { ER_CALL_TO_EXT_FAILED,
0633: "Call to extension element failed: {0}" },
0634:
0635: { ER_PREFIX_MUST_RESOLVE,
0636: "Prefix must resolve to a namespace: {0}" },
0637:
0638: { ER_INVALID_UTF16_SURROGATE,
0639: "Invalid UTF-16 surrogate detected: {0} ?" },
0640:
0641: { ER_XSLATTRSET_USED_ITSELF,
0642: "xsl:attribute-set {0} used itself, which will cause an infinite loop." },
0643:
0644: { ER_CANNOT_MIX_XERCESDOM,
0645: "Can not mix non Xerces-DOM input with Xerces-DOM output!" },
0646:
0647: { ER_TOO_MANY_LISTENERS,
0648: "addTraceListenersToStylesheet - TooManyListenersException" },
0649:
0650: { ER_IN_ELEMTEMPLATEELEM_READOBJECT,
0651: "In ElemTemplateElement.readObject: {0}" },
0652:
0653: { ER_DUPLICATE_NAMED_TEMPLATE,
0654: "Found more than one template named: {0}" },
0655:
0656: { ER_INVALID_KEY_CALL,
0657: "Invalid function call: recursive key() calls are not allowed" },
0658:
0659: { ER_REFERENCING_ITSELF,
0660: "Variable {0} is directly or indirectly referencing itself!" },
0661:
0662: { ER_ILLEGAL_DOMSOURCE_INPUT,
0663: "The input node can not be null for a DOMSource for newTemplates!" },
0664:
0665: { ER_CLASS_NOT_FOUND_FOR_OPTION,
0666: "Class file not found for option {0}" },
0667:
0668: { ER_REQUIRED_ELEM_NOT_FOUND,
0669: "Required Element not found: {0}" },
0670:
0671: { ER_INPUT_CANNOT_BE_NULL, "InputStream cannot be null" },
0672:
0673: { ER_URI_CANNOT_BE_NULL, "URI cannot be null" },
0674:
0675: { ER_FILE_CANNOT_BE_NULL, "File cannot be null" },
0676:
0677: { ER_SOURCE_CANNOT_BE_NULL,
0678: "InputSource cannot be null" },
0679:
0680: { ER_CANNOT_INIT_BSFMGR,
0681: "Could not initialize BSF Manager" },
0682:
0683: { ER_CANNOT_CMPL_EXTENSN, "Could not compile extension" },
0684:
0685: { ER_CANNOT_CREATE_EXTENSN,
0686: "Could not create extension: {0} because of: {1}" },
0687:
0688: {
0689: ER_INSTANCE_MTHD_CALL_REQUIRES,
0690: "Instance method call to method {0} requires an Object instance as first argument" },
0691:
0692: { ER_INVALID_ELEMENT_NAME,
0693: "Invalid element name specified {0}" },
0694:
0695: { ER_ELEMENT_NAME_METHOD_STATIC,
0696: "Element name method must be static {0}" },
0697:
0698: { ER_EXTENSION_FUNC_UNKNOWN,
0699: "Extension function {0} : {1} is unknown" },
0700:
0701: { ER_MORE_MATCH_CONSTRUCTOR,
0702: "More than one best match for constructor for {0}" },
0703:
0704: { ER_MORE_MATCH_METHOD,
0705: "More than one best match for method {0}" },
0706:
0707: { ER_MORE_MATCH_ELEMENT,
0708: "More than one best match for element method {0}" },
0709:
0710: { ER_INVALID_CONTEXT_PASSED,
0711: "Invalid context passed to evaluate {0}" },
0712:
0713: { ER_POOL_EXISTS, "Pool already exists" },
0714:
0715: { ER_NO_DRIVER_NAME, "No driver Name specified" },
0716:
0717: { ER_NO_URL, "No URL specified" },
0718:
0719: { ER_POOL_SIZE_LESSTHAN_ONE,
0720: "Pool size is less than one!" },
0721:
0722: { ER_INVALID_DRIVER, "Invalid driver name specified!" },
0723:
0724: { ER_NO_STYLESHEETROOT,
0725: "Did not find the stylesheet root!" },
0726:
0727: { ER_ILLEGAL_XMLSPACE_VALUE,
0728: "Illegal value for xml:space" },
0729:
0730: { ER_PROCESSFROMNODE_FAILED, "processFromNode failed" },
0731:
0732: { ER_RESOURCE_COULD_NOT_LOAD,
0733: "The resource [ {0} ] could not load: {1} \n {2} \t {3}" },
0734:
0735: { ER_BUFFER_SIZE_LESSTHAN_ZERO, "Buffer size <=0" },
0736:
0737: { ER_UNKNOWN_ERROR_CALLING_EXTENSION,
0738: "Unknown error when calling extension" },
0739:
0740: { ER_NO_NAMESPACE_DECL,
0741: "Prefix {0} does not have a corresponding namespace declaration" },
0742:
0743: { ER_ELEM_CONTENT_NOT_ALLOWED,
0744: "Element content not allowed for lang=javaclass {0}" },
0745:
0746: { ER_STYLESHEET_DIRECTED_TERMINATION,
0747: "Stylesheet directed termination" },
0748:
0749: { ER_ONE_OR_TWO, "1 or 2" },
0750:
0751: { ER_TWO_OR_THREE, "2 or 3" },
0752:
0753: { ER_COULD_NOT_LOAD_RESOURCE,
0754: "Could not load {0} (check CLASSPATH), now using just the defaults" },
0755:
0756: { ER_CANNOT_INIT_DEFAULT_TEMPLATES,
0757: "Cannot initialize default templates" },
0758:
0759: { ER_RESULT_NULL, "Result should not be null" },
0760:
0761: { ER_RESULT_COULD_NOT_BE_SET, "Result could not be set" },
0762:
0763: { ER_NO_OUTPUT_SPECIFIED, "No output specified" },
0764:
0765: { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,
0766: "Can''t transform to a Result of type {0}" },
0767:
0768: { ER_CANNOT_TRANSFORM_SOURCE_TYPE,
0769: "Can''t transform a Source of type {0}" },
0770:
0771: { ER_NULL_CONTENT_HANDLER, "Null content handler" },
0772:
0773: { ER_NULL_ERROR_HANDLER, "Null error handler" },
0774:
0775: { ER_CANNOT_CALL_PARSE,
0776: "parse can not be called if the ContentHandler has not been set" },
0777:
0778: { ER_NO_PARENT_FOR_FILTER, "No parent for filter" },
0779:
0780: { ER_NO_STYLESHEET_IN_MEDIA,
0781: "No stylesheet found in: {0}, media= {1}" },
0782:
0783: { ER_NO_STYLESHEET_PI,
0784: "No xml-stylesheet PI found in: {0}" },
0785:
0786: { ER_NOT_SUPPORTED, "Not supported: {0}" },
0787:
0788: { ER_PROPERTY_VALUE_BOOLEAN,
0789: "Value for property {0} should be a Boolean instance" },
0790:
0791: { ER_COULD_NOT_FIND_EXTERN_SCRIPT,
0792: "Could not get to external script at {0}" },
0793:
0794: { ER_RESOURCE_COULD_NOT_FIND,
0795: "The resource [ {0} ] could not be found.\n {1}" },
0796:
0797: { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,
0798: "Output property not recognized: {0}" },
0799:
0800: { ER_FAILED_CREATING_ELEMLITRSLT,
0801: "Failed creating ElemLiteralResult instance" },
0802:
0803: //Earlier (JDK 1.4 XALAN 2.2-D11) at key code '204' the key name was ER_PRIORITY_NOT_PARSABLE
0804: // In latest Xalan code base key name is ER_VALUE_SHOULD_BE_NUMBER. This should also be taken care
0805: //in locale specific files like XSLTErrorResources_de.java, XSLTErrorResources_fr.java etc.
0806: //NOTE: Not only the key name but message has also been changed.
0807: { ER_VALUE_SHOULD_BE_NUMBER,
0808: "Value for {0} should contain a parsable number" },
0809:
0810: { ER_VALUE_SHOULD_EQUAL,
0811: "Value for {0} should equal yes or no" },
0812:
0813: { ER_FAILED_CALLING_METHOD, "Failed calling {0} method" },
0814:
0815: { ER_FAILED_CREATING_ELEMTMPL,
0816: "Failed creating ElemTemplateElement instance" },
0817:
0818: { ER_CHARS_NOT_ALLOWED,
0819: "Characters are not allowed at this point in the document" },
0820:
0821: { ER_ATTR_NOT_ALLOWED,
0822: "\"{0}\" attribute is not allowed on the {1} element!" },
0823:
0824: { ER_BAD_VALUE, "{0} bad value {1} " },
0825:
0826: { ER_ATTRIB_VALUE_NOT_FOUND,
0827: "{0} attribute value not found " },
0828:
0829: { ER_ATTRIB_VALUE_NOT_RECOGNIZED,
0830: "{0} attribute value not recognized " },
0831:
0832: { ER_NULL_URI_NAMESPACE,
0833: "Attempting to generate a namespace prefix with a null URI" },
0834:
0835: { ER_NUMBER_TOO_BIG,
0836: "Attempting to format a number bigger than the largest Long integer" },
0837:
0838: { ER_CANNOT_FIND_SAX1_DRIVER,
0839: "Cannot find SAX1 driver class {0}" },
0840:
0841: { ER_SAX1_DRIVER_NOT_LOADED,
0842: "SAX1 driver class {0} found but cannot be loaded" },
0843:
0844: { ER_SAX1_DRIVER_NOT_INSTANTIATED,
0845: "SAX1 driver class {0} loaded but cannot be instantiated" },
0846:
0847: { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,
0848: "SAX1 driver class {0} does not implement org.xml.sax.Parser" },
0849:
0850: { ER_PARSER_PROPERTY_NOT_SPECIFIED,
0851: "System property org.xml.sax.parser not specified" },
0852:
0853: { ER_PARSER_ARG_CANNOT_BE_NULL,
0854: "Parser argument must not be null" },
0855:
0856: { ER_FEATURE, "Feature: {0}" },
0857:
0858: { ER_PROPERTY, "Property: {0}" },
0859:
0860: { ER_NULL_ENTITY_RESOLVER, "Null entity resolver" },
0861:
0862: { ER_NULL_DTD_HANDLER, "Null DTD handler" },
0863:
0864: { ER_NO_DRIVER_NAME_SPECIFIED,
0865: "No Driver Name Specified!" },
0866:
0867: { ER_NO_URL_SPECIFIED, "No URL Specified!" },
0868:
0869: { ER_POOLSIZE_LESS_THAN_ONE,
0870: "Pool size is less than 1!" },
0871:
0872: { ER_INVALID_DRIVER_NAME,
0873: "Invalid Driver Name Specified!" },
0874:
0875: { ER_ERRORLISTENER, "ErrorListener" },
0876:
0877: // Note to translators: The following message should not normally be displayed
0878: // to users. It describes a situation in which the processor has detected
0879: // an internal consistency problem in itself, and it provides this message
0880: // for the developer to help diagnose the problem. The name
0881: // 'ElemTemplateElement' is the name of a class, and should not be
0882: // translated.
0883: { ER_ASSERT_NO_TEMPLATE_PARENT,
0884: "Programmer's error! The expression has no ElemTemplateElement parent!" },
0885:
0886: // Note to translators: The following message should not normally be displayed
0887: // to users. It describes a situation in which the processor has detected
0888: // an internal consistency problem in itself, and it provides this message
0889: // for the developer to help diagnose the problem. The substitution text
0890: // provides further information in order to diagnose the problem. The name
0891: // 'RedundentExprEliminator' is the name of a class, and should not be
0892: // translated.
0893: { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,
0894: "Programmer''s assertion in RedundentExprEliminator: {0}" },
0895:
0896: { ER_NOT_ALLOWED_IN_POSITION,
0897: "{0} is not allowed in this position in the stylesheet!" },
0898:
0899: { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
0900: "Non-whitespace text is not allowed in this position in the stylesheet!" },
0901:
0902: // This code is shared with warning codes.
0903: // SystemId Unknown
0904: {
0905: INVALID_TCHAR,
0906: "Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!" },
0907:
0908: // Note to translators: The following message is used if the value of
0909: // an attribute in a stylesheet is invalid. "QNAME" is the XML data-type of
0910: // the attribute, and should not be translated. The substitution text {1} is
0911: // the attribute value and {0} is the attribute name.
0912: //The following codes are shared with the warning codes...
0913: { INVALID_QNAME,
0914: "Illegal value: {1} used for QNAME attribute: {0}" },
0915:
0916: // Note to translators: The following message is used if the value of
0917: // an attribute in a stylesheet is invalid. "ENUM" is the XML data-type of
0918: // the attribute, and should not be translated. The substitution text {1} is
0919: // the attribute value, {0} is the attribute name, and {2} is a list of valid
0920: // values.
0921: { INVALID_ENUM,
0922: "Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}." },
0923:
0924: // Note to translators: The following message is used if the value of
0925: // an attribute in a stylesheet is invalid. "NMTOKEN" is the XML data-type
0926: // of the attribute, and should not be translated. The substitution text {1} is
0927: // the attribute value and {0} is the attribute name.
0928: { INVALID_NMTOKEN,
0929: "Illegal value: {1} used for NMTOKEN attribute: {0} " },
0930:
0931: // Note to translators: The following message is used if the value of
0932: // an attribute in a stylesheet is invalid. "NCNAME" is the XML data-type
0933: // of the attribute, and should not be translated. The substitution text {1} is
0934: // the attribute value and {0} is the attribute name.
0935: { INVALID_NCNAME,
0936: "Illegal value: {1} used for NCNAME attribute: {0} " },
0937:
0938: // Note to translators: The following message is used if the value of
0939: // an attribute in a stylesheet is invalid. "boolean" is the XSLT data-type
0940: // of the attribute, and should not be translated. The substitution text {1} is
0941: // the attribute value and {0} is the attribute name.
0942: { INVALID_BOOLEAN,
0943: "Illegal value: {1} used for boolean attribute: {0} " },
0944:
0945: // Note to translators: The following message is used if the value of
0946: // an attribute in a stylesheet is invalid. "number" is the XSLT data-type
0947: // of the attribute, and should not be translated. The substitution text {1} is
0948: // the attribute value and {0} is the attribute name.
0949: { INVALID_NUMBER,
0950: "Illegal value: {1} used for number attribute: {0} " },
0951:
0952: // End of shared codes...
0953:
0954: // Note to translators: A "match pattern" is a special form of XPath expression
0955: // that is used for matching patterns. The substitution text is the name of
0956: // a function. The message indicates that when this function is referenced in
0957: // a match pattern, its argument must be a string literal (or constant.)
0958: // ER_ARG_LITERAL - new error message for bugzilla //5202
0959: { ER_ARG_LITERAL,
0960: "Argument to {0} in match pattern must be a literal." },
0961:
0962: // Note to translators: The following message indicates that two definitions of
0963: // a variable. A "global variable" is a variable that is accessible everywher
0964: // in the stylesheet.
0965: // ER_DUPLICATE_GLOBAL_VAR - new error message for bugzilla #790
0966: { ER_DUPLICATE_GLOBAL_VAR,
0967: "Duplicate global variable declaration." },
0968:
0969: // Note to translators: The following message indicates that two definitions of
0970: // a variable were encountered.
0971: // ER_DUPLICATE_VAR - new error message for bugzilla #790
0972: { ER_DUPLICATE_VAR, "Duplicate variable declaration." },
0973:
0974: // Note to translators: "xsl:template, "name" and "match" are XSLT keywords
0975: // which must not be translated.
0976: // ER_TEMPLATE_NAME_MATCH - new error message for bugzilla #789
0977: { ER_TEMPLATE_NAME_MATCH,
0978: "xsl:template must have a name or match attribute (or both)" },
0979:
0980: // Note to translators: "exclude-result-prefixes" is an XSLT keyword which
0981: // should not be translated. The message indicates that a namespace prefix
0982: // encountered as part of the value of the exclude-result-prefixes attribute
0983: // was in error.
0984: // ER_INVALID_PREFIX - new error message for bugzilla #788
0985: { ER_INVALID_PREFIX,
0986: "Prefix in exclude-result-prefixes is not valid: {0}" },
0987:
0988: // Note to translators: An "attribute set" is a set of attributes that can
0989: // be added to an element in the output document as a group. The message
0990: // indicates that there was a reference to an attribute set named {0} that
0991: // was never defined.
0992: // ER_NO_ATTRIB_SET - new error message for bugzilla #782
0993: { ER_NO_ATTRIB_SET,
0994: "attribute-set named {0} does not exist" },
0995:
0996: // Note to translators: This message indicates that there was a reference
0997: // to a function named {0} for which no function definition could be found.
0998: { ER_FUNCTION_NOT_FOUND,
0999: "The function named {0} does not exist" },
1000:
1001: // Note to translators: This message indicates that the XSLT instruction
1002: // that is named by the substitution text {0} must not contain other XSLT
1003: // instructions (content) or a "select" attribute. The word "select" is
1004: // an XSLT keyword in this case and must not be translated.
1005: { ER_CANT_HAVE_CONTENT_AND_SELECT,
1006: "The {0} element must not have both content and a select attribute." },
1007:
1008: // Note to translators: This message indicates that the value argument
1009: // of setParameter must be a valid Java Object.
1010: { ER_INVALID_SET_PARAM_VALUE,
1011: "The value of param {0} must be a valid Java Object" },
1012:
1013: {
1014: ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX_FOR_DEFAULT,
1015: "The result-prefix attribute of an xsl:namespace-alias element has the value '#default', but there is no declaration of the default namespace in scope for the element" },
1016:
1017: {
1018: ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX,
1019: "The result-prefix attribute of an xsl:namespace-alias element has the value ''{0}'', but there is no namespace declaration for the prefix ''{0}'' in scope for the element." },
1020:
1021: {
1022: ER_SET_FEATURE_NULL_NAME,
1023: "The feature name cannot be null in TransformerFactory.setFeature(String name, boolean value)." },
1024:
1025: {
1026: ER_GET_FEATURE_NULL_NAME,
1027: "The feature name cannot be null in TransformerFactory.getFeature(String name)." },
1028:
1029: { ER_UNSUPPORTED_FEATURE,
1030: "Cannot set the feature ''{0}'' on this TransformerFactory." },
1031:
1032: {
1033: ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING,
1034: "Use of the extension element ''{0}'' is not allowed when the secure processing feature is set to true." },
1035:
1036: { ER_NAMESPACE_CONTEXT_NULL_NAMESPACE,
1037: "Cannot get the prefix for a null namespace uri." },
1038:
1039: { ER_NAMESPACE_CONTEXT_NULL_PREFIX,
1040: "Cannot get the namespace uri for null prefix." },
1041:
1042: { ER_XPATH_RESOLVER_NULL_QNAME,
1043: "The function name cannot be null." },
1044:
1045: { ER_XPATH_RESOLVER_NEGATIVE_ARITY,
1046: "The arity cannot be negative." },
1047: // Warnings...
1048:
1049: { WG_FOUND_CURLYBRACE,
1050: "Found '}' but no attribute template open!" },
1051:
1052: {
1053: WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,
1054: "Warning: count attribute does not match an ancestor in xsl:number! Target = {0}" },
1055:
1056: { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,
1057: "Old syntax: The name of the 'expr' attribute has been changed to 'select'." },
1058:
1059: { WG_NO_LOCALE_IN_FORMATNUMBER,
1060: "Xalan doesn't yet handle the locale name in the format-number function." },
1061:
1062: { WG_LOCALE_NOT_FOUND,
1063: "Warning: Could not find locale for xml:lang={0}" },
1064:
1065: { WG_CANNOT_MAKE_URL_FROM, "Can not make URL from: {0}" },
1066:
1067: { WG_CANNOT_LOAD_REQUESTED_DOC,
1068: "Can not load requested doc: {0}" },
1069:
1070: { WG_CANNOT_FIND_COLLATOR,
1071: "Could not find Collator for <sort xml:lang={0}" },
1072:
1073: { WG_FUNCTIONS_SHOULD_USE_URL,
1074: "Old syntax: the functions instruction should use a url of {0}" },
1075:
1076: { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,
1077: "encoding not supported: {0}, using UTF-8" },
1078:
1079: { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,
1080: "encoding not supported: {0}, using Java {1}" },
1081:
1082: { WG_SPECIFICITY_CONFLICTS,
1083: "Specificity conflicts found: {0} Last found in stylesheet will be used." },
1084:
1085: { WG_PARSING_AND_PREPARING,
1086: "========= Parsing and preparing {0} ==========" },
1087:
1088: { WG_ATTR_TEMPLATE, "Attr Template, {0}" },
1089:
1090: {
1091: WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,
1092: "Match conflict between xsl:strip-space and xsl:preserve-space" },
1093:
1094: { WG_ATTRIB_NOT_HANDLED,
1095: "Xalan does not yet handle the {0} attribute!" },
1096:
1097: { WG_NO_DECIMALFORMAT_DECLARATION,
1098: "No declaration found for decimal format: {0}" },
1099:
1100: { WG_OLD_XSLT_NS,
1101: "Missing or incorrect XSLT Namespace. " },
1102:
1103: { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,
1104: "Only one default xsl:decimal-format declaration is allowed." },
1105:
1106: { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,
1107: "xsl:decimal-format names must be unique. Name \"{0}\" has been duplicated." },
1108:
1109: { WG_ILLEGAL_ATTRIBUTE,
1110: "{0} has an illegal attribute: {1}" },
1111:
1112: { WG_COULD_NOT_RESOLVE_PREFIX,
1113: "Could not resolve namespace prefix: {0}. The node will be ignored." },
1114:
1115: { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,
1116: "xsl:stylesheet requires a 'version' attribute!" },
1117:
1118: { WG_ILLEGAL_ATTRIBUTE_NAME,
1119: "Illegal attribute name: {0}" },
1120:
1121: { WG_ILLEGAL_ATTRIBUTE_VALUE,
1122: "Illegal value used for attribute {0}: {1}" },
1123:
1124: {
1125: WG_EMPTY_SECOND_ARG,
1126: "Resulting nodeset from second argument of document function is empty. Return an empty node-set." },
1127:
1128: //Following are the new WARNING keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
1129:
1130: // Note to translators: "name" and "xsl:processing-instruction" are keywords
1131: // and must not be translated.
1132: {
1133: WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
1134: "The value of the 'name' attribute of xsl:processing-instruction name must not be 'xml'" },
1135:
1136: // Note to translators: "name" and "xsl:processing-instruction" are keywords
1137: // and must not be translated. "NCName" is an XML data-type and must not be
1138: // translated.
1139: {
1140: WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
1141: "The value of the ''name'' attribute of xsl:processing-instruction must be a valid NCName: {0}" },
1142:
1143: // Note to translators: This message is reported if the stylesheet that is
1144: // being processed attempted to construct an XML document with an attribute in a
1145: // place other than on an element. The substitution text specifies the name of
1146: // the attribute.
1147: {
1148: WG_ILLEGAL_ATTRIBUTE_POSITION,
1149: "Cannot add attribute {0} after child nodes or before an element is produced. Attribute will be ignored." },
1150:
1151: { NO_MODIFICATION_ALLOWED_ERR,
1152: "An attempt is made to modify an object where modifications are not allowed." },
1153:
1154: //Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources properties file?
1155:
1156: // Other miscellaneous text used inside the code...
1157: { "ui_language", "en" },
1158: { "help_language", "en" },
1159: { "language", "en" },
1160: { "BAD_CODE",
1161: "Parameter to createMessage was out of bounds" },
1162: { "FORMAT_FAILED",
1163: "Exception thrown during messageFormat call" },
1164: { "version", ">>>>>>> Xalan Version " },
1165: { "version2", "<<<<<<<" },
1166: { "yes", "yes" },
1167: { "line", "Line #" },
1168: { "column", "Column #" },
1169: { "xsldone", "XSLProcessor: done" },
1170:
1171: // Note to translators: The following messages provide usage information
1172: // for the Xalan Process command line. "Process" is the name of a Java class,
1173: // and should not be translated.
1174: { "xslProc_option",
1175: "Xalan-J command line Process class options:" },
1176: { "xslProc_option",
1177: "Xalan-J command line Process class options\u003a" },
1178: { "xslProc_invalid_xsltc_option",
1179: "The option {0} is not supported in XSLTC mode." },
1180: { "xslProc_invalid_xalan_option",
1181: "The option {0} can only be used with -XSLTC." },
1182: {
1183: "xslProc_no_input",
1184: "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions." },
1185: { "xslProc_common_options", "-Common Options-" },
1186: { "xslProc_xalan_options", "-Options for Xalan-" },
1187: { "xslProc_xsltc_options", "-Options for XSLTC-" },
1188: { "xslProc_return_to_continue",
1189: "(press <return> to continue)" },
1190:
1191: // Note to translators: The option name and the parameter name do not need to
1192: // be translated. Only translate the messages in parentheses. Note also that
1193: // leading whitespace in the messages is used to indent the usage information
1194: // for each option in the English messages.
1195: // Do not translate the keywords: XSLTC, SAX, DOM and DTM.
1196: { "optionXSLTC",
1197: " [-XSLTC (use XSLTC for transformation)]" },
1198: { "optionIN", " [-IN inputXMLURL]" },
1199: { "optionXSL", " [-XSL XSLTransformationURL]" },
1200: { "optionOUT", " [-OUT outputFileName]" },
1201: { "optionLXCIN",
1202: " [-LXCIN compiledStylesheetFileNameIn]" },
1203: { "optionLXCOUT",
1204: " [-LXCOUT compiledStylesheetFileNameOutOut]" },
1205: { "optionPARSER",
1206: " [-PARSER fully qualified class name of parser liaison]" },
1207: { "optionE", " [-E (Do not expand entity refs)]" },
1208: { "optionV", " [-E (Do not expand entity refs)]" },
1209: { "optionQC",
1210: " [-QC (Quiet Pattern Conflicts Warnings)]" },
1211: { "optionQ", " [-Q (Quiet Mode)]" },
1212: { "optionLF",
1213: " [-LF (Use linefeeds only on output {default is CR/LF})]" },
1214: { "optionCR",
1215: " [-CR (Use carriage returns only on output {default is CR/LF})]" },
1216: { "optionESCAPE",
1217: " [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]" },
1218: { "optionINDENT",
1219: " [-INDENT (Control how many spaces to indent {default is 0})]" },
1220: { "optionTT",
1221: " [-TT (Trace the templates as they are being called.)]" },
1222: { "optionTG", " [-TG (Trace each generation event.)]" },
1223: { "optionTS", " [-TS (Trace each selection event.)]" },
1224: { "optionTTC",
1225: " [-TTC (Trace the template children as they are being processed.)]" },
1226: { "optionTCLASS",
1227: " [-TCLASS (TraceListener class for trace extensions.)]" },
1228: {
1229: "optionVALIDATE",
1230: " [-VALIDATE (Set whether validation occurs. Validation is off by default.)]" },
1231: { "optionEDUMP",
1232: " [-EDUMP {optional filename} (Do stackdump on error.)]" },
1233: { "optionXML",
1234: " [-XML (Use XML formatter and add XML header.)]" },
1235: { "optionTEXT",
1236: " [-TEXT (Use simple Text formatter.)]" },
1237: { "optionHTML", " [-HTML (Use HTML formatter.)]" },
1238: { "optionPARAM",
1239: " [-PARAM name expression (Set a stylesheet parameter)]" },
1240: { "noParsermsg1", "XSL Process was not successful." },
1241: { "noParsermsg2", "** Could not find parser **" },
1242: { "noParsermsg3", "Please check your classpath." },
1243: { "noParsermsg4",
1244: "If you don't have IBM's XML Parser for Java, you can download it from" },
1245: { "noParsermsg5",
1246: "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml" },
1247: { "optionURIRESOLVER",
1248: " [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]" },
1249: {
1250: "optionENTITYRESOLVER",
1251: " [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entities)]" },
1252: {
1253: "optionCONTENTHANDLER",
1254: " [-CONTENTHANDLER full class name (ContentHandler to be used to serialize output)]" },
1255: { "optionLINENUMBERS",
1256: " [-L use line numbers for source document]" },
1257: { "optionSECUREPROCESSING",
1258: " [-SECURE (set the secure processing feature to true.)]" },
1259:
1260: // Following are the new options added in XSLTErrorResources.properties files after Jdk 1.4 (Xalan 2.2-D11)
1261:
1262: {
1263: "optionMEDIA",
1264: " [-MEDIA mediaType (use media attribute to find stylesheet associated with a document.)]" },
1265: { "optionFLAVOR",
1266: " [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)] " }, // Added by sboag/scurcuru; experimental
1267: { "optionDIAG",
1268: " [-DIAG (Print overall milliseconds transform took.)]" },
1269: {
1270: "optionINCREMENTAL",
1271: " [-INCREMENTAL (request incremental DTM construction by setting http://xml.apache.org/xalan/features/incremental true.)]" },
1272: {
1273: "optionNOOPTIMIMIZE",
1274: " [-NOOPTIMIMIZE (request no stylesheet optimization processing by setting http://xml.apache.org/xalan/features/optimize false.)]" },
1275: { "optionRL",
1276: " [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]" },
1277: { "optionXO",
1278: " [-XO [transletName] (assign the name to the generated translet)]" },
1279: { "optionXD",
1280: " [-XD destinationDirectory (specify a destination directory for translet)]" },
1281: {
1282: "optionXJ",
1283: " [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]" },
1284: {
1285: "optionXP",
1286: " [-XP package (specifies a package name prefix for all generated translet classes)]" },
1287:
1288: //AddITIONAL STRINGS that need L10n
1289: // Note to translators: The following message describes usage of a particular
1290: // command-line option that is used to enable the "template inlining"
1291: // optimization. The optimization involves making a copy of the code
1292: // generated for a template in another template that refers to it.
1293: { "optionXN", " [-XN (enables template inlining)]" },
1294: { "optionXX",
1295: " [-XX (turns on additional debugging message output)]" },
1296: { "optionXT",
1297: " [-XT (use translet to transform if possible)]" },
1298: { "diagTiming",
1299: " --------- Transform of {0} via {1} took {2} ms" },
1300: { "recursionTooDeep",
1301: "Template nesting too deep. nesting = {0}, template {1} {2}" },
1302: { "nameIs", "name is" },
1303: { "matchPatternIs", "match pattern is" }
1304:
1305: };
1306: }
1307:
1308: // ================= INFRASTRUCTURE ======================
1309:
1310: /** String for use when a bad error code was encountered. */
1311: public static final String BAD_CODE = "BAD_CODE";
1312:
1313: /** String for use when formatting of the error string failed. */
1314: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1315:
1316: /** General error string. */
1317: public static final String ERROR_STRING = "#error";
1318:
1319: /** String to prepend to error messages. */
1320: public static final String ERROR_HEADER = "Error: ";
1321:
1322: /** String to prepend to warning messages. */
1323: public static final String WARNING_HEADER = "Warning: ";
1324:
1325: /** String to specify the XSLT module. */
1326: public static final String XSL_HEADER = "XSLT ";
1327:
1328: /** String to specify the XML parser module. */
1329: public static final String XML_HEADER = "XML ";
1330:
1331: /** I don't think this is used any more.
1332: * @deprecated */
1333: public static final String QUERY_HEADER = "PATTERN ";
1334:
1335: /**
1336: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1337: * of ResourceBundle.getBundle().
1338: *
1339: * @param className the name of the class that implements the resource bundle.
1340: * @return the ResourceBundle
1341: * @throws MissingResourceException
1342: */
1343: public static final XSLTErrorResources loadResourceBundle(
1344: String className) throws MissingResourceException {
1345:
1346: Locale locale = Locale.getDefault();
1347: String suffix = getResourceSuffix(locale);
1348:
1349: try {
1350:
1351: // first try with the given locale
1352: return (XSLTErrorResources) ResourceBundle.getBundle(
1353: className + suffix, locale);
1354: } catch (MissingResourceException e) {
1355: try // try to fall back to en_US if we can't load
1356: {
1357:
1358: // Since we can't find the localized property file,
1359: // fall back to en_US.
1360: return (XSLTErrorResources) ResourceBundle.getBundle(
1361: className, new Locale("en", "US"));
1362: } catch (MissingResourceException e2) {
1363:
1364: // Now we are really in trouble.
1365: // very bad, definitely very bad...not going to get very far
1366: throw new MissingResourceException(
1367: "Could not load any resource bundles.",
1368: className, "");
1369: }
1370: }
1371: }
1372:
1373: /**
1374: * Return the resource file suffic for the indicated locale
1375: * For most locales, this will be based the language code. However
1376: * for Chinese, we do distinguish between Taiwan and PRC
1377: *
1378: * @param locale the locale
1379: * @return an String suffix which canbe appended to a resource name
1380: */
1381: private static final String getResourceSuffix(Locale locale) {
1382:
1383: String suffix = "_" + locale.getLanguage();
1384: String country = locale.getCountry();
1385:
1386: if (country.equals("TW"))
1387: suffix += "_" + country;
1388:
1389: return suffix;
1390: }
1391:
1392: }
|