⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xslterrorresources.java

📁 java1.6众多例子参考
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      "The function name cannot be null."},    { ER_XPATH_RESOLVER_NEGATIVE_ARITY, 		      "The arity cannot be negative."},  // Warnings...    { WG_FOUND_CURLYBRACE,      "Found '}' but no attribute template open!"},    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,      "Warning: count attribute does not match an ancestor in xsl:number! Target = {0}"},    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,      "Old syntax: The name of the 'expr' attribute has been changed to 'select'."},    { WG_NO_LOCALE_IN_FORMATNUMBER,      "Xalan doesn't yet handle the locale name in the format-number function."},    { WG_LOCALE_NOT_FOUND,      "Warning: Could not find locale for xml:lang={0}"},    { WG_CANNOT_MAKE_URL_FROM,      "Can not make URL from: {0}"},    { WG_CANNOT_LOAD_REQUESTED_DOC,      "Can not load requested doc: {0}"},    { WG_CANNOT_FIND_COLLATOR,      "Could not find Collator for <sort xml:lang={0}"},    { WG_FUNCTIONS_SHOULD_USE_URL,      "Old syntax: the functions instruction should use a url of {0}"},    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,      "encoding not supported: {0}, using UTF-8"},    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,      "encoding not supported: {0}, using Java {1}"},    { WG_SPECIFICITY_CONFLICTS,      "Specificity conflicts found: {0} Last found in stylesheet will be used."},    { WG_PARSING_AND_PREPARING,      "========= Parsing and preparing {0} =========="},    { WG_ATTR_TEMPLATE,     "Attr Template, {0}"},    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,      "Match conflict between xsl:strip-space and xsl:preserve-space"},    { WG_ATTRIB_NOT_HANDLED,      "Xalan does not yet handle the {0} attribute!"},    { WG_NO_DECIMALFORMAT_DECLARATION,      "No declaration found for decimal format: {0}"},    { WG_OLD_XSLT_NS,     "Missing or incorrect XSLT Namespace. "},    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,      "Only one default xsl:decimal-format declaration is allowed."},    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,      "xsl:decimal-format names must be unique. Name \"{0}\" has been duplicated."},    { WG_ILLEGAL_ATTRIBUTE,      "{0} has an illegal attribute: {1}"},    { WG_COULD_NOT_RESOLVE_PREFIX,      "Could not resolve namespace prefix: {0}. The node will be ignored."},    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,      "xsl:stylesheet requires a 'version' attribute!"},    { WG_ILLEGAL_ATTRIBUTE_NAME,      "Illegal attribute name: {0}"},    { WG_ILLEGAL_ATTRIBUTE_VALUE,      "Illegal value used for attribute {0}: {1}"},    { WG_EMPTY_SECOND_ARG,      "Resulting nodeset from second argument of document function is empty. Return an empty node-set."},  //Following are the new WARNING keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)    // Note to translators:  "name" and "xsl:processing-instruction" are keywords    // and must not be translated.    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,      "The value of the 'name' attribute of xsl:processing-instruction name must not be 'xml'"},    // Note to translators:  "name" and "xsl:processing-instruction" are keywords    // and must not be translated.  "NCName" is an XML data-type and must not be    // translated.    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,      "The value of the ''name'' attribute of xsl:processing-instruction must be a valid NCName: {0}"},    // Note to translators:  This message is reported if the stylesheet that is    // being processed attempted to construct an XML document with an attribute in a    // place other than on an element.  The substitution text specifies the name of    // the attribute.    { WG_ILLEGAL_ATTRIBUTE_POSITION,      "Cannot add attribute {0} after child nodes or before an element is produced.  Attribute will be ignored."},    { NO_MODIFICATION_ALLOWED_ERR,      "An attempt is made to modify an object where modifications are not allowed."    },    //Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources properties file?  // Other miscellaneous text used inside the code...  { "ui_language", "en"},  {  "help_language",  "en" },  {  "language",  "en" },  { "BAD_CODE", "Parameter to createMessage was out of bounds"},  {  "FORMAT_FAILED", "Exception thrown during messageFormat call"},  {  "version", ">>>>>>> Xalan Version "},  {  "version2",  "<<<<<<<"},  {  "yes", "yes"},  { "line", "Line #"},  { "column","Column #"},  { "xsldone", "XSLProcessor: done"},  // Note to translators:  The following messages provide usage information  // for the Xalan Process command line.  "Process" is the name of a Java class,  // and should not be translated.  { "xslProc_option", "Xalan-J command line Process class options:"},  { "xslProc_option", "Xalan-J command line Process class options\u003a"},  { "xslProc_invalid_xsltc_option", "The option {0} is not supported in XSLTC mode."},  { "xslProc_invalid_xalan_option", "The option {0} can only be used with -XSLTC."},  { "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions."},  { "xslProc_common_options", "-Common Options-"},  { "xslProc_xalan_options", "-Options for Xalan-"},  { "xslProc_xsltc_options", "-Options for XSLTC-"},  { "xslProc_return_to_continue", "(press <return> to continue)"},   // Note to translators: The option name and the parameter name do not need to   // be translated. Only translate the messages in parentheses.  Note also that   // leading whitespace in the messages is used to indent the usage information   // for each option in the English messages.   // Do not translate the keywords: XSLTC, SAX, DOM and DTM.  { "optionXSLTC", "   [-XSLTC (use XSLTC for transformation)]"},  { "optionIN", "   [-IN inputXMLURL]"},  { "optionXSL", "   [-XSL XSLTransformationURL]"},  { "optionOUT",  "   [-OUT outputFileName]"},  { "optionLXCIN", "   [-LXCIN compiledStylesheetFileNameIn]"},  { "optionLXCOUT", "   [-LXCOUT compiledStylesheetFileNameOutOut]"},  { "optionPARSER", "   [-PARSER fully qualified class name of parser liaison]"},  {  "optionE", "   [-E (Do not expand entity refs)]"},  {  "optionV",  "   [-E (Do not expand entity refs)]"},  {  "optionQC", "   [-QC (Quiet Pattern Conflicts Warnings)]"},  {  "optionQ", "   [-Q  (Quiet Mode)]"},  {  "optionLF", "   [-LF (Use linefeeds only on output {default is CR/LF})]"},  {  "optionCR", "   [-CR (Use carriage returns only on output {default is CR/LF})]"},  { "optionESCAPE", "   [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]"},  { "optionINDENT", "   [-INDENT (Control how many spaces to indent {default is 0})]"},  { "optionTT", "   [-TT (Trace the templates as they are being called.)]"},  { "optionTG", "   [-TG (Trace each generation event.)]"},  { "optionTS", "   [-TS (Trace each selection event.)]"},  {  "optionTTC", "   [-TTC (Trace the template children as they are being processed.)]"},  { "optionTCLASS", "   [-TCLASS (TraceListener class for trace extensions.)]"},  { "optionVALIDATE", "   [-VALIDATE (Set whether validation occurs.  Validation is off by default.)]"},  { "optionEDUMP", "   [-EDUMP {optional filename} (Do stackdump on error.)]"},  {  "optionXML", "   [-XML (Use XML formatter and add XML header.)]"},  {  "optionTEXT", "   [-TEXT (Use simple Text formatter.)]"},  {  "optionHTML", "   [-HTML (Use HTML formatter.)]"},  {  "optionPARAM", "   [-PARAM name expression (Set a stylesheet parameter)]"},  {  "noParsermsg1", "XSL Process was not successful."},  {  "noParsermsg2", "** Could not find parser **"},  { "noParsermsg3",  "Please check your classpath."},  { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"},  { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},  { "optionURIRESOLVER", "   [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]"},  { "optionENTITYRESOLVER",  "   [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entities)]"},  { "optionCONTENTHANDLER",  "   [-CONTENTHANDLER full class name (ContentHandler to be used to serialize output)]"},  {  "optionLINENUMBERS",  "   [-L use line numbers for source document]"},  { "optionSECUREPROCESSING", "   [-SECURE (set the secure processing feature to true.)]"},    // Following are the new options added in XSLTErrorResources.properties files after Jdk 1.4 (Xalan 2.2-D11)  {  "optionMEDIA",  "   [-MEDIA mediaType (use media attribute to find stylesheet associated with a document.)]"},  {  "optionFLAVOR",  "   [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)] "}, // Added by sboag/scurcuru; experimental  { "optionDIAG", "   [-DIAG (Print overall milliseconds transform took.)]"},  { "optionINCREMENTAL",  "   [-INCREMENTAL (request incremental DTM construction by setting http://xml.apache.org/xalan/features/incremental true.)]"},  {  "optionNOOPTIMIMIZE",  "   [-NOOPTIMIMIZE (request no stylesheet optimization processing by setting http://xml.apache.org/xalan/features/optimize false.)]"},  { "optionRL",  "   [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]"},  {   "optionXO",  "   [-XO [transletName] (assign the name to the generated translet)]"},  {  "optionXD", "   [-XD destinationDirectory (specify a destination directory for translet)]"},  {  "optionXJ",  "   [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]"},  {   "optionXP",  "   [-XP package (specifies a package name prefix for all generated translet classes)]"},  //AddITIONAL  STRINGS that need L10n  // Note to translators:  The following message describes usage of a particular  // command-line option that is used to enable the "template inlining"  // optimization.  The optimization involves making a copy of the code  // generated for a template in another template that refers to it.  { "optionXN",  "   [-XN (enables template inlining)]" },  { "optionXX",  "   [-XX (turns on additional debugging message output)]"},  { "optionXT" , "   [-XT (use translet to transform if possible)]"},  { "diagTiming"," --------- Transform of {0} via {1} took {2} ms" },  { "recursionTooDeep","Template nesting too deep. nesting = {0}, template {1} {2}" },  { "nameIs", "name is" },  { "matchPatternIs", "match pattern is" }  };  }  // ================= INFRASTRUCTURE ======================  /** String for use when a bad error code was encountered.    */  public static final String BAD_CODE = "BAD_CODE";  /** String for use when formatting of the error string failed.   */  public static final String FORMAT_FAILED = "FORMAT_FAILED";  /** General error string.   */  public static final String ERROR_STRING = "#error";  /** String to prepend to error messages.  */  public static final String ERROR_HEADER = "Error: ";  /** String to prepend to warning messages.    */  public static final String WARNING_HEADER = "Warning: ";  /** String to specify the XSLT module.  */  public static final String XSL_HEADER = "XSLT ";  /** String to specify the XML parser module.  */  public static final String XML_HEADER = "XML ";  /** I don't think this is used any more.   * @deprecated  */  public static final String QUERY_HEADER = "PATTERN ";  /**   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior   *   of ResourceBundle.getBundle().   *   *   @param className the name of the class that implements the resource bundle.   *   @return the ResourceBundle   *   @throws MissingResourceException   */  public static final XSLTErrorResources loadResourceBundle(String className)          throws MissingResourceException  {    Locale locale = Locale.getDefault();    String suffix = getResourceSuffix(locale);    try    {      // first try with the given locale      return (XSLTErrorResources) ResourceBundle.getBundle(className              + suffix, locale);    }    catch (MissingResourceException e)    {      try  // try to fall back to en_US if we can't load      {        // Since we can't find the localized property file,        // fall back to en_US.        return (XSLTErrorResources) ResourceBundle.getBundle(className,                new Locale("en", "US"));      }      catch (MissingResourceException e2)      {        // Now we are really in trouble.        // very bad, definitely very bad...not going to get very far        throw new MissingResourceException(          "Could not load any resource bundles.", className, "");      }    }  }  /**   * Return the resource file suffic for the indicated locale   * For most locales, this will be based the language code.  However   * for Chinese, we do distinguish between Taiwan and PRC   *   * @param locale the locale   * @return an String suffix which canbe appended to a resource name   */  private static final String getResourceSuffix(Locale locale)  {    String suffix = "_" + locale.getLanguage();    String country = locale.getCountry();    if (country.equals("TW"))      suffix += "_" + country;    return suffix;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -