1 16 19 package com.sun.org.apache.xalan.internal.res; 20 21 import java.util.ListResourceBundle ; 22 import java.util.Locale ; 23 import java.util.MissingResourceException ; 24 import java.util.ResourceBundle ; 25 26 36 public class XSLTErrorResources extends ListResourceBundle 37 { 38 39 76 77 78 public static final int MAX_CODE = 201; 79 80 81 public static final int MAX_WARNING = 29; 82 83 84 public static final int MAX_OTHERS = 55; 85 86 87 public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1; 88 89 90 93 public static final String ER_NO_CURLYBRACE = "ER_NO_CURLYBRACE"; 94 public static final String ER_FUNCTION_NOT_SUPPORTED = "ER_FUNCTION_NOT_SUPPORTED"; 95 public static final String ER_ILLEGAL_ATTRIBUTE = "ER_ILLEGAL_ATTRIBUTE"; 96 public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = "ER_NULL_SOURCENODE_APPLYIMPORTS"; 97 public static final String ER_CANNOT_ADD = "ER_CANNOT_ADD"; 98 public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES="ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES"; 99 public static final String ER_NO_NAME_ATTRIB = "ER_NO_NAME_ATTRIB"; 100 public static final String ER_TEMPLATE_NOT_FOUND = "ER_TEMPLATE_NOT_FOUND"; 101 public static final String ER_CANT_RESOLVE_NAME_AVT = "ER_CANT_RESOLVE_NAME_AVT"; 102 public static final String ER_REQUIRES_ATTRIB = "ER_REQUIRES_ATTRIB"; 103 public static final String ER_MUST_HAVE_TEST_ATTRIB = "ER_MUST_HAVE_TEST_ATTRIB"; 104 public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB = 105 "ER_BAD_VAL_ON_LEVEL_ATTRIB"; 106 public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 107 "ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML"; 108 public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 109 "ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME"; 110 public static final String ER_NEED_MATCH_ATTRIB = "ER_NEED_MATCH_ATTRIB"; 111 public static final String ER_NEED_NAME_OR_MATCH_ATTRIB = 112 "ER_NEED_NAME_OR_MATCH_ATTRIB"; 113 public static final String ER_CANT_RESOLVE_NSPREFIX = 114 "ER_CANT_RESOLVE_NSPREFIX"; 115 public static final String ER_ILLEGAL_VALUE = "ER_ILLEGAL_VALUE"; 116 public static final String ER_NO_OWNERDOC = "ER_NO_OWNERDOC"; 117 public static final String ER_ELEMTEMPLATEELEM_ERR ="ER_ELEMTEMPLATEELEM_ERR"; 118 public static final String ER_NULL_CHILD = "ER_NULL_CHILD"; 119 public static final String ER_NEED_SELECT_ATTRIB = "ER_NEED_SELECT_ATTRIB"; 120 public static final String ER_NEED_TEST_ATTRIB = "ER_NEED_TEST_ATTRIB"; 121 public static final String ER_NEED_NAME_ATTRIB = "ER_NEED_NAME_ATTRIB"; 122 public static final String ER_NO_CONTEXT_OWNERDOC = "ER_NO_CONTEXT_OWNERDOC"; 123 public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 124 "ER_COULD_NOT_CREATE_XML_PROC_LIAISON"; 125 public static final String ER_PROCESS_NOT_SUCCESSFUL = 126 "ER_PROCESS_NOT_SUCCESSFUL"; 127 public static final String ER_NOT_SUCCESSFUL = "ER_NOT_SUCCESSFUL"; 128 public static final String ER_ENCODING_NOT_SUPPORTED = 129 "ER_ENCODING_NOT_SUPPORTED"; 130 public static final String ER_COULD_NOT_CREATE_TRACELISTENER = 131 "ER_COULD_NOT_CREATE_TRACELISTENER"; 132 public static final String ER_KEY_REQUIRES_NAME_ATTRIB = 133 "ER_KEY_REQUIRES_NAME_ATTRIB"; 134 public static final String ER_KEY_REQUIRES_MATCH_ATTRIB = 135 "ER_KEY_REQUIRES_MATCH_ATTRIB"; 136 public static final String ER_KEY_REQUIRES_USE_ATTRIB = 137 "ER_KEY_REQUIRES_USE_ATTRIB"; 138 public static final String ER_REQUIRES_ELEMENTS_ATTRIB = 139 "ER_REQUIRES_ELEMENTS_ATTRIB"; 140 public static final String ER_MISSING_PREFIX_ATTRIB = 141 "ER_MISSING_PREFIX_ATTRIB"; 142 public static final String ER_BAD_STYLESHEET_URL = "ER_BAD_STYLESHEET_URL"; 143 public static final String ER_FILE_NOT_FOUND = "ER_FILE_NOT_FOUND"; 144 public static final String ER_IOEXCEPTION = "ER_IOEXCEPTION"; 145 public static final String ER_NO_HREF_ATTRIB = "ER_NO_HREF_ATTRIB"; 146 public static final String ER_STYLESHEET_INCLUDES_ITSELF = 147 "ER_STYLESHEET_INCLUDES_ITSELF"; 148 public static final String ER_PROCESSINCLUDE_ERROR ="ER_PROCESSINCLUDE_ERROR"; 149 public static final String ER_MISSING_LANG_ATTRIB = "ER_MISSING_LANG_ATTRIB"; 150 public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 151 "ER_MISSING_CONTAINER_ELEMENT_COMPONENT"; 152 public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 153 "ER_CAN_ONLY_OUTPUT_TO_ELEMENT"; 154 public static final String ER_PROCESS_ERROR = "ER_PROCESS_ERROR"; 155 public static final String ER_UNIMPLNODE_ERROR = "ER_UNIMPLNODE_ERROR"; 156 public static final String ER_NO_SELECT_EXPRESSION ="ER_NO_SELECT_EXPRESSION"; 157 public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR = 158 "ER_CANNOT_SERIALIZE_XSLPROCESSOR"; 159 public static final String ER_NO_INPUT_STYLESHEET = "ER_NO_INPUT_STYLESHEET"; 160 public static final String ER_FAILED_PROCESS_STYLESHEET = 161 "ER_FAILED_PROCESS_STYLESHEET"; 162 public static final String ER_COULDNT_PARSE_DOC = "ER_COULDNT_PARSE_DOC"; 163 public static final String ER_COULDNT_FIND_FRAGMENT = 164 "ER_COULDNT_FIND_FRAGMENT"; 165 public static final String ER_NODE_NOT_ELEMENT = "ER_NODE_NOT_ELEMENT"; 166 public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 167 "ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB"; 168 public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 169 "ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB"; 170 public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG = 171 "ER_NO_CLONE_OF_DOCUMENT_FRAG"; 172 public static final String ER_CANT_CREATE_ITEM = "ER_CANT_CREATE_ITEM"; 173 public static final String ER_XMLSPACE_ILLEGAL_VALUE = 174 "ER_XMLSPACE_ILLEGAL_VALUE"; 175 public static final String ER_NO_XSLKEY_DECLARATION = 176 "ER_NO_XSLKEY_DECLARATION"; 177 public static final String ER_CANT_CREATE_URL = "ER_CANT_CREATE_URL"; 178 public static final String ER_XSLFUNCTIONS_UNSUPPORTED = 179 "ER_XSLFUNCTIONS_UNSUPPORTED"; 180 public static final String ER_PROCESSOR_ERROR = "ER_PROCESSOR_ERROR"; 181 public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET = 182 "ER_NOT_ALLOWED_INSIDE_STYLESHEET"; 183 public static final String ER_RESULTNS_NOT_SUPPORTED = 184 "ER_RESULTNS_NOT_SUPPORTED"; 185 public static final String ER_DEFAULTSPACE_NOT_SUPPORTED = 186 "ER_DEFAULTSPACE_NOT_SUPPORTED"; 187 public static final String ER_INDENTRESULT_NOT_SUPPORTED = 188 "ER_INDENTRESULT_NOT_SUPPORTED"; 189 public static final String ER_ILLEGAL_ATTRIB = "ER_ILLEGAL_ATTRIB"; 190 public static final String ER_UNKNOWN_XSL_ELEM = "ER_UNKNOWN_XSL_ELEM"; 191 public static final String ER_BAD_XSLSORT_USE = "ER_BAD_XSLSORT_USE"; 192 public static final String ER_MISPLACED_XSLWHEN = "ER_MISPLACED_XSLWHEN"; 193 public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 194 "ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE"; 195 public static final String ER_MISPLACED_XSLOTHERWISE = 196 "ER_MISPLACED_XSLOTHERWISE"; 197 public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 198 "ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE"; 199 public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE = 200 "ER_NOT_ALLOWED_INSIDE_TEMPLATE"; 201 public static final String ER_UNKNOWN_EXT_NS_PREFIX = 202 "ER_UNKNOWN_EXT_NS_PREFIX"; 203 public static final String ER_IMPORTS_AS_FIRST_ELEM = 204 "ER_IMPORTS_AS_FIRST_ELEM"; 205 public static final String ER_IMPORTING_ITSELF = "ER_IMPORTING_ITSELF"; 206 public static final String ER_XMLSPACE_ILLEGAL_VAL ="ER_XMLSPACE_ILLEGAL_VAL"; 207 public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 208 "ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL"; 209 public static final String ER_SAX_EXCEPTION = "ER_SAX_EXCEPTION"; 210 public static final String ER_XSLT_ERROR = "ER_XSLT_ERROR"; 211 public static final String ER_CURRENCY_SIGN_ILLEGAL= 212 "ER_CURRENCY_SIGN_ILLEGAL"; 213 public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = 214 "ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM"; 215 public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 216 "ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER"; 217 public static final String ER_REDIRECT_COULDNT_GET_FILENAME = 218 "ER_REDIRECT_COULDNT_GET_FILENAME"; 219 public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 220 "ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT"; 221 public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 222 "ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX"; 223 public static final String ER_MISSING_NS_URI = "ER_MISSING_NS_URI"; 224 public static final String ER_MISSING_ARG_FOR_OPTION = 225 "ER_MISSING_ARG_FOR_OPTION"; 226 public static final String ER_INVALID_OPTION = "ER_INVALID_OPTION"; 227 public static final String ER_MALFORMED_FORMAT_STRING = 228 "ER_MALFORMED_FORMAT_STRING"; 229 public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 230 "ER_STYLESHEET_REQUIRES_VERSION_ATTRIB"; 231 public static final String ER_ILLEGAL_ATTRIBUTE_VALUE = 232 "ER_ILLEGAL_ATTRIBUTE_VALUE"; 233 public static final String ER_CHOOSE_REQUIRES_WHEN ="ER_CHOOSE_REQUIRES_WHEN"; 234 public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH = 235 "ER_NO_APPLY_IMPORT_IN_FOR_EACH"; 236 public static final String ER_CANT_USE_DTM_FOR_OUTPUT = 237 "ER_CANT_USE_DTM_FOR_OUTPUT"; 238 public static final String ER_CANT_USE_DTM_FOR_INPUT = 239 "ER_CANT_USE_DTM_FOR_INPUT"; 240 public static final String ER_CALL_TO_EXT_FAILED = "ER_CALL_TO_EXT_FAILED"; 241 public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE"; 242 public static final String ER_INVALID_UTF16_SURROGATE = 243 "ER_INVALID_UTF16_SURROGATE"; 244 public static final String ER_XSLATTRSET_USED_ITSELF = 245 "ER_XSLATTRSET_USED_ITSELF"; 246 public static final String ER_CANNOT_MIX_XERCESDOM ="ER_CANNOT_MIX_XERCESDOM"; 247 public static final String ER_TOO_MANY_LISTENERS = "ER_TOO_MANY_LISTENERS"; 248 public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT = 249 "ER_IN_ELEMTEMPLATEELEM_READOBJECT"; 250 public static final String ER_DUPLICATE_NAMED_TEMPLATE = 251 "ER_DUPLICATE_NAMED_TEMPLATE"; 252 public static final String ER_INVALID_KEY_CALL = "ER_INVALID_KEY_CALL"; 253 public static final String ER_REFERENCING_ITSELF = "ER_REFERENCING_ITSELF"; 254 public static final String ER_ILLEGAL_DOMSOURCE_INPUT = 255 "ER_ILLEGAL_DOMSOURCE_INPUT"; 256 public static final String ER_CLASS_NOT_FOUND_FOR_OPTION = 257 "ER_CLASS_NOT_FOUND_FOR_OPTION"; 258 public static final String ER_REQUIRED_ELEM_NOT_FOUND = 259 "ER_REQUIRED_ELEM_NOT_FOUND"; 260 public static final String ER_INPUT_CANNOT_BE_NULL ="ER_INPUT_CANNOT_BE_NULL"; 261 public static final String ER_URI_CANNOT_BE_NULL = "ER_URI_CANNOT_BE_NULL"; 262 public static final String ER_FILE_CANNOT_BE_NULL = "ER_FILE_CANNOT_BE_NULL"; 263 public static final String ER_SOURCE_CANNOT_BE_NULL = 264 "ER_SOURCE_CANNOT_BE_NULL"; 265 public static final String ER_CANNOT_INIT_BSFMGR = "ER_CANNOT_INIT_BSFMGR"; 266 public static final String ER_CANNOT_CMPL_EXTENSN = "ER_CANNOT_CMPL_EXTENSN"; 267 public static final String ER_CANNOT_CREATE_EXTENSN = 268 "ER_CANNOT_CREATE_EXTENSN"; 269 public static final String ER_INSTANCE_MTHD_CALL_REQUIRES = 270 "ER_INSTANCE_MTHD_CALL_REQUIRES"; 271 public static final String ER_INVALID_ELEMENT_NAME ="ER_INVALID_ELEMENT_NAME"; 272 public static final String ER_ELEMENT_NAME_METHOD_STATIC = 273 "ER_ELEMENT_NAME_METHOD_STATIC"; 274 public static final String ER_EXTENSION_FUNC_UNKNOWN = 275 "ER_EXTENSION_FUNC_UNKNOWN"; 276 public static final String ER_MORE_MATCH_CONSTRUCTOR = 277 "ER_MORE_MATCH_CONSTRUCTOR"; 278 public static final String ER_MORE_MATCH_METHOD = "ER_MORE_MATCH_METHOD"; 279 public static final String ER_MORE_MATCH_ELEMENT = "ER_MORE_MATCH_ELEMENT"; 280 public static final String ER_INVALID_CONTEXT_PASSED = 281 "ER_INVALID_CONTEXT_PASSED"; 282 public static final String ER_POOL_EXISTS = "ER_POOL_EXISTS"; 283 public static final String ER_NO_DRIVER_NAME = "ER_NO_DRIVER_NAME"; 284 public static final String ER_NO_URL = "ER_NO_URL"; 285 public static final String ER_POOL_SIZE_LESSTHAN_ONE = 286 "ER_POOL_SIZE_LESSTHAN_ONE"; 287 public static final String ER_INVALID_DRIVER = "ER_INVALID_DRIVER"; 288 public static final String ER_NO_STYLESHEETROOT = "ER_NO_STYLESHEETROOT"; 289 public static final String ER_ILLEGAL_XMLSPACE_VALUE = 290 "ER_ILLEGAL_XMLSPACE_VALUE"; 291 public static final String ER_PROCESSFROMNODE_FAILED = 292 "ER_PROCESSFROMNODE_FAILED"; 293 public static final String ER_RESOURCE_COULD_NOT_LOAD = 294 "ER_RESOURCE_COULD_NOT_LOAD"; 295 public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = 296 "ER_BUFFER_SIZE_LESSTHAN_ZERO"; 297 public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION = 298 "ER_UNKNOWN_ERROR_CALLING_EXTENSION"; 299 public static final String ER_NO_NAMESPACE_DECL = "ER_NO_NAMESPACE_DECL"; 300 public static final String ER_ELEM_CONTENT_NOT_ALLOWED = 301 "ER_ELEM_CONTENT_NOT_ALLOWED"; 302 public static final String ER_STYLESHEET_DIRECTED_TERMINATION = 303 "ER_STYLESHEET_DIRECTED_TERMINATION"; 304 public static final String ER_ONE_OR_TWO = "ER_ONE_OR_TWO"; 305 public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE"; 306 public static final String ER_COULD_NOT_LOAD_RESOURCE = 307 "ER_COULD_NOT_LOAD_RESOURCE"; 308 public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES = 309 "ER_CANNOT_INIT_DEFAULT_TEMPLATES"; 310 public static final String ER_RESULT_NULL = "ER_RESULT_NULL"; 311 public static final String ER_RESULT_COULD_NOT_BE_SET = 312 "ER_RESULT_COULD_NOT_BE_SET"; 313 public static final String ER_NO_OUTPUT_SPECIFIED = "ER_NO_OUTPUT_SPECIFIED"; 314 public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 315 "ER_CANNOT_TRANSFORM_TO_RESULT_TYPE"; 316 public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE = 317 "ER_CANNOT_TRANSFORM_SOURCE_TYPE"; 318 public static final String ER_NULL_CONTENT_HANDLER ="ER_NULL_CONTENT_HANDLER"; 319 public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER"; 320 public static final String ER_CANNOT_CALL_PARSE = "ER_CANNOT_CALL_PARSE"; 321 public static final String ER_NO_PARENT_FOR_FILTER ="ER_NO_PARENT_FOR_FILTER"; 322 public static final String ER_NO_STYLESHEET_IN_MEDIA = 323 "ER_NO_STYLESHEET_IN_MEDIA"; 324 public static final String ER_NO_STYLESHEET_PI = "ER_NO_STYLESHEET_PI"; 325 public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED"; 326 public static final String ER_PROPERTY_VALUE_BOOLEAN = 327 "ER_PROPERTY_VALUE_BOOLEAN"; 328 public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT = 329 "ER_COULD_NOT_FIND_EXTERN_SCRIPT"; 330 public static final String ER_RESOURCE_COULD_NOT_FIND = 331 "ER_RESOURCE_COULD_NOT_FIND"; 332 public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 333 "ER_OUTPUT_PROPERTY_NOT_RECOGNIZED"; 334 public static final String ER_FAILED_CREATING_ELEMLITRSLT = 335 "ER_FAILED_CREATING_ELEMLITRSLT"; 336 public static final String ER_VALUE_SHOULD_BE_NUMBER = 337 "ER_VALUE_SHOULD_BE_NUMBER"; 338 public static final String ER_VALUE_SHOULD_EQUAL = "ER_VALUE_SHOULD_EQUAL"; 339 public static final String ER_FAILED_CALLING_METHOD = 340 "ER_FAILED_CALLING_METHOD"; 341 public static final String ER_FAILED_CREATING_ELEMTMPL = 342 "ER_FAILED_CREATING_ELEMTMPL"; 343 public static final String ER_CHARS_NOT_ALLOWED = "ER_CHARS_NOT_ALLOWED"; 344 public static final String ER_ATTR_NOT_ALLOWED = "ER_ATTR_NOT_ALLOWED"; 345 public static final String ER_BAD_VALUE = "ER_BAD_VALUE"; 346 public static final String ER_ATTRIB_VALUE_NOT_FOUND = 347 "ER_ATTRIB_VALUE_NOT_FOUND"; 348 public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED = 349 "ER_ATTRIB_VALUE_NOT_RECOGNIZED"; 350 public static final String ER_NULL_URI_NAMESPACE = "ER_NULL_URI_NAMESPACE"; 351 public static final String ER_NUMBER_TOO_BIG = "ER_NUMBER_TOO_BIG"; 352 public static final String ER_CANNOT_FIND_SAX1_DRIVER = 353 "ER_CANNOT_FIND_SAX1_DRIVER"; 354 public static final String ER_SAX1_DRIVER_NOT_LOADED = 355 "ER_SAX1_DRIVER_NOT_LOADED"; 356 public static final String ER_SAX1_DRIVER_NOT_INSTANTIATED = 357 "ER_SAX1_DRIVER_NOT_INSTANTIATED" ; 358 public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 359 "ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER"; 360 public static final String ER_PARSER_PROPERTY_NOT_SPECIFIED = 361 "ER_PARSER_PROPERTY_NOT_SPECIFIED"; 362 public static final String ER_PARSER_ARG_CANNOT_BE_NULL = 363 "ER_PARSER_ARG_CANNOT_BE_NULL" ; 364 public static final String ER_FEATURE = "ER_FEATURE"; 365 public static final String ER_PROPERTY = "ER_PROPERTY" ; 366 public static final String ER_NULL_ENTITY_RESOLVER ="ER_NULL_ENTITY_RESOLVER"; 367 public static final String ER_NULL_DTD_HANDLER = "ER_NULL_DTD_HANDLER" ; 368 public static final String ER_NO_DRIVER_NAME_SPECIFIED = 369 "ER_NO_DRIVER_NAME_SPECIFIED"; 370 public static final String ER_NO_URL_SPECIFIED = "ER_NO_URL_SPECIFIED"; 371 public static final String ER_POOLSIZE_LESS_THAN_ONE = 372 "ER_POOLSIZE_LESS_THAN_ONE"; 373 public static final String ER_INVALID_DRIVER_NAME = "ER_INVALID_DRIVER_NAME"; 374 public static final String ER_ERRORLISTENER = "ER_ERRORLISTENER"; 375 public static final String ER_ASSERT_NO_TEMPLATE_PARENT = 376 "ER_ASSERT_NO_TEMPLATE_PARENT"; 377 public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 378 "ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR"; 379 public static final String ER_NOT_ALLOWED_IN_POSITION = 380 "ER_NOT_ALLOWED_IN_POSITION"; 381 public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 382 "ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION"; 383 public static final String INVALID_TCHAR = "INVALID_TCHAR"; 384 public static final String INVALID_QNAME = "INVALID_QNAME"; 385 public static final String INVALID_ENUM = "INVALID_ENUM"; 386 public static final String INVALID_NMTOKEN = "INVALID_NMTOKEN"; 387 public static final String INVALID_NCNAME = "INVALID_NCNAME"; 388 public static final String INVALID_BOOLEAN = "INVALID_BOOLEAN"; 389 public static final String INVALID_NUMBER = "INVALID_NUMBER"; 390 public static final String ER_ARG_LITERAL = "ER_ARG_LITERAL"; 391 public static final String ER_DUPLICATE_GLOBAL_VAR ="ER_DUPLICATE_GLOBAL_VAR"; 392 public static final String ER_DUPLICATE_VAR = "ER_DUPLICATE_VAR"; 393 public static final String ER_TEMPLATE_NAME_MATCH = "ER_TEMPLATE_NAME_MATCH"; 394 public static final String ER_INVALID_PREFIX = "ER_INVALID_PREFIX"; 395 public static final String ER_NO_ATTRIB_SET = "ER_NO_ATTRIB_SET"; 396 public static final String ER_FUNCTION_NOT_FOUND = 397 "ER_FUNCTION_NOT_FOUND"; 398 public static final String ER_CANT_HAVE_CONTENT_AND_SELECT = 399 "ER_CANT_HAVE_CONTENT_AND_SELECT"; 400 public static final String ER_INVALID_SET_PARAM_VALUE = "ER_INVALID_SET_PARAM_VALUE"; 401 402 public static final String WG_FOUND_CURLYBRACE = "WG_FOUND_CURLYBRACE"; 403 public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 404 "WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR"; 405 public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 406 "WG_EXPR_ATTRIB_CHANGED_TO_SELECT"; 407 public static final String WG_NO_LOCALE_IN_FORMATNUMBER = 408 "WG_NO_LOCALE_IN_FORMATNUMBER"; 409 public static final String WG_LOCALE_NOT_FOUND = "WG_LOCALE_NOT_FOUND"; 410 public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM"; 411 public static final String WG_CANNOT_LOAD_REQUESTED_DOC = 412 "WG_CANNOT_LOAD_REQUESTED_DOC"; 413 public static final String WG_CANNOT_FIND_COLLATOR ="WG_CANNOT_FIND_COLLATOR"; 414 public static final String WG_FUNCTIONS_SHOULD_USE_URL = 415 "WG_FUNCTIONS_SHOULD_USE_URL"; 416 public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 417 "WG_ENCODING_NOT_SUPPORTED_USING_UTF8"; 418 public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 419 "WG_ENCODING_NOT_SUPPORTED_USING_JAVA"; 420 public static final String WG_SPECIFICITY_CONFLICTS = 421 "WG_SPECIFICITY_CONFLICTS"; 422 public static final String WG_PARSING_AND_PREPARING = 423 "WG_PARSING_AND_PREPARING"; 424 public static final String WG_ATTR_TEMPLATE = "WG_ATTR_TEMPLATE"; 425 public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = "WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP"; 426 public static final String WG_ATTRIB_NOT_HANDLED = "WG_ATTRIB_NOT_HANDLED"; 427 public static final String WG_NO_DECIMALFORMAT_DECLARATION = 428 "WG_NO_DECIMALFORMAT_DECLARATION"; 429 public static final String WG_OLD_XSLT_NS = "WG_OLD_XSLT_NS"; 430 public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 431 "WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED"; 432 public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 433 "WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE"; 434 public static final String WG_ILLEGAL_ATTRIBUTE = "WG_ILLEGAL_ATTRIBUTE"; 435 public static final String WG_COULD_NOT_RESOLVE_PREFIX = 436 "WG_COULD_NOT_RESOLVE_PREFIX"; 437 public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 438 "WG_STYLESHEET_REQUIRES_VERSION_ATTRIB"; 439 public static final String WG_ILLEGAL_ATTRIBUTE_NAME = 440 "WG_ILLEGAL_ATTRIBUTE_NAME"; 441 public static final String WG_ILLEGAL_ATTRIBUTE_VALUE = 442 "WG_ILLEGAL_ATTRIBUTE_VALUE"; 443 public static final String WG_EMPTY_SECOND_ARG = "WG_EMPTY_SECOND_ARG"; 444 public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 445 "WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML"; 446 public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 447 "WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME"; 448 public static final String WG_ILLEGAL_ATTRIBUTE_POSITION = 449 "WG_ILLEGAL_ATTRIBUTE_POSITION"; 450 451 452 458 459 461 462 public static final Object [][] contents = { 463 464 465 {"ER0000" , "{0}" }, 466 467 468 469 470 472 { ER_NO_CURLYBRACE, 473 "Error: Can not have '{' within expression"}, 474 475 476 478 { ER_ILLEGAL_ATTRIBUTE , 479 "{0} has an illegal attribute: {1}"}, 480 481 482 484 {ER_NULL_SOURCENODE_APPLYIMPORTS , 485 "sourceNode is null in xsl:apply-imports!"}, 486 487 488 490 {ER_CANNOT_ADD, 491 "Can not add {0} to {1}"}, 492 493 494 495 497 498 { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES, 499 "sourceNode is null in handleApplyTemplatesInstruction!"}, 500 501 502 504 505 { ER_NO_NAME_ATTRIB, 506 "{0} must have a name attribute."}, 507 508 509 511 512 {ER_TEMPLATE_NOT_FOUND, 513 "Could not find template named: {0}"}, 514 515 516 518 {ER_CANT_RESOLVE_NAME_AVT, 519 "Could not resolve name AVT in xsl:call-template."}, 520 521 522 524 525 {ER_REQUIRES_ATTRIB, 526 "{0} requires attribute: {1}"}, 527 528 529 531 532 { ER_MUST_HAVE_TEST_ATTRIB, 533 "{0} must have a ''test'' attribute."}, 534 535 536 538 539 {ER_BAD_VAL_ON_LEVEL_ATTRIB, 540 "Bad value on level attribute: {0}"}, 541 542 543 545 546 {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML, 547 "processing-instruction name can not be 'xml'"}, 548 549 550 552 553 { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME, 554 "processing-instruction name must be a valid NCName: {0}"}, 555 556 557 559 560 { ER_NEED_MATCH_ATTRIB, 561 "{0} must have a match attribute if it has a mode."}, 562 563 564 566 567 { ER_NEED_NAME_OR_MATCH_ATTRIB, 568 "{0} requires either a name or a match attribute."}, 569 570 571 573 574 {ER_CANT_RESOLVE_NSPREFIX, 575 "Can not resolve namespace prefix: {0}"}, 576 577 578 580 581 { ER_ILLEGAL_VALUE, 582 "xml:space has an illegal value: {0}"}, 583 584 585 587 588 { ER_NO_OWNERDOC, 589 "Child node does not have an owner document!"}, 590 591 592 594 595 { ER_ELEMTEMPLATEELEM_ERR, 596 "ElemTemplateElement error: {0}"}, 597 598 599 601 602 { ER_NULL_CHILD, 603 "Trying to add a null child!"}, 604 605 606 608 609 { ER_NEED_SELECT_ATTRIB, 610 "{0} requires a select attribute."}, 611 612 613 615 616 { ER_NEED_TEST_ATTRIB , 617 "xsl:when must have a 'test' attribute."}, 618 619 620 622 623 { ER_NEED_NAME_ATTRIB, 624 "xsl:with-param must have a 'name' attribute."}, 625 626 627 629 630 { ER_NO_CONTEXT_OWNERDOC, 631 "context does not have an owner document!"}, 632 633 634 636 637 {ER_COULD_NOT_CREATE_XML_PROC_LIAISON, 638 "Could not create XML TransformerFactory Liaison: {0}"}, 639 640 641 643 644 {ER_PROCESS_NOT_SUCCESSFUL, 645 "Xalan: Process was not successful."}, 646 647 648 650 651 { ER_NOT_SUCCESSFUL, 652 "Xalan: was not successful."}, 653 654 655 657 658 { ER_ENCODING_NOT_SUPPORTED, 659 "Encoding not supported: {0}"}, 660 661 662 664 665 {ER_COULD_NOT_CREATE_TRACELISTENER, 666 "Could not create TraceListener: {0}"}, 667 668 669 671 672 {ER_KEY_REQUIRES_NAME_ATTRIB, 673 "xsl:key requires a 'name' attribute!"}, 674 675 676 678 679 { ER_KEY_REQUIRES_MATCH_ATTRIB, 680 "xsl:key requires a 'match' attribute!"}, 681 682 683 685 686 { ER_KEY_REQUIRES_USE_ATTRIB, 687 "xsl:key requires a 'use' attribute!"}, 688 689 690 692 693 { ER_REQUIRES_ELEMENTS_ATTRIB, 694 "(StylesheetHandler) {0} requires an ''elements'' attribute!"}, 695 696 697 699 700 { ER_MISSING_PREFIX_ATTRIB, 701 "(StylesheetHandler) {0} attribute ''prefix'' is missing"}, 702 703 704 706 707 { ER_BAD_STYLESHEET_URL, 708 "Stylesheet URL is bad: {0}"}, 709 710 711 713 714 { ER_FILE_NOT_FOUND, 715 "Stylesheet file was not found: {0}"}, 716 717 718 720 721 { ER_IOEXCEPTION, 722 "Had IO Exception with stylesheet file: {0}"}, 723 724 725 727 728 { ER_NO_HREF_ATTRIB, 729 "(StylesheetHandler) Could not find href attribute for {0}"}, 730 731 732 734 735 { ER_STYLESHEET_INCLUDES_ITSELF, 736 "(StylesheetHandler) {0} is directly or indirectly including itself!"}, 737 738 739 741 742 { ER_PROCESSINCLUDE_ERROR, 743 "StylesheetHandler.processInclude error, {0}"}, 744 745 746 748 749 { ER_MISSING_LANG_ATTRIB, 750 "(StylesheetHandler) {0} attribute ''lang'' is missing"}, 751 752 753 755 { ER_MISSING_CONTAINER_ELEMENT_COMPONENT, 756 "(StylesheetHandler) misplaced {0} element?? Missing container element ''component''"}, 757 758 759 761 { ER_CAN_ONLY_OUTPUT_TO_ELEMENT, 762 "Can only output to an Element, DocumentFragment, Document, or PrintWriter."}, 763 764 765 767 { ER_PROCESS_ERROR, 768 "StylesheetRoot.process error"}, 769 770 771 773 { ER_UNIMPLNODE_ERROR, 774 "UnImplNode error: {0}"}, 775 776 777 779 { ER_NO_SELECT_EXPRESSION, 780 "Error! Did not find xpath select expression (-select)."}, 781 782 783 785 { ER_CANNOT_SERIALIZE_XSLPROCESSOR, 786 "Can not serialize an XSLProcessor!"}, 787 788 789 791 { ER_NO_INPUT_STYLESHEET, 792 "Stylesheet input was not specified!"}, 793 794 795 797 { ER_FAILED_PROCESS_STYLESHEET, 798 "Failed to process stylesheet!"}, 799 800 801 803 { ER_COULDNT_PARSE_DOC, 804 "Could not parse {0} document!"}, 805 806 807 809 { ER_COULDNT_FIND_FRAGMENT, 810 "Could not find fragment: {0}"}, 811 812 813 815 { ER_NODE_NOT_ELEMENT, 816 "Node pointed to by fragment identifier was not an element: {0}"}, 817 818 819 821 { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB, 822 "for-each must have either a match or name attribute"}, 823 824 825 827 { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB, 828 "templates must have either a match or name attribute"}, 829 830 831 833 { ER_NO_CLONE_OF_DOCUMENT_FRAG, 834 "No clone of a document fragment!"}, 835 836 837 839 { ER_CANT_CREATE_ITEM, 840 "Can not create item in result tree: {0}"}, 841 842 843 845 { ER_XMLSPACE_ILLEGAL_VALUE, 846 "xml:space in the source XML has an illegal value: {0}"}, 847 848 849 851 { ER_NO_XSLKEY_DECLARATION, 852 "There is no xsl:key declaration for {0}!"}, 853 854 855 857 { ER_CANT_CREATE_URL, 858 "Error! Cannot create url for: {0}"}, 859 860 861 863 { ER_XSLFUNCTIONS_UNSUPPORTED, 864 "xsl:functions is unsupported"}, 865 866 867 869 { ER_PROCESSOR_ERROR, 870 "XSLT TransformerFactory Error"}, 871 872 873 875 { ER_NOT_ALLOWED_INSIDE_STYLESHEET, 876 "(StylesheetHandler) {0} not allowed inside a stylesheet!"}, 877 878 879 881 { ER_RESULTNS_NOT_SUPPORTED, 882 "result-ns no longer supported! Use xsl:output instead."}, 883 884 885 887 { ER_DEFAULTSPACE_NOT_SUPPORTED, 888 "default-space no longer supported! Use xsl:strip-space or xsl:preserve-space instead."}, 889 890 891 893 { ER_INDENTRESULT_NOT_SUPPORTED, 894 "indent-result no longer supported! Use xsl:output instead."}, 895 896 897 899 { ER_ILLEGAL_ATTRIB, 900 "(StylesheetHandler) {0} has an illegal attribute: {1}"}, 901 902 903 905 { ER_UNKNOWN_XSL_ELEM, 906 "Unknown XSL element: {0}"}, 907 908 909 911 { ER_BAD_XSLSORT_USE, 912 "(StylesheetHandler) xsl:sort can only be used with xsl:apply-templates or xsl:for-each."}, 913 914 915 917 { ER_MISPLACED_XSLWHEN, 918 "(StylesheetHandler) misplaced xsl:when!"}, 919 920 921 923 { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE, 924 "(StylesheetHandler) xsl:when not parented by xsl:choose!"}, 925 926 927 929 { ER_MISPLACED_XSLOTHERWISE, 930 "(StylesheetHandler) misplaced xsl:otherwise!"}, 931 932 933 935 { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE, 936 "(StylesheetHandler) xsl:otherwise not parented by xsl:choose!"}, 937 938 939 941 { ER_NOT_ALLOWED_INSIDE_TEMPLATE, 942 "(StylesheetHandler) {0} is not allowed inside a template!"}, 943 944 945 947 { ER_UNKNOWN_EXT_NS_PREFIX, 948 "(StylesheetHandler) {0} extension namespace prefix {1} unknown"}, 949 950 951 953 { ER_IMPORTS_AS_FIRST_ELEM, 954 "(StylesheetHandler) Imports can only occur as the first elements in the stylesheet!"}, 955 956 957 959 { ER_IMPORTING_ITSELF, 960 "(StylesheetHandler) {0} is directly or indirectly importing itself!"}, 961 962 963 965 { ER_XMLSPACE_ILLEGAL_VAL, 966 "(StylesheetHandler) " + "xml:space has an illegal value: {0}"}, 967 968 969 971 { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL, 972 "processStylesheet not succesfull!"}, 973 974 975 977 { ER_SAX_EXCEPTION, 978 "SAX Exception"}, 979 980 981 { ER_FUNCTION_NOT_SUPPORTED, 984 "Function not supported!"}, 985 986 987 989 { ER_XSLT_ERROR, 990 "XSLT Error"}, 991 992 993 995 { ER_CURRENCY_SIGN_ILLEGAL, 996 "currency sign is not allowed in format pattern string"}, 997 998 999 1001 { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM, 1002 "Document function not supported in Stylesheet DOM!"}, 1003 1004 1005 1007 { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER, 1008 "Can't resolve prefix of non-Prefix resolver!"}, 1009 1010 1011 1013 { ER_REDIRECT_COULDNT_GET_FILENAME, 1014 "Redirect extension: Could not get filename - file or select attribute must return vald string."}, 1015 1016 1017 1019 { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT, 1020 "Can not build FormatterListener in Redirect extension!"}, 1021 1022 1023 1025 { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX, 1026 "Prefix in exclude-result-prefixes is not valid: {0}"}, 1027 1028 1029 1031 { ER_MISSING_NS_URI, 1032 "Missing namespace URI for specified prefix"}, 1033 1034 1035 1037 { ER_MISSING_ARG_FOR_OPTION, 1038 "Missing argument for option: {0}"}, 1039 1040 1041 1043 { ER_INVALID_OPTION, 1044 "Invalid option: {0}"}, 1045 1046 1047 1049 { ER_MALFORMED_FORMAT_STRING, 1050 "Malformed format string: {0}"}, 1051 1052 1053 1055 { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB, 1056 "xsl:stylesheet requires a 'version' attribute!"}, 1057 1058 1059 1061 { ER_ILLEGAL_ATTRIBUTE_VALUE, 1062 "Attribute: {0} has an illegal value: {1}"}, 1063 1064 1065 1067 { ER_CHOOSE_REQUIRES_WHEN, 1068 "xsl:choose requires an xsl:when"}, 1069 1070 1071 1073 { ER_NO_APPLY_IMPORT_IN_FOR_EACH, 1074 "xsl:apply-imports not allowed in a xsl:for-each"}, 1075 1076 1077 1079 { ER_CANT_USE_DTM_FOR_OUTPUT, 1080 "Cannot use a DTMLiaison for an output DOM node... pass a com.sun.org.apache.xpath.internal.DOM2Helper instead!"}, 1081 1082 1083 1085 { ER_CANT_USE_DTM_FOR_INPUT, 1086 "Cannot use a DTMLiaison for a input DOM node... pass a com.sun.org.apache.xpath.internal.DOM2Helper instead!"}, 1087 1088 1089 1091 { ER_CALL_TO_EXT_FAILED, 1092 "Call to extension element failed: {0}"}, 1093 1094 1095 1097 { ER_PREFIX_MUST_RESOLVE, 1098 "Prefix must resolve to a namespace: {0}"}, 1099 1100 1101 1103 { ER_INVALID_UTF16_SURROGATE, 1104 "Invalid UTF-16 surrogate detected: {0} ?"}, 1105 1106 1107 1109 { ER_XSLATTRSET_USED_ITSELF, 1110 "xsl:attribute-set {0} used itself, which will cause an infinite loop."}, 1111 1112 1113 1115 { ER_CANNOT_MIX_XERCESDOM, 1116 "Can not mix non Xerces-DOM input with Xerces-DOM output!"}, 1117 1118 1119 1121 { ER_TOO_MANY_LISTENERS, 1122 "addTraceListenersToStylesheet - TooManyListenersException"}, 1123 1124 1125 1127 { ER_IN_ELEMTEMPLATEELEM_READOBJECT, 1128 "In ElemTemplateElement.readObject: {0}"}, 1129 1130 1131 1133 { ER_DUPLICATE_NAMED_TEMPLATE, 1134 "Found more than one template named: {0}"}, 1135 1136 1137 1139 { ER_INVALID_KEY_CALL, 1140 "Invalid function call: recursive key() calls are not allowed"}, 1141 1142 1143 1145 { ER_REFERENCING_ITSELF, 1146 "Variable {0} is directly or indirectly referencing itself!"}, 1147 1148 1149 1151 { ER_ILLEGAL_DOMSOURCE_INPUT, 1152 "The input node can not be null for a DOMSource for newTemplates!"}, 1153 1154 1155 1157 { ER_CLASS_NOT_FOUND_FOR_OPTION, 1158 "Class file not found for option {0}"}, 1159 1160 1161 1163 { ER_REQUIRED_ELEM_NOT_FOUND, 1164 "Required Element not found: {0}"}, 1165 1166 1167 1169 { ER_INPUT_CANNOT_BE_NULL, 1170 "InputStream cannot be null"}, 1171 1172 1173 1175 { ER_URI_CANNOT_BE_NULL, 1176 "URI cannot be null"}, 1177 1178 1179 1181 { ER_FILE_CANNOT_BE_NULL, 1182 "File cannot be null"}, 1183 1184 1185 1187 { ER_SOURCE_CANNOT_BE_NULL, 1188 "InputSource cannot be null"}, 1189 1190 1191 1193 1196 1197 1199 { ER_CANNOT_INIT_BSFMGR, 1200 "Could not initialize BSF Manager"}, 1201 1202 1203 1205 { ER_CANNOT_CMPL_EXTENSN, 1206 "Could not compile extension"}, 1207 1208 1209 1211 { ER_CANNOT_CREATE_EXTENSN, 1212 "Could not create extension: {0} because of: {1}"}, 1213 1214 1215 1217 { ER_INSTANCE_MTHD_CALL_REQUIRES, 1218 "Instance method call to method {0} requires an Object instance as first argument"}, 1219 1220 1221 1223 { ER_INVALID_ELEMENT_NAME, 1224 "Invalid element name specified {0}"}, 1225 1226 1227 1229 { ER_ELEMENT_NAME_METHOD_STATIC, 1230 "Element name method must be static {0}"}, 1231 1232 1233 1235 { ER_EXTENSION_FUNC_UNKNOWN, 1236 "Extension function {0} : {1} is unknown"}, 1237 1238 1239 1241 { ER_MORE_MATCH_CONSTRUCTOR, 1242 "More than one best match for constructor for {0}"}, 1243 1244 1245 1247 { ER_MORE_MATCH_METHOD, 1248 "More than one best match for method {0}"}, 1249 1250 1251 1253 { ER_MORE_MATCH_ELEMENT, 1254 "More than one best match for element method {0}"}, 1255 1256 1257 1259 { ER_INVALID_CONTEXT_PASSED, 1260 "Invalid context passed to evaluate {0}"}, 1261 1262 1263 1265 { ER_POOL_EXISTS, 1266 "Pool already exists"}, 1267 1268 1269 1271 { ER_NO_DRIVER_NAME, 1272 "No driver Name specified"}, 1273 1274 1275 1277 { ER_NO_URL, 1278 "No URL specified"}, 1279 1280 1281 1283 { ER_POOL_SIZE_LESSTHAN_ONE, 1284 "Pool size is less than one!"}, 1285 1286 1287 1289 { ER_INVALID_DRIVER, 1290 "Invalid driver name specified!"}, 1291 1292 1293 1295 { ER_NO_STYLESHEETROOT, 1296 "Did not find the stylesheet root!"}, 1297 1298 1299 1301 { ER_ILLEGAL_XMLSPACE_VALUE, 1302 "Illegal value for xml:space"}, 1303 1304 1305 1307 { ER_PROCESSFROMNODE_FAILED, 1308 "processFromNode failed"}, 1309 1310 1311 1313 { ER_RESOURCE_COULD_NOT_LOAD, 1314 "The resource [ {0} ] could not load: {1} \n {2} \t {3}"}, 1315 1316 1317 1318 1320 { ER_BUFFER_SIZE_LESSTHAN_ZERO, 1321 "Buffer size <=0"}, 1322 1323 1324 1326 { ER_UNKNOWN_ERROR_CALLING_EXTENSION, 1327 "Unknown error when calling extension"}, 1328 1329 1330 1332 { ER_NO_NAMESPACE_DECL, 1333 "Prefix {0} does not have a corresponding namespace declaration"}, 1334 1335 1336 1338 { ER_ELEM_CONTENT_NOT_ALLOWED, 1339 "Element content not allowed for lang=javaclass {0}"}, 1340 1341 1342 1344 { ER_STYLESHEET_DIRECTED_TERMINATION, 1345 "Stylesheet directed termination"}, 1346 1347 1348 1350 { ER_ONE_OR_TWO, 1351 "1 or 2"}, 1352 1353 1354 1356 { ER_TWO_OR_THREE, 1357 "2 or 3"}, 1358 1359 1360 1362 { ER_COULD_NOT_LOAD_RESOURCE, 1363 "Could not load {0} (check CLASSPATH), now using just the defaults"}, 1364 1365 1366 1368 { ER_CANNOT_INIT_DEFAULT_TEMPLATES, 1369 "Cannot initialize default templates"}, 1370 1371 1372 1374 { ER_RESULT_NULL, 1375 "Result should not be null"}, 1376 1377 1378 1380 { ER_RESULT_COULD_NOT_BE_SET, 1381 "Result could not be set"}, 1382 1383 1384 1386 { ER_NO_OUTPUT_SPECIFIED, 1387 "No output specified"}, 1388 1389 1390 1392 { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE, 1393 "Can''t transform to a Result of type {0}"}, 1394 1395 1396 1398 { ER_CANNOT_TRANSFORM_SOURCE_TYPE, 1399 "Can''t transform a Source of type {0}"}, 1400 1401 1402 1404 { ER_NULL_CONTENT_HANDLER, 1405 "Null content handler"}, 1406 1407 1408 { ER_NULL_ERROR_HANDLER, 1410 "Null error handler"}, 1411 1412 1413 1415 { ER_CANNOT_CALL_PARSE, 1416 "parse can not be called if the ContentHandler has not been set"}, 1417 1418 1419 1421 { ER_NO_PARENT_FOR_FILTER, 1422 "No parent for filter"}, 1423 1424 1425 1426 1428 { ER_NO_STYLESHEET_IN_MEDIA, 1429 "No stylesheet found in: {0}, media= {1}"}, 1430 1431 1432 1434 { ER_NO_STYLESHEET_PI, 1435 "No xml-stylesheet PI found in: {0}"}, 1436 1437 1438 1440 1443 1444 1446 1449 1450 1452 1455 1456 1458 1461 1462 1464 1467 1468 1470 1473 1474 1476 1479 1480 1482 1485 1486 1488 1491 1492 1494 1497 1498 1500 1503 1504 1506 1509 1510 1512 1515 1516 1518 1521 1522 1524 1527 1528 1530 { ER_NOT_SUPPORTED, 1531 "Not supported: {0}"}, 1532 1533 1534 1536 1539 1540 1542 1545 1546 1548 1551 1552 1554 1557 1558 1562 1563 1565 { ER_PROPERTY_VALUE_BOOLEAN, 1566 "Value for property {0} should be a Boolean instance"}, 1567 1568 1569 1571 1574 1575 1577 1580 1581 1583 1586 1587 1589 1592 1593 1595 1598 1599 1601 1604 1605 1607 1610 1611 1613 1616 1617 1619 1622 1623 1625 1628 1629 1631 1634 1635 1637 1640 1641 1643 1646 1647 1649 1652 1653 1654 1655 1657 1660 1661 1663 1666 1667 1669 1672 1673 1675 { ER_COULD_NOT_FIND_EXTERN_SCRIPT, 1676 "Could not get to external script at {0}"}, 1677 1678 1679 1681 { ER_RESOURCE_COULD_NOT_FIND, 1682 "The resource [ {0} ] could not be found.\n {1}"}, 1683 1684 1685 1687 { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED, 1688 "Output property not recognized: {0}"}, 1689 1690 1691 1693 1696 1697 1699 1702 1703 1705 1708 1709 1711 1714 1715 1717 1720 1721 1723 { ER_FAILED_CREATING_ELEMLITRSLT, 1724 "Failed creating ElemLiteralResult instance"}, 1725 1726 1731 1732 1734 { ER_VALUE_SHOULD_BE_NUMBER, 1735 "Value for {0} should contain a parsable number"}, 1736 1737 1738 1740 { ER_VALUE_SHOULD_EQUAL, 1741 "Value for {0} should equal yes or no"}, 1742 1743 1744 1746 { ER_FAILED_CALLING_METHOD, 1747 "Failed calling {0} method"}, 1748 1749 1750 1752 { ER_FAILED_CREATING_ELEMTMPL, 1753 "Failed creating ElemTemplateElement instance"}, 1754 1755 1756 1758 { ER_CHARS_NOT_ALLOWED, 1759 "Characters are not allowed at this point in the document"}, 1760 1761 1762 { ER_ATTR_NOT_ALLOWED, 1764 "\"{0}\" attribute is not allowed on the {1} element!"}, 1765 1766 1767 1769 1772 1773 1775 { ER_BAD_VALUE, 1776 "{0} bad value {1} "}, 1777 1778 1779 1781 { ER_ATTRIB_VALUE_NOT_FOUND, 1782 "{0} attribute value not found "}, 1783 1784 1785 1787 { ER_ATTRIB_VALUE_NOT_RECOGNIZED, 1788 "{0} attribute value not recognized "}, 1789 1790 1791 1793 1796 1797 1799 1802 1803 1805 { ER_NULL_URI_NAMESPACE, 1806 "Attempting to generate a namespace prefix with a null URI"}, 1807 1808 1810 1811 1813 { ER_NUMBER_TOO_BIG, 1814 "Attempting to format a number bigger than the largest Long integer"}, 1815 1816 1818 1820 { ER_CANNOT_FIND_SAX1_DRIVER, 1821 "Cannot find SAX1 driver class {0}"}, 1822 1823 1826 { ER_SAX1_DRIVER_NOT_LOADED, 1827 "SAX1 driver class {0} found but cannot be loaded"}, 1828 1829 1832 { ER_SAX1_DRIVER_NOT_INSTANTIATED, 1833 "SAX1 driver class {0} loaded but cannot be instantiated"}, 1834 1835 1836 1839 { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER, 1840 "SAX1 driver class {0} does not implement org.xml.sax.Parser"}, 1841 1842 1845 { ER_PARSER_PROPERTY_NOT_SPECIFIED, 1846 "System property org.xml.sax.parser not specified"}, 1847 1848 1851 { ER_PARSER_ARG_CANNOT_BE_NULL, 1852 "Parser argument must not be null"}, 1853 1854 1855 1858 { ER_FEATURE, 1859 "Feature: {0}"}, 1860 1861 1862 1865 { ER_PROPERTY, 1866 "Property: {0}"}, 1867 1868 1871 { ER_NULL_ENTITY_RESOLVER, 1872 "Null entity resolver"}, 1873 1874 1877 { ER_NULL_DTD_HANDLER, 1878 "Null DTD handler"}, 1879 1880 { ER_NO_DRIVER_NAME_SPECIFIED, 1883 "No Driver Name Specified!"}, 1884 1885 1886 { ER_NO_URL_SPECIFIED, 1889 "No URL Specified!"}, 1890 1891 1892 { ER_POOLSIZE_LESS_THAN_ONE, 1895 "Pool size is less than 1!"}, 1896 1897 1898 { ER_INVALID_DRIVER_NAME, 1901 "Invalid Driver Name Specified!"}, 1902 1903 1904 1905 { ER_ERRORLISTENER, 1908 "ErrorListener"}, 1909 1910 1911 { ER_ASSERT_NO_TEMPLATE_PARENT, 1920 "Programmer's error! The expression has no ElemTemplateElement parent!"}, 1921 1922 1923 { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR, 1933 "Programmer''s assertion in RedundentExprEliminator: {0}"}, 1934 1935 1940 1945 { ER_NOT_ALLOWED_IN_POSITION, 1948 "{0} is not allowed in this position in the stylesheet!"}, 1949 1950 { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION, 1953 "Non-whitespace text is not allowed in this position in the stylesheet!"}, 1954 1955 { INVALID_TCHAR, 1960 "Illegal value: {1} used for CHAR attribute: {0}. An attribute of type CHAR must be only 1 character!"}, 1961 1962 1966 1971 1977 { INVALID_QNAME, 1981 "Illegal value: {1} used for QNAME attribute: {0}"}, 1982 1983 1990 { INVALID_ENUM, 1993 "Illegal value: {1} used for ENUM attribute: {0}. Valid values are: {2}."}, 1994 1995 2001 { INVALID_NMTOKEN, 2004 "Illegal value: {1} used for NMTOKEN attribute: {0} "}, 2005 2006 2012 { INVALID_NCNAME, 2015 "Illegal value: {1} used for NCNAME attribute: {0} "}, 2016 2017 2023 2026 { INVALID_BOOLEAN, 2027 "Illegal value: {1} used for boolean attribute: {0} "}, 2028 2029 2035 { INVALID_NUMBER, 2038 "Illegal value: {1} used for number attribute: {0} "}, 2039 2040 2041 2043 2049 { ER_ARG_LITERAL, 2052 "Argument to {0} in match pattern must be a literal."}, 2053 2054 2059 { ER_DUPLICATE_GLOBAL_VAR, 2062 "Duplicate global variable declaration."}, 2063 2064 2065 2069 { ER_DUPLICATE_VAR, 2072 "Duplicate variable declaration."}, 2073 2074 2078 { ER_TEMPLATE_NAME_MATCH, 2081 "xsl:template must have a name or match attribute (or both)"}, 2082 2083 2089 { ER_INVALID_PREFIX, 2092 "Prefix in exclude-result-prefixes is not valid: {0}"}, 2093 2094 2100 { ER_NO_ATTRIB_SET, 2103 "attribute-set named {0} does not exist"}, 2104 2105 2110 { ER_FUNCTION_NOT_FOUND, 2111 "The function named {0} does not exist"}, 2112 2113 { ER_CANT_HAVE_CONTENT_AND_SELECT, 2120 "The {0} element must not have both content and a select attribute."}, 2121 2122 { ER_INVALID_SET_PARAM_VALUE, 2127 "The value of param {0} must be a valid Java Object"}, 2128 2129 2130 2131 2133 2134 { WG_FOUND_CURLYBRACE, 2136 "Found '}' but no attribute template open!"}, 2137 2138 2139 2141 { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR, 2142 "Warning: count attribute does not match an ancestor in xsl:number! Target = {0}"}, 2143 2144 2145 2147 { WG_EXPR_ATTRIB_CHANGED_TO_SELECT, 2148 "Old syntax: The name of the 'expr' attribute has been changed to 'select'."}, 2149 2150 2151 2153 { WG_NO_LOCALE_IN_FORMATNUMBER, 2154 "Xalan doesn't yet handle the locale name in the format-number function."}, 2155 2156 2157 2159 { WG_LOCALE_NOT_FOUND, 2160 "Warning: Could not find locale for xml:lang={0}"}, 2161 2162 2163 2165 { WG_CANNOT_MAKE_URL_FROM, 2166 "Can not make URL from: {0}"}, 2167 2168 2169 2171 { WG_CANNOT_LOAD_REQUESTED_DOC, 2172 "Can not load requested doc: {0}"}, 2173 2174 2175 { WG_CANNOT_FIND_COLLATOR, 2177 "Could not find Collator for <sort xml:lang={0}"}, 2178 2179 2180 2182 { WG_FUNCTIONS_SHOULD_USE_URL, 2183 "Old syntax: the functions instruction should use a url of {0}"}, 2184 2185 2186 2188 { WG_ENCODING_NOT_SUPPORTED_USING_UTF8, 2189 "encoding not supported: {0}, using UTF-8"}, 2190 2191 2192 2194 { WG_ENCODING_NOT_SUPPORTED_USING_JAVA, 2195 "encoding not supported: {0}, using Java {1}"}, 2196 2197 2198 2200 { WG_SPECIFICITY_CONFLICTS, 2201 "Specificity conflicts found: {0} Last found in stylesheet will be used."}, 2202 2203 2204 2206 { WG_PARSING_AND_PREPARING, 2207 "========= Parsing and preparing {0} =========="}, 2208 2209 2210 2212 { WG_ATTR_TEMPLATE, 2213 "Attr Template, {0}"}, 2214 2215 2216 2218 { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE, 2219 "Match conflict between xsl:strip-space and xsl:preserve-space"}, 2220 2221 2222 2224 { WG_ATTRIB_NOT_HANDLED, 2225 "Xalan does not yet handle the {0} attribute!"}, 2226 2227 2228 2230 { WG_NO_DECIMALFORMAT_DECLARATION, 2231 "No declaration found for decimal format: {0}"}, 2232 2233 2234 2236 { WG_OLD_XSLT_NS, 2237 "Missing or incorrect XSLT Namespace. "}, 2238 2239 2240 2242 { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED, 2243 "Only one default xsl:decimal-format declaration is allowed."}, 2244 2245 2246 2248 { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE, 2249 "xsl:decimal-format names must be unique. Name \"{0}\" has been duplicated."}, 2250 2251 2252 2254 { WG_ILLEGAL_ATTRIBUTE, 2255 "{0} has an illegal attribute: {1}"}, 2256 2257 2258 2260 { WG_COULD_NOT_RESOLVE_PREFIX, 2261 "Could not resolve namespace prefix: {0}. The node will be ignored."}, 2262 2263 2264 { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB, 2266 "xsl:stylesheet requires a 'version' attribute!"}, 2267 2268 2269 2271 { WG_ILLEGAL_ATTRIBUTE_NAME, 2272 "Illegal attribute name: {0}"}, 2273 2274 2275 { WG_ILLEGAL_ATTRIBUTE_VALUE, 2277 "Illegal value used for attribute {0}: {1}"}, 2278 2279 2280 2282 { WG_EMPTY_SECOND_ARG, 2283 "Resulting nodeset from second argument of document function is empty. Return an empty node-set."}, 2284 2285 2287 2291 2292 2293 { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML, 2295 "The value of the 'name' attribute of xsl:processing-instruction name must not be 'xml'"}, 2296 2297 2302 2303 { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME, 2305 "The value of the 'name' attribute of xsl:processing-instruction must be a valid NCName: {0}"}, 2306 2307 2313 2314 { WG_ILLEGAL_ATTRIBUTE_POSITION, 2316 "Cannot add attribute {0} after child nodes or before an element is produced. Attribute will be ignored."}, 2317 2318 2320 { "ui_language", "en"}, 2322 { "help_language", "en" }, 2323 { "language", "en" }, 2324 { "BAD_CODE", "Parameter to createMessage was out of bounds"}, 2325 { "FORMAT_FAILED", "Exception thrown during messageFormat call"}, 2326 { "version", ">>>>>>> Xalan Version "}, 2327 { "version2", "<<<<<<<"}, 2328 { "yes", "yes"}, 2329 { "line", "Line #"}, 2330 { "column","Column #"}, 2331 { "xsldone", "XSLProcessor: done"}, 2332 2333 2334 { "xslProc_option", "Xalan-J command line Process class options:"}, 2338 { "xslProc_option", "Xalan-J command line Process class options\u003a"}, 2339 { "xslProc_invalid_xsltc_option", "The option {0} is not supported in XSLTC mode."}, 2340 { "xslProc_invalid_xalan_option", "The option {0} can only be used with -XSLTC."}, 2341 { "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions."}, 2342 { "xslProc_common_options", "-Common Options-"}, 2343 { "xslProc_xalan_options", "-Options for Xalan-"}, 2344 { "xslProc_xsltc_options", "-Options for XSLTC-"}, 2345 { "xslProc_return_to_continue", "(press <return> to continue)"}, 2346 2347 { "optionXSLTC", " [-XSLTC (use XSLTC for transformation)]"}, 2353 { "optionIN", " [-IN inputXMLURL]"}, 2354 { "optionXSL", " [-XSL XSLTransformationURL]"}, 2355 { "optionOUT", " [-OUT outputFileName]"}, 2356 { "optionLXCIN", " [-LXCIN compiledStylesheetFileNameIn]"}, 2357 { "optionLXCOUT", " [-LXCOUT compiledStylesheetFileNameOutOut]"}, 2358 { "optionPARSER", " [-PARSER fully qualified class name of parser liaison]"}, 2359 { "optionE", " [-E (Do not expand entity refs)]"}, 2360 { "optionV", " [-E (Do not expand entity refs)]"}, 2361 { "optionQC", " [-QC (Quiet Pattern Conflicts Warnings)]"}, 2362 { "optionQ", " [-Q (Quiet Mode)]"}, 2363 { "optionLF", " [-LF (Use linefeeds only on output {default is CR/LF})]"}, 2364 { "optionCR", " [-CR (Use carriage returns only on output {default is CR/LF})]"}, 2365 { "optionESCAPE", " [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]"}, 2366 { "optionINDENT", " [-INDENT (Control how many spaces to indent {default is 0})]"}, 2367 { "optionTT", " [-TT (Trace the templates as they are being called.)]"}, 2368 { "optionTG", " [-TG (Trace each generation event.)]"}, 2369 { "optionTS", " [-TS (Trace each selection event.)]"}, 2370 { "optionTTC", " [-TTC (Trace the template children as they are being processed.)]"}, 2371 { "optionTCLASS", " [-TCLASS (TraceListener class for trace extensions.)]"}, 2372 { "optionVALIDATE", " [-VALIDATE (Set whether validation occurs. Validation is off by default.)]"}, 2373 { "optionEDUMP", " [-EDUMP {optional filename} (Do stackdump on error.)]"}, 2374 { "optionXML", " [-XML (Use XML formatter and add XML header.)]"}, 2375 { "optionTEXT", " [-TEXT (Use simple Text formatter.)]"}, 2376 { "optionHTML", " [-HTML (Use HTML formatter.)]"}, 2377 { "optionPARAM", " [-PARAM name expression (Set a stylesheet parameter)]"}, 2378 { "noParsermsg1", "XSL Process was not successful."}, 2379 { "noParsermsg2", "** Could not find parser **"}, 2380 { "noParsermsg3", "Please check your classpath."}, 2381 { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"}, 2382 { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"}, 2383 { "optionURIRESOLVER", " [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]"}, 2384 { "optionENTITYRESOLVER", " [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entities)]"}, 2385 { "optionCONTENTHANDLER", " [-CONTENTHANDLER full class name (ContentHandler to be used to serialize output)]"}, 2386 { "optionLINENUMBERS", " [-L use line numbers for source document]"}, 2387 2388 2390 2391 { "optionMEDIA", " [-MEDIA mediaType (use media attribute to find stylesheet associated with a document.)]"}, 2392 { "optionFLAVOR", " [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)] "}, { "optionDIAG", " [-DIAG (Print overall milliseconds transform took.)]"}, 2394 { "optionINCREMENTAL", " [-INCREMENTAL (request incremental DTM construction by setting http://xml.apache.org/xalan/features/incremental true.)]"}, 2395 { "optionNOOPTIMIMIZE", " [-NOOPTIMIMIZE (request no stylesheet optimization processing by setting http://xml.apache.org/xalan/features/optimize false.)]"}, 2396 { "optionRL", " [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]"}, 2397 { "optionXO", " [-XO [transletName] (assign the name to the generated translet)]"}, 2398 { "optionXD", " [-XD destinationDirectory (specify a destination directory for translet)]"}, 2399 { "optionXJ", " [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]"}, 2400 { "optionXP", " [-XP package (specifies a package name prefix for all generated translet classes)]"}, 2401 2402 { "optionXN", " [-XN (enables template inlining)]" }, 2408 { "optionXX", " [-XX (turns on additional debugging message output)]"}, 2409 { "optionXT" , " [-XT (use translet to transform if possible)]"}, 2410 { "diagTiming"," --------- Transform of {0} via {1} took {2} ms" }, 2411 { "recursionTooDeep","Template nesting too deep. nesting = {0}, template {1} {2}" }, 2412 { "nameIs", "name is" }, 2413 { "matchPatternIs", "match pattern is" } 2414 2415 }; 2416 2417 2419 2420 public static final String BAD_CODE = "BAD_CODE"; 2421 2422 2423 public static final String FORMAT_FAILED = "FORMAT_FAILED"; 2424 2425 2426 public static final String ERROR_STRING = "#error"; 2427 2428 2429 public static final String ERROR_HEADER = "Error: "; 2430 2431 2432 public static final String WARNING_HEADER = "Warning: "; 2433 2434 2435 public static final String XSL_HEADER = "XSLT "; 2436 2437 2438 public static final String XML_HEADER = "XML "; 2439 2440 2442 public static final String QUERY_HEADER = "PATTERN "; 2443 2444 2449 protected Object [][] getContents() { 2450 Object [][] commonCopy = new Object [contents.length][2]; 2454 for (int i = 0; i < contents.length; i++) { 2455 commonCopy[i][0] = contents[i][0]; 2456 commonCopy[i][1] = contents[i][1]; 2457 } 2458 return commonCopy; 2459 } 2460 2461 2469 public static final XSLTErrorResources loadResourceBundle(String className) 2470 throws MissingResourceException 2471 { 2472 2473 Locale locale = Locale.getDefault(); 2474 String suffix = getResourceSuffix(locale); 2475 2476 try 2477 { 2478 2479 return (XSLTErrorResources) ResourceBundle.getBundle(className 2481 + suffix, locale); 2482 } 2483 catch (MissingResourceException e) 2484 { 2485 try { 2487 2488 return (XSLTErrorResources) ResourceBundle.getBundle(className, 2491 new Locale ("en", "US")); 2492 } 2493 catch (MissingResourceException e2) 2494 { 2495 2496 throw new MissingResourceException ( 2499 "Could not load any resource bundles.", className, ""); 2500 } 2501 } 2502 } 2503 2504 2512 private static final String getResourceSuffix(Locale locale) 2513 { 2514 2515 String suffix = "_" + locale.getLanguage(); 2516 String country = locale.getCountry(); 2517 2518 if (country.equals("TW")) 2519 suffix += "_" + country; 2520 2521 return suffix; 2522 } 2523 2524 2525} 2526 | Popular Tags |