santiagopg    2002/12/04 12:47:22

  Modified:    java/src/org/apache/xalan/res Tag: jdk-1_4_2
                        XSLMessages.java XSLTErrorResources.java
                        XSLTInfo.properties
               java/src/org/apache/xalan/templates Tag: jdk-1_4_2
                        OutputProperties.java
               java/src/org/apache/xml/dtm/ref Tag: jdk-1_4_2
                        DTMManagerDefault.java
               java/src/org/apache/xpath/res Tag: jdk-1_4_2
                        XPATHErrorResources.java
  Added:       java/src/org/apache/xalan/res Tag: jdk-1_4_2
                        XSLTErrorResources_de.java
                        XSLTErrorResources_es.java
                        XSLTErrorResources_fr.java
                        XSLTErrorResources_it.java
                        XSLTErrorResources_ja.java
                        XSLTErrorResources_ko.java
                        XSLTErrorResources_sv.java
                        XSLTErrorResources_zh_CN.java
                        XSLTErrorResources_zh_TW.java
               java/src/org/apache/xml/utils/res Tag: jdk-1_4_2
                        XResourceBundleBase.java XResources_de.java
                        XResources_es.java XResources_fr.java
                        XResources_it.java XResources_ko.java
                        XResources_sv.java
               java/src/org/apache/xpath/res Tag: jdk-1_4_2
                        XPATHErrorResourceBundle.java
                        XPATHErrorResources_de.java
                        XPATHErrorResources_en.java
                        XPATHErrorResources_es.java
                        XPATHErrorResources_fr.java
                        XPATHErrorResources_it.java
                        XPATHErrorResources_ja.java
                        XPATHErrorResources_ko.java
                        XPATHErrorResources_sv.java
                        XPATHErrorResources_zh_CN.java
                        XPATHErrorResources_zh_TW.java
  Log:
   Committing patch from Ramesh Mandava ([EMAIL PROTECTED]). This
  patch provides translated localized messages in 9 languages + English,
  using ListResource bundle and standard property lookup.
  
   This patch also takes care of removing compile time dependency with
  Xerces in order to use Crimson as default parser (for JDK 1.4.2), and also
  of loading Xalan resource files without opening up container security
  permissions when Xalan is used inside a container (like J2EE).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.6.1   +47 -47    xml-xalan/java/src/org/apache/xalan/res/XSLMessages.java
  
  Index: XSLMessages.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/res/XSLMessages.java,v
  retrieving revision 1.9
  retrieving revision 1.9.6.1
  diff -u -r1.9 -r1.9.6.1
  --- XSLMessages.java  7 Jun 2002 17:13:54 -0000       1.9
  +++ XSLMessages.java  4 Dec 2002 20:47:17 -0000       1.9.6.1
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -10,7 +10,7 @@
    * are met:
    *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  + *    notice, this list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
  @@ -18,7 +18,7 @@
    *    distribution.
    *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
  @@ -26,7 +26,7 @@
    *
    * 4. The names "Xalan" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact [EMAIL PROTECTED]
    *
    * 5. Products derived from this software may not be called "Apache",
  @@ -56,6 +56,8 @@
    */
   package org.apache.xalan.res;
   
  +import org.apache.xml.utils.res.XResourceBundleBase;
  +
   import java.util.Locale;
   import java.util.ResourceBundle;
   import java.util.ListResourceBundle;
  @@ -75,10 +77,10 @@
     private Locale fLocale = Locale.getDefault();
   
     /** The language specific resource object for Xalan messages.  */
  -  private static ResourceBundle XSLTBundle = null;
  +  private static XResourceBundleBase XSLTBundle = null;
   
     /** The language specific resource object for XPath messages.  */
  -  private static ResourceBundle XPATHBundle = null;
  +  private static XResourceBundleBase XPATHBundle = null;
   
     /** The class name of the Xalan error message string table.    */
     private static final String XSLT_ERROR_RESOURCES =
  @@ -96,7 +98,7 @@
   
     /**
      * Set the Locale object to use.
  -   * 
  +   *
      * @param locale non-null reference to Locale object.
      */
      public void setLocale(Locale locale)
  @@ -106,7 +108,7 @@
   
     /**
      * Get the Locale object that is being used.
  -   * 
  +   *
      * @return non-null reference to Locale object.
      */
     public Locale getLocale()
  @@ -124,18 +126,18 @@
      *
      * @return The formatted warning string.
      */
  -  public static final String createXPATHWarning(int errorCode, Object 
args[])  //throws Exception 
  +  public static final String createXPATHWarning(int errorCode, Object 
args[])  //throws Exception
     {
   
       if (XPATHBundle == null)
         XPATHBundle =
  -        loadResourceBundle(XPATH_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XPATH_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XPATHBundle;
  +    XResourceBundleBase fResourceBundle = XPATHBundle;
   
       if (fResourceBundle != null)
       {
  -      String msgKey = XPATHErrorResources.getWarningKey(errorCode);
  +      String msgKey = fResourceBundle.getWarningKey(errorCode);
   
         return createXPATHMsg(fResourceBundle, msgKey, args);
       }
  @@ -153,25 +155,24 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createXPATHMessage(int errorCode, Object 
args[])  //throws Exception 
  +  public static final String createXPATHMessage(int errorCode, Object 
args[])  //throws Exception
     {
   
       if (XPATHBundle == null)
         XPATHBundle =
  -        loadResourceBundle(XPATH_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XPATH_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XPATHBundle;
  +    XResourceBundleBase fResourceBundle = XPATHBundle;
   
       if (fResourceBundle != null)
       {
  -      String msgKey = XPATHErrorResources.getMessageKey(errorCode);
  +      String msgKey = fResourceBundle.getMessageKey(errorCode);
   
         return createXPATHMsg(fResourceBundle, msgKey, args);
       }
       else
         return "Could not load any resource bundles.";
     }
  -  
     /**
      * Creates a message from the specified key and replacement
      * arguments, localized to the given locale.
  @@ -182,14 +183,14 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createXPATHMessage(String msgKey, Object 
args[])  //throws Exception 
  +  public static final String createXPATHMessage(String msgKey, Object 
args[])  //throws Exception
     {
   
       if (XPATHBundle == null)
         XPATHBundle =
  -        loadResourceBundle(XPATH_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XPATH_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XPATHBundle;
  +    XResourceBundleBase fResourceBundle = XPATHBundle;
   
       if (fResourceBundle != null)
       {
  @@ -199,7 +200,6 @@
         return "Could not load any resource bundles.";
     }
   
  -
     /**
      * Creates a message from the specified key and replacement
      * arguments, localized to the given locale.
  @@ -213,8 +213,8 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createXPATHMsg(ResourceBundle fResourceBundle,
  -                                            String msgKey, Object args[])  
//throws Exception 
  +  public static final String createXPATHMsg(XResourceBundleBase 
fResourceBundle,
  +                                            String msgKey, Object args[])  
//throws Exception
     {
   
       String fmsg = null;
  @@ -273,27 +273,25 @@
      * @param args      The arguments to be used as replacement text
      *                  in the message created.
      *
  -   * @return The formatted warning string.
  +   * @return The formatted message string.
      */
  -  public static final String createWarning(int errorCode, Object args[])  
//throws Exception 
  +  public static final String createMessage(String msgKey, Object args[])  
//throws Exception
     {
   
       if (XSLTBundle == null)
         XSLTBundle =
  -        loadResourceBundle(XSLT_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XSLT_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XSLTBundle;
  +    XResourceBundleBase fResourceBundle = XSLTBundle;
   
       if (fResourceBundle != null)
       {
  -      String msgKey = XSLTErrorResources.getWarningKey(errorCode);
  -
         return createMsg(fResourceBundle, msgKey, args);
       }
       else
         return "Could not load any resource bundles.";
     }
  -  
  +
     /**
      * Creates a message from the specified key and replacement
      * arguments, localized to the given locale.
  @@ -302,19 +300,21 @@
      * @param args      The arguments to be used as replacement text
      *                  in the message created.
      *
  -   * @return The formatted message string.
  +   * @return The formatted warning string.
      */
  -  public static final String createMessage(String msgKey, Object args[])  
//throws Exception 
  +  public static final String createWarning(int errorCode, Object args[])  
//throws Exception
     {
   
       if (XSLTBundle == null)
         XSLTBundle =
  -        loadResourceBundle(XSLT_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XSLT_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XSLTBundle;
  +    XResourceBundleBase fResourceBundle = XSLTBundle;
   
       if (fResourceBundle != null)
       {
  +      String msgKey = fResourceBundle.getWarningKey(errorCode);
  +
         return createMsg(fResourceBundle, msgKey, args);
       }
       else
  @@ -331,18 +331,18 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createMessage(int errorCode, Object args[])  
//throws Exception 
  +  public static final String createMessage(int errorCode, Object args[])  
//throws Exception
     {
   
       if (XSLTBundle == null)
         XSLTBundle =
  -        loadResourceBundle(XSLT_ERROR_RESOURCES);
  +        (XResourceBundleBase) loadResourceBundle(XSLT_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XSLTBundle;
  +    XResourceBundleBase fResourceBundle = XSLTBundle;
   
       if (fResourceBundle != null)
       {
  -      String msgKey = XSLTErrorResources.getMessageKey(errorCode);
  +      String msgKey = fResourceBundle.getMessageKey(errorCode);
   
         return createMsg(fResourceBundle, msgKey, args);
       }
  @@ -363,8 +363,8 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createMsg(ResourceBundle fResourceBundle,
  -                                       String msgKey, Object args[])  
//throws Exception 
  +  public static final String createMsg(XResourceBundleBase fResourceBundle,
  +                                       String msgKey, Object args[])  
//throws Exception
     {
   
       String fmsg = null;
  @@ -437,11 +437,11 @@
       int majorCode;
       int minorCode;
       String fmsg = null;
  -    ResourceBundle aResourceBundle = null;
  +    XResourceBundleBase aResourceBundle = null;
   
  -    aResourceBundle = loadResourceBundle(bundleName);
  +    aResourceBundle = (XResourceBundleBase) loadResourceBundle(bundleName);
   
  -    String msgKey = XSLTErrorResources.getMessageKey(errorCode);
  +    String msgKey = aResourceBundle.getMessageKey(errorCode);
       String msg = null;
   
       if (msgKey != null)
  @@ -499,19 +499,19 @@
      * @return the ResourceBundle
      * @throws MissingResourceException
      */
  -  public static final ResourceBundle loadResourceBundle(String className)
  +  public static final ListResourceBundle loadResourceBundle(String className)
             throws MissingResourceException
     {
   
       Locale locale = Locale.getDefault();
   
  -    // String suffix = getResourceSuffix(locale);  
  +    // String suffix = getResourceSuffix(locale);
       try
       {
   
         //System.out.println("resource " +className+suffix);
         // first try with the given locale
  -      return ResourceBundle.getBundle(className, locale);
  +      return (ListResourceBundle) ResourceBundle.getBundle(className, 
locale);
       }
       catch (MissingResourceException e)
       {
  @@ -520,7 +520,7 @@
   
           // Since we can't find the localized property file,
           // fall back to en_US.
  -        return ResourceBundle.getBundle(
  +        return (ListResourceBundle) ResourceBundle.getBundle(
             XSLT_ERROR_RESOURCES, new Locale("en", "US"));
         }
         catch (MissingResourceException e2)
  
  
  
  1.31.2.1  +2083 -264 
xml-xalan/java/src/org/apache/xalan/res/XSLTErrorResources.java
  
  Index: XSLTErrorResources.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/res/XSLTErrorResources.java,v
  retrieving revision 1.31
  retrieving revision 1.31.2.1
  diff -u -r1.31 -r1.31.2.1
  --- XSLTErrorResources.java   24 Sep 2002 19:05:31 -0000      1.31
  +++ XSLTErrorResources.java   4 Dec 2002 20:47:17 -0000       1.31.2.1
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -10,7 +10,7 @@
    * are met:
    *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  + *    notice, this list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
  @@ -18,7 +18,7 @@
    *    distribution.
    *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
  @@ -26,7 +26,7 @@
    *
    * 4. The names "Xalan" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact [EMAIL PROTECTED]
    *
    * 5. Products derived from this software may not be called "Apache",
  @@ -56,14 +56,16 @@
    */
   package org.apache.xalan.res;
   
  -import java.io.IOException;
  -import java.io.InputStream;
  -import java.text.DecimalFormat;
  -import java.util.Locale;
  +import org.apache.xml.utils.res.XResourceBundleBase;
  +
   import java.util.MissingResourceException;
  -import java.util.PropertyResourceBundle;
  +import java.util.Locale;
   import java.util.ResourceBundle;
   
  +import java.text.DecimalFormat;
  +
  +import org.apache.xalan.templates.Constants;
  +
   /**
    * Set up error messages.
    * We build a two dimensional array of message keys and
  @@ -74,19 +76,8 @@
    * fill in the actual message string. Follow the instructions
    * below.
    */
  -public class XSLTErrorResources extends PropertyResourceBundle
  +public class XSLTErrorResources extends XResourceBundleBase
   {
  -  public XSLTErrorResources()
  -     throws java.io.IOException
  -  {
  -    super(null);
  -  }
  -  
  -  public XSLTErrorResources(InputStream is) 
  -     throws java.io.IOException
  -  {
  -     super(is);
  -  }
   
     /** The error suffix for construction error property keys.   */
     public static final String ERROR_SUFFIX = "ER";
  @@ -94,17 +85,42 @@
     /** The warning suffix for construction error property keys.   */
     public static final String WARNING_SUFFIX = "WR";
   
  -//  /** Maximum error messages, this is needed to keep track of the number 
of messages.    */
  -//  public static final int MAX_CODE = 226;          
  -//
  -//  /** Maximum warnings, this is needed to keep track of the number of 
warnings.          */
  -//  public static final int MAX_WARNING = 26;
  -//
  -//  /** Maximum misc strings.   */
  -//  public static final int MAX_OTHERS = 45;
  -//
  -//  /** Maximum total warnings and error messages.          */
  -//  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  +    // New error messages were added after Xalan 2.2-D11
  +  /** Maximum error messages, this is needed to keep track of the number of 
messages.    */
  +  public static final int MAX_CODE = 253;
  +
  +  /** Maximum warnings, this is needed to keep track of the number of 
warnings.          */
  +  public static final int MAX_WARNING = 29;
  +
  +  /** Maximum misc strings.   */
  +  public static final int MAX_OTHERS = 55;
  +
  +  /** Maximum total warnings and error messages.          */
  +  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  +
  +  /** The lookup table for error messages.   */
  +  static final Object[][] contents =
  +    new Object[MAX_MESSAGES + MAX_OTHERS + 1][2];
  +
  +  /*
  +   * Now fill in the message keys.
  +   * This does not need to be updated. If MAX_CODE and MAX_WARNING
  +   * are correct, the keys will get filled in automatically with
  +   * the value ERxxxx (WRxxxx for warnings) where xxxx is a
  +   * formatted number corresponding to the error code (i.e. ER0001).
  +   */
  +  static
  +  {
  +    for (int i = 0; i < MAX_CODE + 1; i++)
  +    {
  +      contents[i][0] = getMKey(i);
  +    }
  +
  +    for (int i = 1; i < MAX_WARNING + 1; i++)
  +    {
  +      contents[i + MAX_CODE][0] = getWKey(i);
  +    }
  +  }
   
     /*
      * Now fill in the message text.
  @@ -115,963 +131,2335 @@
      */
   
     // Error messages...
  +
  +  /** Error message ID that has a null message, but takes in a single 
object.    */
     public static final int ERROR0000 = 0;
   
  +  static
  +  {
  +    contents[ERROR0000][1] = "{0}";
  +  }
   
     /** ER_NO_CURLYBRACE          */
     public static final int ER_NO_CURLYBRACE = 1;
   
  +  static
  +  {
  +    contents[ER_NO_CURLYBRACE][1] =
  +      "Error: Can not have '{' within expression";
  +  }
   
     /** ER_ILLEGAL_ATTRIBUTE          */
     public static final int ER_ILLEGAL_ATTRIBUTE = 2;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_ATTRIBUTE][1] = "{0} has an illegal attribute: {1}";
  +  }
   
     /** ER_NULL_SOURCENODE_APPLYIMPORTS          */
     public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;
   
  +  static
  +  {
  +    contents[ER_NULL_SOURCENODE_APPLYIMPORTS][1] =
  +      "sourceNode is null in xsl:apply-imports!";
  +  }
   
     /** ER_CANNOT_ADD          */
     public static final int ER_CANNOT_ADD = 4;
   
  +  static
  +  {
  +    contents[ER_CANNOT_ADD][1] = "Can not add {0} to {1}";
  +  }
   
     /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */
     public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;
   
  +  static
  +  {
  +    contents[ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES][1] =
  +      "sourceNode is null in handleApplyTemplatesInstruction!";
  +  }
   
     /** ER_NO_NAME_ATTRIB          */
     public static final int ER_NO_NAME_ATTRIB = 6;
   
  +  static
  +  {
  +    contents[ER_NO_NAME_ATTRIB][1] = "{0} must have a name attribute.";
  +  }
   
     /** ER_TEMPLATE_NOT_FOUND          */
     public static final int ER_TEMPLATE_NOT_FOUND = 7;
   
  +  static
  +  {
  +    contents[ER_TEMPLATE_NOT_FOUND][1] = "Could not find template named: 
{0}";
  +  }
   
     /** ER_CANT_RESOLVE_NAME_AVT          */
     public static final int ER_CANT_RESOLVE_NAME_AVT = 8;
   
  +  static
  +  {
  +    contents[ER_CANT_RESOLVE_NAME_AVT][1] =
  +      "Could not resolve name AVT in xsl:call-template.";
  +  }
   
     /** ER_REQUIRES_ATTRIB          */
     public static final int ER_REQUIRES_ATTRIB = 9;
   
  +  static
  +  {
  +    contents[ER_REQUIRES_ATTRIB][1] = "{0} requires attribute: {1}";
  +  }
   
     /** ER_MUST_HAVE_TEST_ATTRIB          */
     public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;
   
  +  static
  +  {
  +    contents[ER_MUST_HAVE_TEST_ATTRIB][1] =
  +      "{0} must have a 'test' attribute.";
  +  }
   
     /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */
     public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;
   
  +  static
  +  {
  +    contents[ER_BAD_VAL_ON_LEVEL_ATTRIB][1] =
  +      "Bad value on level attribute: {0}";
  +  }
   
     /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */
     public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;
   
  +  static
  +  {
  +    contents[ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML][1] =
  +      "processing-instruction name can not be 'xml'";
  +  }
   
     /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */
     public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;
   
  +  static
  +  {
  +    contents[ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME][1] =
  +      "processing-instruction name must be a valid NCName: {0}";
  +  }
   
     /** ER_NEED_MATCH_ATTRIB          */
     public static final int ER_NEED_MATCH_ATTRIB = 14;
   
  +  static
  +  {
  +    contents[ER_NEED_MATCH_ATTRIB][1] =
  +      "{0} must have a match attribute if it has a mode.";
  +  }
   
     /** ER_NEED_NAME_OR_MATCH_ATTRIB          */
     public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15;
   
  +  static
  +  {
  +    contents[ER_NEED_NAME_OR_MATCH_ATTRIB][1] =
  +      "{0} requires either a name or a match attribute.";
  +  }
   
     /** ER_CANT_RESOLVE_NSPREFIX          */
     public static final int ER_CANT_RESOLVE_NSPREFIX = 16;
   
  +  static
  +  {
  +    contents[ER_CANT_RESOLVE_NSPREFIX][1] =
  +      "Can not resolve namespace prefix: {0}";
  +  }
   
     /** ER_ILLEGAL_VALUE          */
     public static final int ER_ILLEGAL_VALUE = 17;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_VALUE][1] = "xml:space has an illegal value: {0}";
  +  }
   
     /** ER_NO_OWNERDOC          */
     public static final int ER_NO_OWNERDOC = 18;
   
  +  static
  +  {
  +    contents[ER_NO_OWNERDOC][1] =
  +      "Child node does not have an owner document!";
  +  }
   
     /** ER_ELEMTEMPLATEELEM_ERR          */
     public static final int ER_ELEMTEMPLATEELEM_ERR = 19;
   
  +  static
  +  {
  +    contents[ER_ELEMTEMPLATEELEM_ERR][1] = "ElemTemplateElement error: {0}";
  +  }
   
     /** ER_NULL_CHILD          */
     public static final int ER_NULL_CHILD = 20;
   
  +  static
  +  {
  +    contents[ER_NULL_CHILD][1] = "Trying to add a null child!";
  +  }
   
     /** ER_NEED_SELECT_ATTRIB          */
     public static final int ER_NEED_SELECT_ATTRIB = 21;
   
  +  static
  +  {
  +    contents[ER_NEED_SELECT_ATTRIB][1] = "{0} requires a select attribute.";
  +  }
   
     /** ER_NEED_TEST_ATTRIB          */
     public static final int ER_NEED_TEST_ATTRIB = 22;
   
  +  static
  +  {
  +    contents[ER_NEED_TEST_ATTRIB][1] =
  +      "xsl:when must have a 'test' attribute.";
  +  }
   
     /** ER_NEED_NAME_ATTRIB          */
     public static final int ER_NEED_NAME_ATTRIB = 23;
   
  +  static
  +  {
  +    contents[ER_NEED_NAME_ATTRIB][1] =
  +      "xsl:with-param must have a 'name' attribute.";
  +  }
   
     /** ER_NO_CONTEXT_OWNERDOC          */
     public static final int ER_NO_CONTEXT_OWNERDOC = 24;
   
  +  static
  +  {
  +    contents[ER_NO_CONTEXT_OWNERDOC][1] =
  +      "context does not have an owner document!";
  +  }
   
     /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */
     public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25;
   
  +  static
  +  {
  +    contents[ER_COULD_NOT_CREATE_XML_PROC_LIAISON][1] =
  +      "Could not create XML TransformerFactory Liaison: {0}";
  +  }
   
     /** ER_PROCESS_NOT_SUCCESSFUL          */
     public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;
   
  +  static
  +  {
  +    contents[ER_PROCESS_NOT_SUCCESSFUL][1] =
  +      "Xalan: Process was not successful.";
  +  }
   
     /** ER_NOT_SUCCESSFUL          */
     public static final int ER_NOT_SUCCESSFUL = 27;
   
  +  static
  +  {
  +    contents[ER_NOT_SUCCESSFUL][1] = "Xalan: was not successful.";
  +  }
   
     /** ER_ENCODING_NOT_SUPPORTED          */
     public static final int ER_ENCODING_NOT_SUPPORTED = 28;
   
  +  static
  +  {
  +    contents[ER_ENCODING_NOT_SUPPORTED][1] = "Encoding not supported: {0}";
  +  }
   
     /** ER_COULD_NOT_CREATE_TRACELISTENER          */
     public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;
   
  +  static
  +  {
  +    contents[ER_COULD_NOT_CREATE_TRACELISTENER][1] =
  +      "Could not create TraceListener: {0}";
  +  }
   
     /** ER_KEY_REQUIRES_NAME_ATTRIB          */
     public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;
   
  +  static
  +  {
  +    contents[ER_KEY_REQUIRES_NAME_ATTRIB][1] =
  +      "xsl:key requires a 'name' attribute!";
  +  }
   
     /** ER_KEY_REQUIRES_MATCH_ATTRIB          */
     public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;
   
  +  static
  +  {
  +    contents[ER_KEY_REQUIRES_MATCH_ATTRIB][1] =
  +      "xsl:key requires a 'match' attribute!";
  +  }
   
     /** ER_KEY_REQUIRES_USE_ATTRIB          */
     public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;
   
  +  static
  +  {
  +    contents[ER_KEY_REQUIRES_USE_ATTRIB][1] =
  +      "xsl:key requires a 'use' attribute!";
  +  }
   
     /** ER_REQUIRES_ELEMENTS_ATTRIB          */
     public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;
   
  +  static
  +  {
  +    contents[ER_REQUIRES_ELEMENTS_ATTRIB][1] =
  +      "(StylesheetHandler) {0} requires an 'elements' attribute!";
  +  }
   
     /** ER_MISSING_PREFIX_ATTRIB          */
     public static final int ER_MISSING_PREFIX_ATTRIB = 34;
   
  +  static
  +  {
  +    contents[ER_MISSING_PREFIX_ATTRIB][1] =
  +      "(StylesheetHandler) {0} attribute 'prefix' is missing";
  +  }
   
     /** ER_BAD_STYLESHEET_URL          */
     public static final int ER_BAD_STYLESHEET_URL = 35;
   
  +  static
  +  {
  +    contents[ER_BAD_STYLESHEET_URL][1] = "Stylesheet URL is bad: {0}";
  +  }
   
     /** ER_FILE_NOT_FOUND          */
     public static final int ER_FILE_NOT_FOUND = 36;
   
  +  static
  +  {
  +    contents[ER_FILE_NOT_FOUND][1] = "Stylesheet file was not found: {0}";
  +  }
   
     /** ER_IOEXCEPTION          */
     public static final int ER_IOEXCEPTION = 37;
   
  +  static
  +  {
  +    contents[ER_IOEXCEPTION][1] =
  +      "Had IO Exception with stylesheet file: {0}";
  +  }
   
     /** ER_NO_HREF_ATTRIB          */
     public static final int ER_NO_HREF_ATTRIB = 38;
   
  +  static
  +  {
  +    contents[ER_NO_HREF_ATTRIB][1] =
  +      "(StylesheetHandler) Could not find href attribute for {0}";
  +  }
   
     /** ER_STYLESHEET_INCLUDES_ITSELF          */
     public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;
   
  +  static
  +  {
  +    contents[ER_STYLESHEET_INCLUDES_ITSELF][1] =
  +      "(StylesheetHandler) {0} is directly or indirectly including itself!";
  +  }
   
     /** ER_PROCESSINCLUDE_ERROR          */
     public static final int ER_PROCESSINCLUDE_ERROR = 40;
   
  +  static
  +  {
  +    contents[ER_PROCESSINCLUDE_ERROR][1] =
  +      "StylesheetHandler.processInclude error, {0}";
  +  }
   
     /** ER_MISSING_LANG_ATTRIB          */
     public static final int ER_MISSING_LANG_ATTRIB = 41;
   
  +  static
  +  {
  +    contents[ER_MISSING_LANG_ATTRIB][1] =
  +      "(StylesheetHandler) {0} attribute 'lang' is missing";
  +  }
   
     /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */
     public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;
   
  +  static
  +  {
  +    contents[ER_MISSING_CONTAINER_ELEMENT_COMPONENT][1] =
  +      "(StylesheetHandler) misplaced {0} element?? Missing container element 
'component'";
  +  }
   
     /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */
     public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 43;
   
  +  static
  +  {
  +    contents[ER_CAN_ONLY_OUTPUT_TO_ELEMENT][1] =
  +      "Can only output to an Element, DocumentFragment, Document, or 
PrintWriter.";
  +  }
   
     /** ER_PROCESS_ERROR          */
     public static final int ER_PROCESS_ERROR = 44;
   
  +  static
  +  {
  +    contents[ER_PROCESS_ERROR][1] = "StylesheetRoot.process error";
  +  }
   
     /** ER_UNIMPLNODE_ERROR          */
     public static final int ER_UNIMPLNODE_ERROR = 45;
   
  +  static
  +  {
  +    contents[ER_UNIMPLNODE_ERROR][1] = "UnImplNode error: {0}";
  +  }
   
     /** ER_NO_SELECT_EXPRESSION          */
     public static final int ER_NO_SELECT_EXPRESSION = 46;
   
  +  static
  +  {
  +    contents[ER_NO_SELECT_EXPRESSION][1] =
  +      "Error! Did not find xpath select expression (-select).";
  +  }
   
     /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */
     public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR = 47;
   
  +  static
  +  {
  +    contents[ER_CANNOT_SERIALIZE_XSLPROCESSOR][1] =
  +      "Can not serialize an XSLProcessor!";
  +  }
   
     /** ER_NO_INPUT_STYLESHEET          */
     public static final int ER_NO_INPUT_STYLESHEET = 48;
   
  +  static
  +  {
  +    contents[ER_NO_INPUT_STYLESHEET][1] =
  +      "Stylesheet input was not specified!";
  +  }
   
     /** ER_FAILED_PROCESS_STYLESHEET          */
     public static final int ER_FAILED_PROCESS_STYLESHEET = 49;
   
  +  static
  +  {
  +    contents[ER_FAILED_PROCESS_STYLESHEET][1] =
  +      "Failed to process stylesheet!";
  +  }
   
     /** ER_COULDNT_PARSE_DOC          */
     public static final int ER_COULDNT_PARSE_DOC = 50;
   
  +  static
  +  {
  +    contents[ER_COULDNT_PARSE_DOC][1] = "Could not parse {0} document!";
  +  }
   
     /** ER_COULDNT_FIND_FRAGMENT          */
     public static final int ER_COULDNT_FIND_FRAGMENT = 51;
   
  +  static
  +  {
  +    contents[ER_COULDNT_FIND_FRAGMENT][1] = "Could not find fragment: {0}";
  +  }
   
     /** ER_NODE_NOT_ELEMENT          */
     public static final int ER_NODE_NOT_ELEMENT = 52;
   
  +  static
  +  {
  +    contents[ER_NODE_NOT_ELEMENT][1] =
  +      "Node pointed to by fragment identifier was not an element: {0}";
  +  }
   
     /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */
     public static final int ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 53;
   
  +  static
  +  {
  +    contents[ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB][1] =
  +      "for-each must have either a match or name attribute";
  +  }
   
     /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */
     public static final int ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 54;
   
  +  static
  +  {
  +    contents[ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB][1] =
  +      "templates must have either a match or name attribute";
  +  }
   
     /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */
     public static final int ER_NO_CLONE_OF_DOCUMENT_FRAG = 55;
   
  +  static
  +  {
  +    contents[ER_NO_CLONE_OF_DOCUMENT_FRAG][1] =
  +      "No clone of a document fragment!";
  +  }
   
     /** ER_CANT_CREATE_ITEM          */
     public static final int ER_CANT_CREATE_ITEM = 56;
   
  +  static
  +  {
  +    contents[ER_CANT_CREATE_ITEM][1] =
  +      "Can not create item in result tree: {0}";
  +  }
   
     /** ER_XMLSPACE_ILLEGAL_VALUE          */
     public static final int ER_XMLSPACE_ILLEGAL_VALUE = 57;
   
  +  static
  +  {
  +    contents[ER_XMLSPACE_ILLEGAL_VALUE][1] =
  +      "xml:space in the source XML has an illegal value: {0}";
  +  }
   
     /** ER_NO_XSLKEY_DECLARATION          */
     public static final int ER_NO_XSLKEY_DECLARATION = 58;
   
  +  static
  +  {
  +    contents[ER_NO_XSLKEY_DECLARATION][1] =
  +      "There is no xsl:key declaration for {0}!";
  +  }
   
     /** ER_CANT_CREATE_URL          */
     public static final int ER_CANT_CREATE_URL = 59;
   
  +  static
  +  {
  +    contents[ER_CANT_CREATE_URL][1] = "Error! Cannot create url for: {0}";
  +  }
   
     /** ER_XSLFUNCTIONS_UNSUPPORTED          */
     public static final int ER_XSLFUNCTIONS_UNSUPPORTED = 60;
   
  +  static
  +  {
  +    contents[ER_XSLFUNCTIONS_UNSUPPORTED][1] = "xsl:functions is 
unsupported";
  +  }
   
     /** ER_PROCESSOR_ERROR          */
     public static final int ER_PROCESSOR_ERROR = 61;
   
  +  static
  +  {
  +    contents[ER_PROCESSOR_ERROR][1] = "XSLT TransformerFactory Error";
  +  }
   
     /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */
     public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET = 62;
   
  +  static
  +  {
  +    contents[ER_NOT_ALLOWED_INSIDE_STYLESHEET][1] =
  +      "(StylesheetHandler) {0} not allowed inside a stylesheet!";
  +  }
   
     /** ER_RESULTNS_NOT_SUPPORTED          */
     public static final int ER_RESULTNS_NOT_SUPPORTED = 63;
   
  +  static
  +  {
  +    contents[ER_RESULTNS_NOT_SUPPORTED][1] =
  +      "result-ns no longer supported!  Use xsl:output instead.";
  +  }
   
     /** ER_DEFAULTSPACE_NOT_SUPPORTED          */
     public static final int ER_DEFAULTSPACE_NOT_SUPPORTED = 64;
   
  +  static
  +  {
  +    contents[ER_DEFAULTSPACE_NOT_SUPPORTED][1] =
  +      "default-space no longer supported!  Use xsl:strip-space or 
xsl:preserve-space instead.";
  +  }
   
     /** ER_INDENTRESULT_NOT_SUPPORTED          */
     public static final int ER_INDENTRESULT_NOT_SUPPORTED = 65;
   
  +  static
  +  {
  +    contents[ER_INDENTRESULT_NOT_SUPPORTED][1] =
  +      "indent-result no longer supported!  Use xsl:output instead.";
  +  }
   
     /** ER_ILLEGAL_ATTRIB          */
     public static final int ER_ILLEGAL_ATTRIB = 66;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_ATTRIB][1] =
  +      "(StylesheetHandler) {0} has an illegal attribute: {1}";
  +  }
   
     /** ER_UNKNOWN_XSL_ELEM          */
     public static final int ER_UNKNOWN_XSL_ELEM = 67;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_XSL_ELEM][1] = "Unknown XSL element: {0}";
  +  }
   
     /** ER_BAD_XSLSORT_USE          */
     public static final int ER_BAD_XSLSORT_USE = 68;
   
  +  static
  +  {
  +    contents[ER_BAD_XSLSORT_USE][1] =
  +      "(StylesheetHandler) xsl:sort can only be used with 
xsl:apply-templates or xsl:for-each.";
  +  }
   
     /** ER_MISPLACED_XSLWHEN          */
     public static final int ER_MISPLACED_XSLWHEN = 69;
   
  +  static
  +  {
  +    contents[ER_MISPLACED_XSLWHEN][1] =
  +      "(StylesheetHandler) misplaced xsl:when!";
  +  }
   
     /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */
     public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 70;
   
  +  static
  +  {
  +    contents[ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE][1] =
  +      "(StylesheetHandler) xsl:when not parented by xsl:choose!";
  +  }
   
     /** ER_MISPLACED_XSLOTHERWISE          */
     public static final int ER_MISPLACED_XSLOTHERWISE = 71;
   
  +  static
  +  {
  +    contents[ER_MISPLACED_XSLOTHERWISE][1] =
  +      "(StylesheetHandler) misplaced xsl:otherwise!";
  +  }
   
     /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */
     public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 72;
   
  +  static
  +  {
  +    contents[ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE][1] =
  +      "(StylesheetHandler) xsl:otherwise not parented by xsl:choose!";
  +  }
   
     /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */
     public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE = 73;
   
  +  static
  +  {
  +    contents[ER_NOT_ALLOWED_INSIDE_TEMPLATE][1] =
  +      "(StylesheetHandler) {0} is not allowed inside a template!";
  +  }
   
     /** ER_UNKNOWN_EXT_NS_PREFIX          */
     public static final int ER_UNKNOWN_EXT_NS_PREFIX = 74;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_EXT_NS_PREFIX][1] =
  +      "(StylesheetHandler) {0} extension namespace prefix {1} unknown";
  +  }
   
     /** ER_IMPORTS_AS_FIRST_ELEM          */
     public static final int ER_IMPORTS_AS_FIRST_ELEM = 75;
   
  +  static
  +  {
  +    contents[ER_IMPORTS_AS_FIRST_ELEM][1] =
  +      "(StylesheetHandler) Imports can only occur as the first elements in 
the stylesheet!";
  +  }
   
     /** ER_IMPORTING_ITSELF          */
     public static final int ER_IMPORTING_ITSELF = 76;
   
  +  static
  +  {
  +    contents[ER_IMPORTING_ITSELF][1] =
  +      "(StylesheetHandler) {0} is directly or indirectly importing itself!";
  +  }
   
     /** ER_XMLSPACE_ILLEGAL_VAL          */
     public static final int ER_XMLSPACE_ILLEGAL_VAL = 77;
   
  +  static
  +  {
  +    contents[ER_XMLSPACE_ILLEGAL_VAL][1] =
  +      "(StylesheetHandler) " + "xml:space has an illegal value: {0}";
  +  }
   
     /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */
     public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 78;
   
  +  static
  +  {
  +    contents[ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL][1] =
  +      "processStylesheet not succesfull!";
  +  }
   
     /** ER_SAX_EXCEPTION          */
     public static final int ER_SAX_EXCEPTION = 79;
   
  +  static
  +  {
  +    contents[ER_SAX_EXCEPTION][1] = "SAX Exception";
  +  }
   
     /** ER_FUNCTION_NOT_SUPPORTED          */
     public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
   
  +  static
  +  {
  +    contents[ER_FUNCTION_NOT_SUPPORTED][1] = "Function not supported!";
  +  }
   
     /** ER_XSLT_ERROR          */
     public static final int ER_XSLT_ERROR = 81;
   
  +  static
  +  {
  +    contents[ER_XSLT_ERROR][1] = "XSLT Error";
  +  }
   
     /** ER_CURRENCY_SIGN_ILLEGAL          */
     public static final int ER_CURRENCY_SIGN_ILLEGAL = 82;
   
  +  static
  +  {
  +    contents[ER_CURRENCY_SIGN_ILLEGAL][1] =
  +      "currency sign is not allowed in format pattern string";
  +  }
   
     /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */
     public static final int ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = 
83;
   
  +  static
  +  {
  +    contents[ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM][1] =
  +      "Document function not supported in Stylesheet DOM!";
  +  }
   
     /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */
     public static final int ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 84;
   
  +  static
  +  {
  +    contents[ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER][1] =
  +      "Can't resolve prefix of non-Prefix resolver!";
  +  }
   
     /** ER_REDIRECT_COULDNT_GET_FILENAME          */
     public static final int ER_REDIRECT_COULDNT_GET_FILENAME = 85;
   
  +  static
  +  {
  +    contents[ER_REDIRECT_COULDNT_GET_FILENAME][1] =
  +      "Redirect extension: Could not get filename - file or select attribute 
must return vald string.";
  +  }
   
     /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */
     public static final int ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 86;
   
  +  static
  +  {
  +    contents[ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT][1] =
  +      "Can not build FormatterListener in Redirect extension!";
  +  }
   
     /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */
     public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 87;
   
  +  static
  +  {
  +    contents[ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX][1] =
  +      "Prefix in exclude-result-prefixes is not valid: {0}";
  +  }
   
     /** ER_MISSING_NS_URI          */
     public static final int ER_MISSING_NS_URI = 88;
   
  +  static
  +  {
  +    contents[ER_MISSING_NS_URI][1] =
  +      "Missing namespace URI for specified prefix";
  +  }
   
     /** ER_MISSING_ARG_FOR_OPTION          */
     public static final int ER_MISSING_ARG_FOR_OPTION = 89;
   
  +  static
  +  {
  +    contents[ER_MISSING_ARG_FOR_OPTION][1] =
  +      "Missing argument for option: {0}";
  +  }
   
     /** ER_INVALID_OPTION          */
     public static final int ER_INVALID_OPTION = 90;
   
  +  static
  +  {
  +    contents[ER_INVALID_OPTION][1] = "Invalid option: {0}";
  +  }
   
     /** ER_MALFORMED_FORMAT_STRING          */
     public static final int ER_MALFORMED_FORMAT_STRING = 91;
   
  +  static
  +  {
  +    contents[ER_MALFORMED_FORMAT_STRING][1] = "Malformed format string: {0}";
  +  }
   
     /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */
     public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 92;
   
  +  static
  +  {
  +    contents[ER_STYLESHEET_REQUIRES_VERSION_ATTRIB][1] =
  +      "xsl:stylesheet requires a 'version' attribute!";
  +  }
   
     /** ER_ILLEGAL_ATTRIBUTE_VALUE          */
     public static final int ER_ILLEGAL_ATTRIBUTE_VALUE = 93;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_ATTRIBUTE_VALUE][1] =
  +      "Attribute: {0} has an illegal value: {1}";
  +  }
   
     /** ER_CHOOSE_REQUIRES_WHEN          */
     public static final int ER_CHOOSE_REQUIRES_WHEN = 94;
   
  +  static
  +  {
  +    contents[ER_CHOOSE_REQUIRES_WHEN][1] = "xsl:choose requires an xsl:when";
  +  }
   
     /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */
     public static final int ER_NO_APPLY_IMPORT_IN_FOR_EACH = 95;
   
  +  static
  +  {
  +    contents[ER_NO_APPLY_IMPORT_IN_FOR_EACH][1] =
  +      "xsl:apply-imports not allowed in a xsl:for-each";
  +  }
   
     /** ER_CANT_USE_DTM_FOR_OUTPUT          */
     public static final int ER_CANT_USE_DTM_FOR_OUTPUT = 96;
   
  +  static
  +  {
  +    contents[ER_CANT_USE_DTM_FOR_OUTPUT][1] =
  +      "Cannot use a DTMLiaison for an output DOM node... pass a 
org.apache.xpath.DOM2Helper instead!";
  +  }
   
     /** ER_CANT_USE_DTM_FOR_INPUT          */
     public static final int ER_CANT_USE_DTM_FOR_INPUT = 97;
   
  +  static
  +  {
  +    contents[ER_CANT_USE_DTM_FOR_INPUT][1] =
  +      "Cannot use a DTMLiaison for a input DOM node... pass a 
org.apache.xpath.DOM2Helper instead!";
  +  }
   
     /** ER_CALL_TO_EXT_FAILED          */
     public static final int ER_CALL_TO_EXT_FAILED = 98;
   
  +  static
  +  {
  +    contents[ER_CALL_TO_EXT_FAILED][1] =
  +      "Call to extension element failed: {0}";
  +  }
   
     /** ER_PREFIX_MUST_RESOLVE          */
     public static final int ER_PREFIX_MUST_RESOLVE = 99;
   
  +  static
  +  {
  +    contents[ER_PREFIX_MUST_RESOLVE][1] =
  +      "Prefix must resolve to a namespace: {0}";
  +  }
   
     /** ER_INVALID_UTF16_SURROGATE          */
     public static final int ER_INVALID_UTF16_SURROGATE = 100;
   
  +  static
  +  {
  +    contents[ER_INVALID_UTF16_SURROGATE][1] =
  +      "Invalid UTF-16 surrogate detected: {0} ?";
  +  }
   
     /** ER_XSLATTRSET_USED_ITSELF          */
     public static final int ER_XSLATTRSET_USED_ITSELF = 101;
   
  +  static
  +  {
  +    contents[ER_XSLATTRSET_USED_ITSELF][1] =
  +      "xsl:attribute-set {0} used itself, which will cause an infinite 
loop.";
  +  }
   
     /** ER_CANNOT_MIX_XERCESDOM          */
     public static final int ER_CANNOT_MIX_XERCESDOM = 102;
   
  +  static
  +  {
  +    contents[ER_CANNOT_MIX_XERCESDOM][1] =
  +      "Can not mix non Xerces-DOM input with Xerces-DOM output!";
  +  }
   
     /** ER_TOO_MANY_LISTENERS          */
     public static final int ER_TOO_MANY_LISTENERS = 103;
   
  +  static
  +  {
  +    contents[ER_TOO_MANY_LISTENERS][1] =
  +      "addTraceListenersToStylesheet - TooManyListenersException";
  +  }
   
     /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */
     public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
   
  +  static
  +  {
  +    contents[ER_IN_ELEMTEMPLATEELEM_READOBJECT][1] =
  +      "In ElemTemplateElement.readObject: {0}";
  +  }
   
     /** ER_DUPLICATE_NAMED_TEMPLATE          */
     public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
   
  +  static
  +  {
  +    contents[ER_DUPLICATE_NAMED_TEMPLATE][1] =
  +      "Found more than one template named: {0}";
  +  }
   
     /** ER_INVALID_KEY_CALL          */
     public static final int ER_INVALID_KEY_CALL = 106;
   
  -  
  +  static
  +  {
  +    contents[ER_INVALID_KEY_CALL][1] =
  +      "Invalid function call: recursive key() calls are not allowed";
  +  }
  +
     /** Variable is referencing itself          */
     public static final int ER_REFERENCING_ITSELF = 107;
   
  -  
  +  static
  +  {
  +    contents[ER_REFERENCING_ITSELF][1] =
  +      "Variable {0} is directly or indirectly referencing itself!";
  +  }
  +
     /** Illegal DOMSource input          */
     public static final int ER_ILLEGAL_DOMSOURCE_INPUT = 108;
   
  -     
  +  static
  +  {
  +    contents[ER_ILLEGAL_DOMSOURCE_INPUT][1] =
  +      "The input node can not be null for a DOMSource for newTemplates!";
  +  }
  +
        /** Class not found for option         */
     public static final int ER_CLASS_NOT_FOUND_FOR_OPTION = 109;
   
  -     
  +  static
  +  {
  +    contents[ER_CLASS_NOT_FOUND_FOR_OPTION][1] =
  +                     "Class file not found for option {0}";
  +  }
  +
        /** Required Element not found         */
     public static final int ER_REQUIRED_ELEM_NOT_FOUND = 110;
   
  -  
  +  static
  +  {
  +    contents[ER_REQUIRED_ELEM_NOT_FOUND][1] =
  +                     "Required Element not found: {0}";
  +  }
  +
     /** InputStream cannot be null         */
     public static final int ER_INPUT_CANNOT_BE_NULL = 111;
   
  -  
  +  static
  +  {
  +    contents[ER_INPUT_CANNOT_BE_NULL][1] =
  +                     "InputStream cannot be null";
  +  }
  +
     /** URI cannot be null         */
     public static final int ER_URI_CANNOT_BE_NULL = 112;
   
  -  
  +  static
  +  {
  +    contents[ER_URI_CANNOT_BE_NULL][1] =
  +                     "URI cannot be null";
  +  }
  +
     /** File cannot be null         */
     public static final int ER_FILE_CANNOT_BE_NULL = 113;
   
  -  
  -   /** InputSource cannot be null         */
  +  static
  +  {
  +    contents[ER_FILE_CANNOT_BE_NULL][1] =
  +                     "File cannot be null";
  +  }
  +
  +   /** InputSource cannot be null         */
     public static final int ER_SOURCE_CANNOT_BE_NULL = 114;
   
  -  
  +  static
  +  {
  +    contents[ER_SOURCE_CANNOT_BE_NULL][1] =
  +                     "InputSource cannot be null";
  +  }
  +
     /** Can't overwrite cause         */
     public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_OVERWRITE_CAUSE][1] =
  +                     "Cannot overwrite cause";
  +  }
  +
     /** Could not initialize BSF Manager        */
     public static final int ER_CANNOT_INIT_BSFMGR = 116;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_INIT_BSFMGR][1] =
  +                     "Could not initialize BSF Manager";
  +  }
  +
     /** Could not compile extension       */
     public static final int ER_CANNOT_CMPL_EXTENSN = 117;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_CMPL_EXTENSN][1] =
  +                     "Could not compile extension";
  +  }
  +
     /** Could not create extension       */
     public static final int ER_CANNOT_CREATE_EXTENSN = 118;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_CREATE_EXTENSN][1] =
  +      "Could not create extension: {0} because of: {1}";
  +  }
  +
     /** Instance method call to method {0} requires an Object instance as 
first argument       */
     public static final int ER_INSTANCE_MTHD_CALL_REQUIRES = 119;
   
  -  
  +  static
  +  {
  +    contents[ER_INSTANCE_MTHD_CALL_REQUIRES][1] =
  +      "Instance method call to method {0} requires an Object instance as 
first argument";
  +  }
  +
     /** Invalid element name specified       */
     public static final int ER_INVALID_ELEMENT_NAME = 120;
   
  -  
  +  static
  +  {
  +    contents[ER_INVALID_ELEMENT_NAME][1] =
  +      "Invalid element name specified {0}";
  +  }
  +
      /** Element name method must be static      */
     public static final int ER_ELEMENT_NAME_METHOD_STATIC = 121;
   
  -  
  +  static
  +  {
  +    contents[ER_ELEMENT_NAME_METHOD_STATIC][1] =
  +      "Element name method must be static {0}";
  +  }
  +
      /** Extension function {0} : {1} is unknown      */
     public static final int ER_EXTENSION_FUNC_UNKNOWN = 122;
   
  -  
  +  static
  +  {
  +    contents[ER_EXTENSION_FUNC_UNKNOWN][1] =
  +             "Extension function {0} : {1} is unknown";
  +  }
  +
      /** More than one best match for constructor for       */
     public static final int ER_MORE_MATCH_CONSTRUCTOR = 123;
   
  -  
  +  static
  +  {
  +    contents[ER_MORE_MATCH_CONSTRUCTOR][1] =
  +             "More than one best match for constructor for {0}";
  +  }
  +
      /** More than one best match for method      */
     public static final int ER_MORE_MATCH_METHOD = 124;
   
  -  
  +  static
  +  {
  +    contents[ER_MORE_MATCH_METHOD][1] =
  +             "More than one best match for method {0}";
  +  }
  +
      /** More than one best match for element method      */
     public static final int ER_MORE_MATCH_ELEMENT = 125;
   
  -  
  +  static
  +  {
  +    contents[ER_MORE_MATCH_ELEMENT][1] =
  +             "More than one best match for element method {0}";
  +  }
  +
      /** Invalid context passed to evaluate       */
     public static final int ER_INVALID_CONTEXT_PASSED = 126;
   
  -  
  +  static
  +  {
  +    contents[ER_INVALID_CONTEXT_PASSED][1] =
  +             "Invalid context passed to evaluate {0}";
  +  }
  +
      /** Pool already exists       */
     public static final int ER_POOL_EXISTS = 127;
   
  -  
  +  static
  +  {
  +    contents[ER_POOL_EXISTS][1] =
  +             "Pool already exists";
  +  }
  +
      /** No driver Name specified      */
     public static final int ER_NO_DRIVER_NAME = 128;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_DRIVER_NAME][1] =
  +             "No driver Name specified";
  +  }
  +
      /** No URL specified     */
     public static final int ER_NO_URL = 129;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_URL][1] =
  +             "No URL specified";
  +  }
  +
      /** Pool size is less than one    */
     public static final int ER_POOL_SIZE_LESSTHAN_ONE = 130;
   
  -  
  +  static
  +  {
  +    contents[ER_POOL_SIZE_LESSTHAN_ONE][1] =
  +             "Pool size is less than one!";
  +  }
  +
      /** Invalid driver name specified    */
     public static final int ER_INVALID_DRIVER = 131;
   
  -  
  +  static
  +  {
  +    contents[ER_INVALID_DRIVER][1] =
  +             "Invalid driver name specified!";
  +  }
  +
      /** Did not find the stylesheet root    */
     public static final int ER_NO_STYLESHEETROOT = 132;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_STYLESHEETROOT][1] =
  +             "Did not find the stylesheet root!";
  +  }
  +
      /** Illegal value for xml:space     */
     public static final int ER_ILLEGAL_XMLSPACE_VALUE = 133;
   
  -  
  +  static
  +  {
  +    contents[ER_ILLEGAL_XMLSPACE_VALUE][1] =
  +         "Illegal value for xml:space";
  +  }
  +
      /** processFromNode failed     */
     public static final int ER_PROCESSFROMNODE_FAILED = 134;
   
  -  
  +  static
  +  {
  +    contents[ER_PROCESSFROMNODE_FAILED][1] =
  +         "processFromNode failed";
  +  }
  +
      /** The resource [] could not load:     */
     public static final int ER_RESOURCE_COULD_NOT_LOAD = 135;
   
  -   
  -  
  +  static
  +  {
  +    contents[ER_RESOURCE_COULD_NOT_LOAD][1] =
  +        "The resource [ {0} ] could not load: {1} \n {2} \t {3}";
  +  }
  +
  +
      /** Buffer size <=0     */
     public static final int ER_BUFFER_SIZE_LESSTHAN_ZERO = 136;
   
  -  
  +  static
  +  {
  +    contents[ER_BUFFER_SIZE_LESSTHAN_ZERO][1] =
  +        "Buffer size <=0";
  +  }
  +
      /** Unknown error when calling extension    */
     public static final int ER_UNKNOWN_ERROR_CALLING_EXTENSION = 137;
   
  -  
  +  static
  +  {
  +    contents[ER_UNKNOWN_ERROR_CALLING_EXTENSION][1] =
  +        "Unknown error when calling extension";
  +  }
  +
      /** Prefix {0} does not have a corresponding namespace declaration    */
     public static final int ER_NO_NAMESPACE_DECL = 138;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_NAMESPACE_DECL][1] =
  +        "Prefix {0} does not have a corresponding namespace declaration";
  +  }
  +
      /** Element content not allowed for lang=javaclass   */
     public static final int ER_ELEM_CONTENT_NOT_ALLOWED = 139;
   
  -  
  +  static
  +  {
  +    contents[ER_ELEM_CONTENT_NOT_ALLOWED][1] =
  +        "Element content not allowed for lang=javaclass {0}";
  +  }
  +
      /** Stylesheet directed termination   */
     public static final int ER_STYLESHEET_DIRECTED_TERMINATION = 140;
   
  -  
  +  static
  +  {
  +    contents[ER_STYLESHEET_DIRECTED_TERMINATION][1] =
  +        "Stylesheet directed termination";
  +  }
  +
      /** 1 or 2   */
     public static final int ER_ONE_OR_TWO = 141;
   
  -  
  +  static
  +  {
  +    contents[ER_ONE_OR_TWO][1] =
  +        "1 or 2";
  +  }
  +
      /** 2 or 3   */
     public static final int ER_TWO_OR_THREE = 142;
   
  -  
  +  static
  +  {
  +    contents[ER_TWO_OR_THREE][1] =
  +        "2 or 3";
  +  }
  +
      /** Could not load {0} (check CLASSPATH), now using just the defaults   */
     public static final int ER_COULD_NOT_LOAD_RESOURCE = 143;
   
  -  
  +  static
  +  {
  +    contents[ER_COULD_NOT_LOAD_RESOURCE][1] =
  +        "Could not load {0} (check CLASSPATH), now using just the defaults";
  +  }
  +
      /** Cannot initialize default templates   */
     public static final int ER_CANNOT_INIT_DEFAULT_TEMPLATES = 144;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_INIT_DEFAULT_TEMPLATES][1] =
  +        "Cannot initialize default templates";
  +  }
  +
      /** Result should not be null   */
     public static final int ER_RESULT_NULL = 145;
   
  -    
  +  static
  +  {
  +    contents[ER_RESULT_NULL][1] =
  +        "Result should not be null";
  +  }
  +
      /** Result could not be set   */
     public static final int ER_RESULT_COULD_NOT_BE_SET = 146;
   
  -  
  +  static
  +  {
  +    contents[ER_RESULT_COULD_NOT_BE_SET][1] =
  +        "Result could not be set";
  +  }
  +
      /** No output specified   */
     public static final int ER_NO_OUTPUT_SPECIFIED = 147;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_OUTPUT_SPECIFIED][1] =
  +        "No output specified";
  +  }
  +
      /** Can't transform to a Result of type   */
     public static final int ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 148;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_TRANSFORM_TO_RESULT_TYPE][1] =
  +        "Can't transform to a Result of type {0}";
  +  }
  +
      /** Can't transform to a Source of type   */
     public static final int ER_CANNOT_TRANSFORM_SOURCE_TYPE = 149;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_TRANSFORM_SOURCE_TYPE][1] =
  +        "Can't transform a Source of type {0}";
  +  }
  +
      /** Null content handler  */
     public static final int ER_NULL_CONTENT_HANDLER = 150;
   
  -  
  +  static
  +  {
  +    contents[ER_NULL_CONTENT_HANDLER][1] =
  +        "Null content handler";
  +  }
  +
      /** Null error handler  */
     public static final int ER_NULL_ERROR_HANDLER = 151;
   
  -  
  +  static
  +  {
  +    contents[ER_NULL_ERROR_HANDLER][1] =
  +        "Null error handler";
  +  }
  +
      /** parse can not be called if the ContentHandler has not been set */
     public static final int ER_CANNOT_CALL_PARSE = 152;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_CALL_PARSE][1] =
  +        "parse can not be called if the ContentHandler has not been set";
  +  }
  +
      /**  No parent for filter */
     public static final int ER_NO_PARENT_FOR_FILTER = 153;
   
  -  
  -  
  +  static
  +  {
  +    contents[ER_NO_PARENT_FOR_FILTER][1] =
  +        "No parent for filter";
  +  }
  +
  +
      /**  No stylesheet found in: {0}, media */
     public static final int ER_NO_STYLESHEET_IN_MEDIA = 154;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_STYLESHEET_IN_MEDIA][1] =
  +         "No stylesheet found in: {0}, media= {1}";
  +  }
  +
      /**  No xml-stylesheet PI found in */
     public static final int ER_NO_STYLESHEET_PI = 155;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_STYLESHEET_PI][1] =
  +         "No xml-stylesheet PI found in: {0}";
  +  }
  +
      /**  No default implementation found */
     public static final int ER_NO_DEFAULT_IMPL = 156;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_DEFAULT_IMPL][1] =
  +         "No default implementation found ";
  +  }
  +
      /**  ChunkedIntArray({0}) not currently supported */
     public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
   
  -  
  +  static
  +  {
  +    contents[ER_CHUNKEDINTARRAY_NOT_SUPPORTED][1] =
  +       "ChunkedIntArray({0}) not currently supported";
  +  }
  +
      /**  Offset bigger than slot */
     public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
   
  -  
  +  static
  +  {
  +    contents[ER_OFFSET_BIGGER_THAN_SLOT][1] =
  +       "Offset bigger than slot";
  +  }
  +
      /**  Coroutine not available, id= */
     public static final int ER_COROUTINE_NOT_AVAIL = 159;
   
  -  
  +  static
  +  {
  +    contents[ER_COROUTINE_NOT_AVAIL][1] =
  +       "Coroutine not available, id={0}";
  +  }
  +
      /**  CoroutineManager recieved co_exit() request */
     public static final int ER_COROUTINE_CO_EXIT = 160;
   
  -  
  +  static
  +  {
  +    contents[ER_COROUTINE_CO_EXIT][1] =
  +       "CoroutineManager received co_exit() request";
  +  }
  +
      /**  co_joinCoroutineSet() failed */
     public static final int ER_COJOINROUTINESET_FAILED = 161;
   
  -  
  +  static
  +  {
  +    contents[ER_COJOINROUTINESET_FAILED][1] =
  +       "co_joinCoroutineSet() failed";
  +  }
  +
      /**  Coroutine parameter error () */
     public static final int ER_COROUTINE_PARAM = 162;
   
  -  
  +  static
  +  {
  +    contents[ER_COROUTINE_PARAM][1] =
  +       "Coroutine parameter error ({0})";
  +  }
  +
      /**  UNEXPECTED: Parser doTerminate answers  */
     public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
   
  -  
  +  static
  +  {
  +    contents[ER_PARSER_DOTERMINATE_ANSWERS][1] =
  +       "\nUNEXPECTED: Parser doTerminate answers {0}";
  +  }
  +
      /**  parse may not be called while parsing */
     public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_PARSE_CALL_WHILE_PARSING][1] =
  +       "parse may not be called while parsing";
  +  }
  +
      /**  Error: typed iterator for axis  {0} not implemented  */
     public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
   
  -  
  +  static
  +  {
  +    contents[ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED][1] =
  +       "Error: typed iterator for axis  {0} not implemented";
  +  }
  +
      /**  Error: iterator for axis {0} not implemented  */
     public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
   
  -  
  +  static
  +  {
  +    contents[ER_ITERATOR_AXIS_NOT_IMPLEMENTED][1] =
  +       "Error: iterator for axis {0} not implemented ";
  +  }
  +
      /**  Iterator clone not supported  */
     public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
   
  -  
  +  static
  +  {
  +    contents[ER_ITERATOR_CLONE_NOT_SUPPORTED][1] =
  +       "Iterator clone not supported";
  +  }
  +
      /**  Unknown axis traversal type  */
     public static final int ER_UNKNOWN_AXIS_TYPE = 168;
   
  -  
  +  static
  +  {
  +    contents[ER_UNKNOWN_AXIS_TYPE][1] =
  +       "Unknown axis traversal type: {0}";
  +  }
  +
      /**  Axis traverser not supported  */
     public static final int ER_AXIS_NOT_SUPPORTED = 169;
   
  -  
  +  static
  +  {
  +    contents[ER_AXIS_NOT_SUPPORTED][1] =
  +       "Axis traverser not supported: {0}";
  +  }
  +
      /**  No more DTM IDs are available  */
     public static final int ER_NO_DTMIDS_AVAIL = 170;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_DTMIDS_AVAIL][1] =
  +       "No more DTM IDs are available";
  +  }
  +
      /**  Not supported  */
     public static final int ER_NOT_SUPPORTED = 171;
   
  -  
  +  static
  +  {
  +    contents[ER_NOT_SUPPORTED][1] =
  +       "Not supported: {0}";
  +  }
  +
      /**  node must be non-null for getDTMHandleFromNode  */
     public static final int ER_NODE_NON_NULL = 172;
   
  -  
  +  static
  +  {
  +    contents[ER_NODE_NON_NULL][1] =
  +       "Node must be non-null for getDTMHandleFromNode";
  +  }
  +
      /**  Could not resolve the node to a handle  */
     public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
   
  -  
  +  static
  +  {
  +    contents[ER_COULD_NOT_RESOLVE_NODE][1] =
  +       "Could not resolve the node to a handle";
  +  }
  +
      /**  startParse may not be called while parsing */
     public static final int ER_STARTPARSE_WHILE_PARSING = 174;
   
  -  
  +  static
  +  {
  +    contents[ER_STARTPARSE_WHILE_PARSING][1] =
  +       "startParse may not be called while parsing";
  +  }
  +
      /**  startParse needs a non-null SAXParser  */
     public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
   
  -  
  +  static
  +  {
  +    contents[ER_STARTPARSE_NEEDS_SAXPARSER][1] =
  +       "startParse needs a non-null SAXParser";
  +  }
  +
      /**  could not initialize parser with */
     public static final int ER_COULD_NOT_INIT_PARSER = 176;
   
  -  
  +  static
  +  {
  +    contents[ER_COULD_NOT_INIT_PARSER][1] =
  +       "could not initialize parser with";
  +  }
  +
      /**  Value for property {0} should be a Boolean instance  */
     public static final int ER_PROPERTY_VALUE_BOOLEAN = 177;
   
  -  
  +  static
  +  {
  +    contents[ER_PROPERTY_VALUE_BOOLEAN][1] =
  +       "Value for property {0} should be a Boolean instance";
  +  }
  +
      /**  exception creating new instance for pool  */
     public static final int ER_EXCEPTION_CREATING_POOL = 178;
   
  -  
  +  static
  +  {
  +    contents[ER_EXCEPTION_CREATING_POOL][1] =
  +       "exception creating new instance for pool";
  +  }
  +
      /**  Path contains invalid escape sequence  */
     public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
   
  -  
  +  static
  +  {
  +    contents[ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE][1] =
  +       "Path contains invalid escape sequence";
  +  }
  +
      /**  Scheme is required!  */
     public static final int ER_SCHEME_REQUIRED = 180;
   
  -  
  +  static
  +  {
  +    contents[ER_SCHEME_REQUIRED][1] =
  +       "Scheme is required!";
  +  }
  +
      /**  No scheme found in URI  */
     public static final int ER_NO_SCHEME_IN_URI = 181;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_SCHEME_IN_URI][1] =
  +       "No scheme found in URI: {0}";
  +  }
  +
      /**  No scheme found in URI  */
     public static final int ER_NO_SCHEME_INURI = 182;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_SCHEME_INURI][1] =
  +       "No scheme found in URI";
  +  }
  +
      /**  Path contains invalid character:   */
     public static final int ER_PATH_INVALID_CHAR = 183;
   
  -  
  +  static
  +  {
  +    contents[ER_PATH_INVALID_CHAR][1] =
  +       "Path contains invalid character: {0}";
  +  }
  +
      /**  Cannot set scheme from null string  */
     public static final int ER_SCHEME_FROM_NULL_STRING = 184;
   
  -  
  +  static
  +  {
  +    contents[ER_SCHEME_FROM_NULL_STRING][1] =
  +       "Cannot set scheme from null string";
  +  }
  +
      /**  The scheme is not conformant. */
     public static final int ER_SCHEME_NOT_CONFORMANT = 185;
   
  -  
  +  static
  +  {
  +    contents[ER_SCHEME_NOT_CONFORMANT][1] =
  +       "The scheme is not conformant.";
  +  }
  +
      /**  Host is not a well formed address  */
     public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
   
  -  
  +  static
  +  {
  +    contents[ER_HOST_ADDRESS_NOT_WELLFORMED][1] =
  +       "Host is not a well formed address";
  +  }
  +
      /**  Port cannot be set when host is null  */
     public static final int ER_PORT_WHEN_HOST_NULL = 187;
   
  -  
  +  static
  +  {
  +    contents[ER_PORT_WHEN_HOST_NULL][1] =
  +       "Port cannot be set when host is null";
  +  }
  +
      /**  Invalid port number  */
     public static final int ER_INVALID_PORT = 188;
   
  -  
  +  static
  +  {
  +    contents[ER_INVALID_PORT][1] =
  +       "Invalid port number";
  +  }
  +
      /**  Fragment can only be set for a generic URI  */
     public static final int ER_FRAG_FOR_GENERIC_URI = 189;
   
  -  
  +  static
  +  {
  +    contents[ER_FRAG_FOR_GENERIC_URI][1] =
  +       "Fragment can only be set for a generic URI";
  +  }
  +
      /**  Fragment cannot be set when path is null  */
     public static final int ER_FRAG_WHEN_PATH_NULL = 190;
   
  -  
  +  static
  +  {
  +    contents[ER_FRAG_WHEN_PATH_NULL][1] =
  +       "Fragment cannot be set when path is null";
  +  }
  +
      /**  Fragment contains invalid character  */
     public static final int ER_FRAG_INVALID_CHAR = 191;
   
  -  
  - 
  -  
  +  static
  +  {
  +    contents[ER_FRAG_INVALID_CHAR][1] =
  +       "Fragment contains invalid character";
  +  }
  +
  +
  +
      /** Parser is already in use  */
     public static final int ER_PARSER_IN_USE = 192;
   
  -  
  +  static
  +  {
  +    contents[ER_PARSER_IN_USE][1] =
  +        "Parser is already in use";
  +  }
  +
      /** Parser is already in use  */
     public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_CHANGE_WHILE_PARSING][1] =
  +        "Cannot change {0} {1} while parsing";
  +  }
  +
      /** Self-causation not permitted  */
     public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
   
  -  
  +  static
  +  {
  +    contents[ER_SELF_CAUSATION_NOT_PERMITTED][1] =
  +        "Self-causation not permitted";
  +  }
  +
      /** src attribute not yet supported for  */
     public static final int ER_COULD_NOT_FIND_EXTERN_SCRIPT = 195;
   
  -  
  +  static
  +  {
  +    contents[ER_COULD_NOT_FIND_EXTERN_SCRIPT][1] =
  +         "Could not get to external script at {0}";
  +  }
  +
     /** The resource [] could not be found     */
     public static final int ER_RESOURCE_COULD_NOT_FIND = 196;
   
  -  
  +  static
  +  {
  +    contents[ER_RESOURCE_COULD_NOT_FIND][1] =
  +        "The resource [ {0} ] could not be found.\n {1}";
  +  }
  +
      /** output property not recognized:  */
     public static final int ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 197;
   
  -  
  +  static
  +  {
  +    contents[ER_OUTPUT_PROPERTY_NOT_RECOGNIZED][1] =
  +        "Output property not recognized: {0}";
  +  }
  +
      /** Userinfo may not be specified if host is not specified   */
     public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_USERINFO_IF_NO_HOST][1] =
  +        "Userinfo may not be specified if host is not specified";
  +  }
  +
      /** Port may not be specified if host is not specified   */
     public static final int ER_NO_PORT_IF_NO_HOST = 199;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_PORT_IF_NO_HOST][1] =
  +        "Port may not be specified if host is not specified";
  +  }
  +
      /** Query string cannot be specified in path and query string   */
     public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_QUERY_STRING_IN_PATH][1] =
  +        "Query string cannot be specified in path and query string";
  +  }
  +
      /** Fragment cannot be specified in both the path and fragment   */
     public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
   
  -  
  +  static
  +  {
  +    contents[ER_NO_FRAGMENT_STRING_IN_PATH][1] =
  +        "Fragment cannot be specified in both the path and fragment";
  +  }
  +
      /** Cannot initialize URI with empty parameters   */
     public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_INIT_URI_EMPTY_PARMS][1] =
  +        "Cannot initialize URI with empty parameters";
  +  }
  +
      /** Failed creating ElemLiteralResult instance   */
     public static final int ER_FAILED_CREATING_ELEMLITRSLT = 203;
   
  -  
  -   /** Value for {0} should contain a parsable number   */
  +  static
  +  {
  +    contents[ER_FAILED_CREATING_ELEMLITRSLT][1] =
  +        "Failed creating ElemLiteralResult instance";
  +  }
  +
  +  //Earlier (JDK 1.4 XALAN 2.2-D11) at key code '204' the key name was 
ER_PRIORITY_NOT_PARSABLE
  +  // In latest Xalan code base key name is  ER_VALUE_SHOULD_BE_NUMBER. This 
should also be taken care
  +  //in locale specific files like XSLTErrorResources_de.java, 
XSLTErrorResources_fr.java etc.
  +  //NOTE: Not only the key name but message has also been changed. 
  +
  +   /** Priority value does not contain a parsable number   */
     public static final int ER_VALUE_SHOULD_BE_NUMBER = 204;
   
  +  static
  +  {
  +    contents[ER_VALUE_SHOULD_BE_NUMBER][1] =
  +        "Value for {0} should contain a parsable number";
  +  }
   
  -  
      /**  Value for {0} should equal 'yes' or 'no'   */
     public static final int ER_VALUE_SHOULD_EQUAL = 205;
   
  - 
  +  static
  +  {
  +    contents[ER_VALUE_SHOULD_EQUAL][1] =
  +        " Value for {0} should equal yes or no";
  +  }
  +
      /**  Failed calling {0} method   */
     public static final int ER_FAILED_CALLING_METHOD = 206;
   
  -  
  +  static
  +  {
  +    contents[ER_FAILED_CALLING_METHOD][1] =
  +        " Failed calling {0} method";
  +  }
  +
      /** Failed creating ElemLiteralResult instance   */
     public static final int ER_FAILED_CREATING_ELEMTMPL = 207;
   
  -  
  -   /**  Characters are not allowed at this point in the document   */
  -  public static final int ER_CHARS_NOT_ALLOWED = 208;
  +  static
  +  {
  +    contents[ER_FAILED_CREATING_ELEMTMPL][1] =
  +        "Failed creating ElemTemplateElement instance";
  +  }
  +
  +   /**  Characters are not allowed at this point in the document   */
  +  public static final int ER_CHARS_NOT_ALLOWED = 208;
  +
  +  static
  +  {
  +    contents[ER_CHARS_NOT_ALLOWED][1] =
  +        "Characters are not allowed at this point in the document";
  +  }
  +
  +  /**  attribute is not allowed on the element   */
  +  public static final int ER_ATTR_NOT_ALLOWED = 209;
  +
  +  static
  +  {
  +    contents[ER_ATTR_NOT_ALLOWED][1] =
  +        "\"{0}\" attribute is not allowed on the {1} element!";
  +  }
  +
  +  /**  Method not yet supported    */
  +  public static final int ER_METHOD_NOT_SUPPORTED = 210;
  +
  +  static
  +  {
  +    contents[ER_METHOD_NOT_SUPPORTED][1] =
  +        "Method not yet supported ";
  +  }
  +
  +  /**  Bad value    */
  +  public static final int ER_BAD_VALUE = 211;
  +
  +  static
  +  {
  +    contents[ER_BAD_VALUE][1] =
  +     "{0} bad value {1} ";
  +  }
  +
  +  /**  attribute value not found   */
  +  public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  +
  +  static
  +  {
  +    contents[ER_ATTRIB_VALUE_NOT_FOUND][1] =
  +     "{0} attribute value not found ";
  +  }
  +
  +  /**  attribute value not recognized    */
  +  public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
  +
  +  static
  +  {
  +    contents[ER_ATTRIB_VALUE_NOT_RECOGNIZED][1] =
  +     "{0} attribute value not recognized ";
  +  }
  +
  +  /** IncrementalSAXSource_Filter not currently restartable   */
  +  public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  +
  +  static
  +  {
  +    contents[ER_INCRSAXSRCFILTER_NOT_RESTARTABLE][1] =
  +     "IncrementalSAXSource_Filter not currently restartable";
  +  }
  +
  +  /** IncrementalSAXSource_Filter not currently restartable   */
  +  public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  +
  +  static
  +  {
  +    contents[ER_XMLRDR_NOT_BEFORE_STARTPARSE][1] =
  +     "XMLReader not before startParse request";
  +  }
  +
  +  /** Attempting to generate a namespace prefix with a null URI   */
  +  public static final int ER_NULL_URI_NAMESPACE = 216;
  +
  +  static
  +  {
  +    contents[ER_NULL_URI_NAMESPACE][1] =
  +     "Attempting to generate a namespace prefix with a null URI";
  +  }
  +
  +  //New ERROR keys added in XALAN code base after Jdk 1.4 (Xalan 2.2-D11)
  +
  +  /** Attempting to generate a namespace prefix with a null URI   */
  +  public static final int ER_NUMBER_TOO_BIG = 217;
  +
  +  static
  +  {
  +    contents[ER_NUMBER_TOO_BIG][1] =
  +     "Attempting to format a number bigger than the largest Long integer";
  +  }
  +
  +//ER_CANNOT_FIND_SAX1_DRIVER
  +
  +  public static final int  ER_CANNOT_FIND_SAX1_DRIVER = 218;
  +
  +  static
  +  {
  +    contents[ER_CANNOT_FIND_SAX1_DRIVER][1] =
  +     "Cannot find SAX1 driver class {0}";
  +  }
  +
  +//ER_SAX1_DRIVER_NOT_LOADED
  +  public static final int  ER_SAX1_DRIVER_NOT_LOADED = 219;
  +
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_LOADED][1] =
  +     "SAX1 driver class {0} found but cannot be loaded";
  +  }
  +
  +//ER_SAX1_DRIVER_NOT_INSTANTIATED
  +  public static final int  ER_SAX1_DRIVER_NOT_INSTANTIATED = 220 ;
  +
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_INSTANTIATED][1] =
  +     "SAX1 driver class {0} loaded but cannot be instantiated";
  +  }
  +
  +
  +// ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER
  +  public static final int ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 221;
  +
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER][1] =
  +     "SAX1 driver class {0} does not implement org.xml.sax.Parser";
  +  }
  +
  +// ER_PARSER_PROPERTY_NOT_SPECIFIED
  +  public static final int  ER_PARSER_PROPERTY_NOT_SPECIFIED = 222;
  +
  +  static
  +  {
  +    contents[ER_PARSER_PROPERTY_NOT_SPECIFIED][1] =
  +     "System property org.xml.sax.parser not specified";
  +  }
  +
  +//ER_PARSER_ARG_CANNOT_BE_NULL
  +  public static final int  ER_PARSER_ARG_CANNOT_BE_NULL = 223 ;
  +
  +  static
  +  {
  +    contents[ER_PARSER_ARG_CANNOT_BE_NULL][1] =
  +     "Parser argument must not be null";
  +  }
  +
   
  -  
  -  /**  attribute is not allowed on the element   */
  -  public static final int ER_ATTR_NOT_ALLOWED = 209;
  +// ER_FEATURE
  +  public static final int  ER_FEATURE = 224;
   
  -  
  -  /**  Method not yet supported    */
  -  public static final int ER_METHOD_NOT_SUPPORTED = 210;
  +  static
  +  {
  +    contents[ER_FEATURE][1] =
  +     "Feature:a {0}";
  +  }
   
  - 
  -  /**  Bad value    */
  -  public static final int ER_BAD_VALUE = 211;
   
  -  
  -  /**  attribute value not found   */
  -  public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  +// ER_PROPERTY
  +  public static final int ER_PROPERTY = 225 ;
   
  -  
  -  /**  attribute value not recognized    */
  -  public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
  +  static
  +  {
  +    contents[ER_PROPERTY][1] =
  +     "Property:a {0}";
  +  }
   
  +// ER_NULL_ENTITY_RESOLVER
  +  public static final int ER_NULL_ENTITY_RESOLVER  = 226;
   
  -  /** IncrementalSAXSource_Filter not currently restartable   */
  -  public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  +  static
  +  {
  +    contents[ER_NULL_ENTITY_RESOLVER][1] =
  +     "Null entity resolver";
  +  }
   
  -  
  -  /** IncrementalSAXSource_Filter not currently restartable   */
  -  public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  +// ER_NULL_DTD_HANDLER
  +  public static final int  ER_NULL_DTD_HANDLER = 227 ;
   
  -  
  -  /** Attempting to generate a namespace prefix with a null URI   */
  -  public static final int ER_NULL_URI_NAMESPACE = 216;
  +  static
  +  {
  +    contents[ER_NULL_DTD_HANDLER][1] =
  +     "Null DTD handler";
  +  }
   
  -  
  -  /** Attempting to generate a namespace prefix with a null URI   */
  -  public static final int ER_NUMBER_TOO_BIG = 217;
  -  
   // No Driver Name Specified!
     public static final int ER_NO_DRIVER_NAME_SPECIFIED = 228;
  +  static
  +  {
  +    contents[ER_NO_DRIVER_NAME_SPECIFIED][1] =
  +     "No Driver Name Specified!";
  +  }
  +
   
   // No URL Specified!
  -  public static final int ER_NO_URL_SPECIFIED = 229; 
  +  public static final int ER_NO_URL_SPECIFIED = 229;
  +  static
  +  {
  +    contents[ER_NO_URL_SPECIFIED][1] =
  +     "No URL Specified!";
  +  }
  +
   
   // Pool size is less than 1!
     public static final int ER_POOLSIZE_LESS_THAN_ONE = 230;
  +  static
  +  {
  +    contents[ER_POOLSIZE_LESS_THAN_ONE][1] =
  +     "Pool size is less than 1!";
  +  }
  +
   
   // Invalid Driver Name Specified!
     public static final int ER_INVALID_DRIVER_NAME = 231;
  +  static
  +  {
  +    contents[ER_INVALID_DRIVER_NAME][1] =
  +     "Invalid Driver Name Specified!";
  +  }
  +
  +
   
   // ErrorListener
     public static final int ER_ERRORLISTENER = 232;
  +  static
  +  {
  +    contents[ER_ERRORLISTENER][1] =
  +     "ErrorListener";
  +  }
  +
   
   // Programmer's error! expr has no ElemTemplateElement parent!
     public static final int ER_ASSERT_NO_TEMPLATE_PARENT = 233;
  +  static
  +  {
  +    contents[ER_ASSERT_NO_TEMPLATE_PARENT][1] =
  +     "Programmer's error! expr has no ElemTemplateElement parent!";
  +  }
  +
   
   // Programmer's assertion in RundundentExprEliminator: {0}
     public static final int ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 234;
  +  static
  +  {
  +    contents[ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR][1] =
  +     "Programmer's assertion in RundundentExprEliminator: {0}";
  +  }
   
   // Axis traverser not supported: {0}
     public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  +  static
  +  {
  +    contents[ER_AXIS_TRAVERSER_NOT_SUPPORTED][1] =
  +     "Axis traverser not supported: {0}";
  +  }
   
   // ListingErrorHandler created with null PrintWriter!
     public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 
236;
  +  static
  +  {
  +    contents[ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER][1] =
  +     "ListingErrorHandler created with null PrintWriter!";
  +  }
   
     // {0}is not allowed in this position in the stylesheet!
     public static final int ER_NOT_ALLOWED_IN_POSITION = 237;
  +  static
  +  {
  +    contents[ER_NOT_ALLOWED_IN_POSITION][1] =
  +     "{0} is not allowed in this position in the stylesheet!";
  +  }
   
     // Non-whitespace text is not allowed in this position in the stylesheet!
     public static final int ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 238;
  -  
  +  static
  +  {
  +    contents[ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION][1] =
  +     "Non-whitespace text is not allowed in this position in the 
stylesheet!";
  +  }
  +
     // This code is shared with warning codes.
     // Illegal value: {1} used for CHAR attribute: {0}.  An attribute of type 
CHAR must be only 1 character!
     public static final int INVALID_TCHAR = 239;
  -  
     // SystemId Unknown
  +  static
  +  {
  +    contents[INVALID_TCHAR][1] =
  +     "Illegal value: {1} used for CHAR attribute: {0}.  An attribute of type 
CHAR must be only 1 character!";
  +  }
  +
     public static final int ER_SYSTEMID_UNKNOWN = 240;
  -    
  -  // Location of error unknown  
  +  static
  +  {
  +    contents[ER_SYSTEMID_UNKNOWN][1] =
  +     "SystemId Unknown";
  +  }
  +
  +  // Location of error unknown
     public static final int ER_LOCATION_UNKNOWN = 241;
  -  
  -  //The following codes are shared with the warning codes... 
  +  static
  +  {
  +    contents[ER_LOCATION_UNKNOWN][1] =
  +     "Location of error unknown";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "QNAME" is the XML 
data-type of
  +    // the attribute, and should not be translated.  The substitution text 
{1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_QNAME
  +
  +  //The following codes are shared with the warning codes...
     // Illegal value: {1} used for QNAME attribute: {0}
  -  public static final int INVALID_QNAME = 242;   
  -   
  -  // Illegal value\u003a {1} used for ENUM attribute\u003a {0}.  Valid 
values are\u003a {2}.
  +  public static final int INVALID_QNAME = 242;
  +  static
  +  {
  +    contents[INVALID_QNAME][1] =
  +     "Illegal value:a {1} used for QNAME attribute:a {0}";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "ENUM" is the XML data-type 
of
  +    // the attribute, and should not be translated.  The substitution text 
{1} is
  +    // the attribute value, {0} is the attribute name, and {2} is a list of 
valid
  +    // values.
  +    // INVALID_ENUM
  +
  +  // Illegal value:a {1} used for ENUM attribute:a {0}.  Valid values are:a 
{2}.
     public static final int INVALID_ENUM = 243;
  -   
  -  // Illegal value\u003a {1} used for NMTOKEN attribute\u003a {0}. 
  +  static
  +  {
  +    contents[INVALID_ENUM][1] =
  +     "Illegal value:a {1} used for ENUM attribute:a {0}.  Valid values are:a 
{2}.";
  +  }
  +
  +// Note to translators:  The following message is used if the value of
  +// an attribute in a stylesheet is invalid.  "NMTOKEN" is the XML data-type
  +// of the attribute, and should not be translated.  The substitution text 
{1} is
  +// the attribute value and {0} is the attribute name.
  +// INVALID_NMTOKEN
  +
  +  // Illegal value:a {1} used for NMTOKEN attribute:a {0}.
     public static final int INVALID_NMTOKEN = 244;
  -      
  -  // Illegal value\u003a {1} used for NCNAME attribute\u003a {0}. 
  -  public static final int INVALID_NCNAME = 245;  
  -   
  -  // Illegal value\u003a {1} used for boolean attribute\u003a {0}. 
  -  public static final int INVALID_BOOLEAN = 246;  
  +  static
  +  {
  +    contents[INVALID_NMTOKEN][1] =
  +     "Illegal value:a {1} used for NMTOKEN attribute:a {0} ";
  +  }
  +
  +// Note to translators:  The following message is used if the value of
  +// an attribute in a stylesheet is invalid.  "NCNAME" is the XML data-type
  +// of the attribute, and should not be translated.  The substitution text 
{1} is
  +// the attribute value and {0} is the attribute name.
  +// INVALID_NCNAME
  +
  +  // Illegal value:a {1} used for NCNAME attribute:a {0}.
  +  public static final int INVALID_NCNAME = 245;
  +  static
  +  {
  +    contents[INVALID_NCNAME][1] =
  +     "Illegal value:a {1} used for NCNAME attribute:a {0} ";
  +  }
  +
  +// Note to translators:  The following message is used if the value of
  +// an attribute in a stylesheet is invalid.  "boolean" is the XSLT data-type
  +// of the attribute, and should not be translated.  The substitution text 
{1} is
  +// the attribute value and {0} is the attribute name.
  +// INVALID_BOOLEAN
  +
  +  // Illegal value:a {1} used for boolean attribute:a {0}.
  +  public static final int INVALID_BOOLEAN = 246;
  +
  +  static
  +  {
  +    contents[INVALID_BOOLEAN][1] =
  +     "Illegal value:a {1} used for boolean attribute:a {0} ";
  +  }
   
  -  // Illegal value\u003a {1} used for number attribute\u003a {0}. 
  +// Note to translators:  The following message is used if the value of
  +// an attribute in a stylesheet is invalid.  "number" is the XSLT data-type
  +// of the attribute, and should not be translated.  The substitution text 
{1} is
  +// the attribute value and {0} is the attribute name.
  +// INVALID_NUMBER
  +
  +  // Illegal value:a {1} used for number attribute:a {0}.
     public static final int INVALID_NUMBER = 247;
  +  static
  +  {
  +    contents[INVALID_NUMBER][1] =
  +     "Illegal value:a {1} used for number attribute:a {0} ";
  +  }
  +
   
  -  
     // End of shared codes...
  -  
  +
  +// Note to translators:  A "match pattern" is a special form of XPath 
expression
  +// that is used for matching patterns.  The substitution text is the name of
  +// a function.  The message indicates that when this function is referenced 
in
  +// a match pattern, its argument must be a string literal (or constant.)
  +// ER_ARG_LITERAL - new error message for bugzilla //5202
  +
     // Argument to {0} in match pattern must be a literal.
     public static final int ER_ARG_LITERAL             = 248;
  -  
  +  static
  +  {
  +    contents[ER_ARG_LITERAL][1] =
  +     "Argument to {0} in match pattern must be a literal.";
  +  }
  +
  +// Note to translators:  The following message indicates that two 
definitions of
  +// a variable.  A "global variable" is a variable that is accessible 
everywher
  +// in the stylesheet.
  +// ER_DUPLICATE_GLOBAL_VAR - new error message for bugzilla #790
  +
     // Duplicate global variable declaration.
     public static final int ER_DUPLICATE_GLOBAL_VAR    = 249;
  -  
  +  static
  +  {
  +    contents[ER_DUPLICATE_GLOBAL_VAR][1] =
  +     "Duplicate global variable declaration.";
  +  }
  +
  +
  +// Note to translators:  The following message indicates that two 
definitions of
  +// a variable were encountered.
  +// ER_DUPLICATE_VAR - new error message for bugzilla #790
  +
     // Duplicate variable declaration.
     public static final int ER_DUPLICATE_VAR           = 250;
  -  
  +  static
  +  {
  +    contents[ER_DUPLICATE_VAR][1] =
  +     "Duplicate variable declaration.";
  +  }
  +
  +    // Note to translators:  "xsl:template", "name" and "match" are XSLT 
keywords
  +    // which must not be translated.
  +    // ER_TEMPLATE_NAME_MATCH - new error message for bugzilla #789
  +
     // xsl:template must have a name or match attribute (or both)
  -  public static final int ER_TEMPLATE_NAME_MATCH     = 251;    
  -  
  -  // Prefix in exclude-result-prefixes is not valid\u003a {0}
  +  public static final int ER_TEMPLATE_NAME_MATCH     = 251;
  +  static
  +  {
  +    contents[ER_TEMPLATE_NAME_MATCH][1] =
  +     "xsl:atemplate must have a name or match attribute (or both)";
  +  }
  +
  +    // Note to translators:  "exclude-result-prefixes" is an XSLT keyword 
which
  +    // should not be translated.  The message indicates that a namespace 
prefix
  +    // encountered as part of the value of the exclude-result-prefixes 
attribute
  +    // was in error.
  +    // ER_INVALID_PREFIX - new error message for bugzilla #788
  +
  +  // Prefix in exclude-result-prefixes is not valid:a {0}
     public static final int ER_INVALID_PREFIX          = 252;
  -  
  +  static
  +  {
  +    contents[ER_INVALID_PREFIX][1] =
  +     "Prefix in exclude-result-prefixes is not valid:a {0}";
  +  }
  +
  +    // Note to translators:  An "attribute set" is a set of attributes that 
can be
  +    // added to an element in the output document as a group.  The message 
indicates
  +    // that there was a reference to an attribute set named {0} that was 
never
  +    // defined.
  +    // ER_NO_ATTRIB_SET - new error message for bugzilla #782
  +
     // attribute-set named {0} does not exist
     public static final int ER_NO_ATTRIB_SET           = 253;
  +  static
  +  {
  +    contents[ER_NO_ATTRIB_SET][1] =
  +     "attribute-set named {0} does not exist";
  +  }
   
   
   
  @@ -1079,192 +2467,623 @@
       /**  Cannot find SAX1 driver class    *
     public static final int ER_CANNOT_FIND_SAX1_DRIVER = 190;
   
  -  
  +  static
  +  {
  +    contents[ER_CANNOT_FIND_SAX1_DRIVER][1] =
  +      "Cannot find SAX1 driver class {0}";
  +  }
  +
      /**  SAX1 driver class {0} found but cannot be loaded    *
     public static final int ER_SAX1_DRIVER_NOT_LOADED = 191;
   
  -  
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_LOADED][1] =
  +      "SAX1 driver class {0} found but cannot be loaded";
  +  }
  +
      /**  SAX1 driver class {0} found but cannot be instantiated    *
     public static final int ER_SAX1_DRIVER_NOT_INSTANTIATED = 192;
   
  -  
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_INSTANTIATED][1] =
  +      "SAX1 driver class {0} loaded but cannot be instantiated";
  +  }
  +
      /**  SAX1 driver class {0} does not implement org.xml.sax.Parser    *
     public static final int ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 193;
   
  -  
  +  static
  +  {
  +    contents[ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER][1] =
  +      "SAX1 driver class {0} does not implement org.xml.sax.Parser";
  +  }
  +
      /**  System property org.xml.sax.parser not specified    *
     public static final int ER_PARSER_PROPERTY_NOT_SPECIFIED = 194;
   
  -  
  +  static
  +  {
  +    contents[ER_PARSER_PROPERTY_NOT_SPECIFIED][1] =
  +      "System property org.xml.sax.parser not specified";
  +  }
  +
      /**  Parser argument must not be null    *
     public static final int ER_PARSER_ARG_CANNOT_BE_NULL = 195;
   
  -  
  +  static
  +  {
  +    contents[ER_PARSER_ARG_CANNOT_BE_NULL][1] =
  +      "Parser argument must not be null";
  +  }
  +
      /**  Feature:    *
     public static final int ER_FEATURE = 196;
   
  -  
  +  static
  +  {
  +    contents[ER_FEATURE][1] =
  +        "Feature: {0}";
  +  }
  +
      /**  Property:    *
     public static final int ER_PROPERTY = 197;
   
  -  
  +  static
  +  {
  +    contents[ER_PROPERTY][1] =
  +        "Property: {0}";
  +  }
  +
      /** Null Entity Resolver  *
     public static final int ER_NULL_ENTITY_RESOLVER = 198;
   
  -  
  +  static
  +  {
  +    contents[ER_NULL_ENTITY_RESOLVER][1] =
  +        "Null entity resolver";
  +  }
  +
      /** Null DTD handler  *
     public static final int ER_NULL_DTD_HANDLER = 199;
   
  -  
  - */ 
  -  
  +  static
  +  {
  +    contents[ER_NULL_DTD_HANDLER][1] =
  +        "Null DTD handler";
  +  }
  +
  + */
  +
   
     // Warnings...
   
     /** WG_FOUND_CURLYBRACE          */
     public static final int WG_FOUND_CURLYBRACE = 1;
   
  +  static
  +  {
  +    contents[WG_FOUND_CURLYBRACE + MAX_CODE][1] =
  +      "Found '}' but no attribute template open!";
  +  }
   
     /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */
     public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 2;
   
  +  static
  +  {
  +    contents[WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR + MAX_CODE][1] =
  +      "Warning: count attribute does not match an ancestor in xsl:number! 
Target = {0}";
  +  }
   
     /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */
     public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 3;
   
  +  static
  +  {
  +    contents[WG_EXPR_ATTRIB_CHANGED_TO_SELECT + MAX_CODE][1] =
  +      "Old syntax: The name of the 'expr' attribute has been changed to 
'select'.";
  +  }
   
     /** WG_NO_LOCALE_IN_FORMATNUMBER          */
     public static final int WG_NO_LOCALE_IN_FORMATNUMBER = 4;
   
  +  static
  +  {
  +    contents[WG_NO_LOCALE_IN_FORMATNUMBER + MAX_CODE][1] =
  +      "Xalan doesn't yet handle the locale name in the format-number 
function.";
  +  }
   
     /** WG_LOCALE_NOT_FOUND          */
     public static final int WG_LOCALE_NOT_FOUND = 5;
   
  +  static
  +  {
  +    contents[WG_LOCALE_NOT_FOUND + MAX_CODE][1] =
  +      "Warning: Could not find locale for xml:lang={0}";
  +  }
   
     /** WG_CANNOT_MAKE_URL_FROM          */
     public static final int WG_CANNOT_MAKE_URL_FROM = 6;
   
  +  static
  +  {
  +    contents[WG_CANNOT_MAKE_URL_FROM + MAX_CODE][1] =
  +      "Can not make URL from: {0}";
  +  }
   
     /** WG_CANNOT_LOAD_REQUESTED_DOC          */
     public static final int WG_CANNOT_LOAD_REQUESTED_DOC = 7;
   
  +  static
  +  {
  +    contents[WG_CANNOT_LOAD_REQUESTED_DOC + MAX_CODE][1] =
  +      "Can not load requested doc: {0}";
  +  }
   
     /** WG_CANNOT_FIND_COLLATOR          */
     public static final int WG_CANNOT_FIND_COLLATOR = 8;
   
  +  static
  +  {
  +    contents[WG_CANNOT_FIND_COLLATOR + MAX_CODE][1] =
  +      "Could not find Collator for <sort xml:lang={0}";
  +  }
   
     /** WG_FUNCTIONS_SHOULD_USE_URL          */
     public static final int WG_FUNCTIONS_SHOULD_USE_URL = 9;
   
  +  static
  +  {
  +    contents[WG_FUNCTIONS_SHOULD_USE_URL + MAX_CODE][1] =
  +      "Old syntax: the functions instruction should use a url of {0}";
  +  }
   
     /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */
     public static final int WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 10;
   
  +  static
  +  {
  +    contents[WG_ENCODING_NOT_SUPPORTED_USING_UTF8 + MAX_CODE][1] =
  +      "encoding not supported: {0}, using UTF-8";
  +  }
   
     /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */
     public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 11;
   
  +  static
  +  {
  +    contents[WG_ENCODING_NOT_SUPPORTED_USING_JAVA + MAX_CODE][1] =
  +      "encoding not supported: {0}, using Java {1}";
  +  }
   
     /** WG_SPECIFICITY_CONFLICTS          */
     public static final int WG_SPECIFICITY_CONFLICTS = 12;
   
  +  static
  +  {
  +    contents[WG_SPECIFICITY_CONFLICTS + MAX_CODE][1] =
  +      "Specificity conflicts found: {0} Last found in stylesheet will be 
used.";
  +  }
   
     /** WG_PARSING_AND_PREPARING          */
     public static final int WG_PARSING_AND_PREPARING = 13;
   
  +  static
  +  {
  +    contents[WG_PARSING_AND_PREPARING + MAX_CODE][1] =
  +      "========= Parsing and preparing {0} ==========";
  +  }
   
     /** WG_ATTR_TEMPLATE          */
     public static final int WG_ATTR_TEMPLATE = 14;
   
  +  static
  +  {
  +    contents[WG_ATTR_TEMPLATE + MAX_CODE][1] = "Attr Template, {0}";
  +  }
   
     /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */
     public static final int 
WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE =
       15;
   
  +  static
  +  {
  +    contents[WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE + 
MAX_CODE][1] =
  +      "Match conflict between xsl:strip-space and xsl:preserve-space";
  +  }
   
     /** WG_ATTRIB_NOT_HANDLED          */
     public static final int WG_ATTRIB_NOT_HANDLED = 16;
   
  +  static
  +  {
  +    contents[WG_ATTRIB_NOT_HANDLED + MAX_CODE][1] =
  +      "Xalan does not yet handle the {0} attribute!";
  +  }
   
     /** WG_NO_DECIMALFORMAT_DECLARATION          */
     public static final int WG_NO_DECIMALFORMAT_DECLARATION = 17;
   
  +  static
  +  {
  +    contents[WG_NO_DECIMALFORMAT_DECLARATION + MAX_CODE][1] =
  +      "No declaration found for decimal format: {0}";
  +  }
   
     /** WG_OLD_XSLT_NS          */
     public static final int WG_OLD_XSLT_NS = 18;
   
  +  static
  +  {
  +    contents[WG_OLD_XSLT_NS + MAX_CODE][1] = "Missing or incorrect XSLT 
Namespace. ";
  +  }
   
     /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */
     public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 19;
   
  +  static
  +  {
  +    contents[WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED + MAX_CODE][1] =
  +      "Only one default xsl:decimal-format declaration is allowed.";
  +  }
   
     /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */
     public static final int WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 20;
   
  +  static
  +  {
  +    contents[WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE + MAX_CODE][1] =
  +      "xsl:decimal-format names must be unique. Name \"{0}\" has been 
duplicated.";
  +  }
   
     /** WG_ILLEGAL_ATTRIBUTE          */
     public static final int WG_ILLEGAL_ATTRIBUTE = 21;
   
  +  static
  +  {
  +    contents[WG_ILLEGAL_ATTRIBUTE + MAX_CODE][1] =
  +      "{0} has an illegal attribute: {1}";
  +  }
   
     /** WG_COULD_NOT_RESOLVE_PREFIX          */
     public static final int WG_COULD_NOT_RESOLVE_PREFIX = 22;
   
  +  static
  +  {
  +    contents[WG_COULD_NOT_RESOLVE_PREFIX + MAX_CODE][1] =
  +      "Could not resolve namespace prefix: {0}. The node will be ignored.";
  +  }
   
     /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */
     public static final int WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 23;
   
  +  static
  +  {
  +    contents[WG_STYLESHEET_REQUIRES_VERSION_ATTRIB + MAX_CODE][1] =
  +      "xsl:stylesheet requires a 'version' attribute!";
  +  }
   
     /** WG_ILLEGAL_ATTRIBUTE_NAME          */
     public static final int WG_ILLEGAL_ATTRIBUTE_NAME = 24;
   
  +  static
  +  {
  +    contents[WG_ILLEGAL_ATTRIBUTE_NAME + MAX_CODE][1] =
  +      "Illegal attribute name: {0}";
  +  }
   
     /** WG_ILLEGAL_ATTRIBUTE_VALUE          */
     public static final int WG_ILLEGAL_ATTRIBUTE_VALUE = 25;
   
  +  static
  +  {
  +    contents[WG_ILLEGAL_ATTRIBUTE_VALUE + MAX_CODE][1] =
  +      "Illegal value used for attribute {0}: {1}";
  +  }
   
     /** WG_EMPTY_SECOND_ARG          */
     public static final int WG_EMPTY_SECOND_ARG = 26;
  -  
  +
  +  static
  +  {
  +    contents[ WG_EMPTY_SECOND_ARG + MAX_CODE][1] =
  +      "Resulting nodeset from second argument of document function is empty. 
The first agument will be used.";
  +  }
  +
  +  //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
  +
  +
     /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */
     public static final int WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 27;
  -  
  +  static
  +  {
  +    contents[ WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML + MAX_CODE][1] =
  +      "The value of the 'name' attribute of xsl:aprocessing-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
  +
     /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */
  -  public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;  
  -  
  +  public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;
  +  static
  +  {
  +    contents[ WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME + MAX_CODE][1] =
  +      "The value of the 'name' attribute of xsl:aprocessing-instruction must 
be a valid NCName:a {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
  +
     /** WG_ILLEGAL_ATTRIBUTE_POSITION         */
     public static final int WG_ILLEGAL_ATTRIBUTE_POSITION = 29;
  -  
  -  
  -  //The following warning codes are shared with the error codes ... 
  +  static
  +  {
  +    contents[WG_ILLEGAL_ATTRIBUTE_POSITION + MAX_CODE][1] =
  +      "Cannot add attribute {0} after child nodes or before an element is 
produced.  Attribute will be ignored.";
  +  }
  +
  +    //Check: WHY THERE IS A GAP B/W NUMBERS in the XSLTErrorResources 
properties file?
  +
  +/**
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "CHAR" is the XSLT 
data-type of
  +    // the attribute, and should not be translated.  The substitution text 
{1} is
  +    // invalid value, and {0} is the attribute name.
  +    // INVALID_TCHAR
  +
  +  //The following warning codes are shared with the error codes ...
     // Illegal value: {1} used for CHAR attribute: {0}.  An attribute of type 
CHAR must be only 1 character!
     public static final int WG_INVALID_TCHAR = 239;
  -  
  -  
  +  static
  +  {
  +    contents[WG_INVALID_TCHAR + MAX_CODE][1] =
  +      "Illegal value: {1} used for CHAR attribute:a  {0}.  An attribute of 
type CHAR must be only 1 character!";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "QNAME" is the XML 
data-type of
  +    // the attribute, and should not be translated.  The substitution text 
{1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_QNAME
  +
     // Illegal value: {1} used for QNAME attribute: {0}
     public static final int WG_INVALID_QNAME = 242;
  -  
  -   
  -  // Illegal value\u003a {1} used for ENUM attribute\u003a {0}.  Valid 
values are\u003a {2}.
  +  static
  +  {
  +    contents[WG_INVALID_QNAME + MAX_CODE][1] =
  +      "Illegal value:a {1} used for QNAME attribute:a {0}";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "ENUM" is the XML data-type 
of
  +    // the attribute, and should not be translated.  The substitution text 
{1} is
  +    // the attribute value, {0} is the attribute name, and {2} is a list of 
valid
  +    // values.
  +    // INVALID_ENUM
  +
  +  // Illegal value:a {1} used for ENUM attribute:a {0}.  Valid values are:a 
{2}.
     public static final int WG_INVALID_ENUM = 243;
  -  
  -   
  -  // Illegal value\u003a {1} used for NMTOKEN attribute\u003a {0}. 
  +  static
  +  {
  +    contents[WG_INVALID_ENUM + MAX_CODE][1] =
  +      "Illegal value:a {1} used for ENUM attribute:a {0}.  Valid values 
are:a {2}.";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "NMTOKEN" is the XML 
data-type
  +    // of the attribute, and should not be translated.  The substitution 
text {1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_NMTOKEN
  +
  +  // Illegal value:a {1} used for NMTOKEN attribute:a {0}.
     public static final int WG_INVALID_NMTOKEN = 244;
  -  
  -      
  -  // Illegal value\u003a {1} used for NCNAME attribute\u003a {0}. 
  +  static
  +  {
  +    contents[WG_INVALID_NMTOKEN + MAX_CODE][1] =
  +      "Illegal value:a {1} used for NMTOKEN attribute:a {0} ";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "NCNAME" is the XML 
data-type
  +    // of the attribute, and should not be translated.  The substitution 
text {1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_NCNAME
  +
  +  // Illegal value:a {1} used for NCNAME attribute:a {0}.
     public static final int WG_INVALID_NCNAME = 245;
  -  
  -   
  -  // Illegal value\u003a {1} used for boolean attribute\u003a {0}. 
  +  static
  +  {
  +    contents[WG_INVALID_NCNAME + MAX_CODE][1] =
  +      "Illegal value:a {1} used for NCNAME attribute:a {0} ";
  +  }
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "boolean" is the XSLT 
data-type
  +    // of the attribute, and should not be translated.  The substitution 
text {1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_BOOLEAN
  +
  +  // Illegal value:a {1} used for boolean attribute:a {0}.
     public static final int WG_INVALID_BOOLEAN = 246;
  -  
  +  static
  +  {
  +    contents[WG_INVALID_BOOLEAN + MAX_CODE][1] =
  +      "Illegal value:a {1} used for boolean attribute:a {0} ";
  +  }
   
  -  // Illegal value\u003a {1} used for number attribute\u003a {0}. 
  +
  +    // Note to translators:  The following message is used if the value of
  +    // an attribute in a stylesheet is invalid.  "number" is the XSLT 
data-type
  +    // of the attribute, and should not be translated.  The substitution 
text {1} is
  +    // the attribute value and {0} is the attribute name.
  +    // INVALID_NUMBER
  +
  +  // Illegal value:a {1} used for number attribute:a {0}.
     public static final int WG_INVALID_NUMBER = 247;
  +  static
  +  {
  +    contents[ WG_INVALID_NUMBER + MAX_CODE][1] =
  +      "Illegal value:a {1} used for number attribute:a {0} ";
  +  }
  +
     // End of codes that are shared...
   
  +*/
     // Other miscellaneous text used inside the code...
  +  static
  +  {
  +    contents[MAX_MESSAGES][0] = "ui_language";
  +    contents[MAX_MESSAGES][1] = "en";
  +    contents[MAX_MESSAGES + 1][0] = "help_language";
  +    contents[MAX_MESSAGES + 1][1] = "en";
  +    contents[MAX_MESSAGES + 2][0] = "language";
  +    contents[MAX_MESSAGES + 2][1] = "en";
  +    contents[MAX_MESSAGES + 3][0] = "BAD_CODE";
  +    contents[MAX_MESSAGES + 3][1] =
  +      "Parameter to createMessage was out of bounds";
  +    contents[MAX_MESSAGES + 4][0] = "FORMAT_FAILED";
  +    contents[MAX_MESSAGES + 4][1] =
  +      "Exception thrown during messageFormat call";
  +    contents[MAX_MESSAGES + 5][0] = "version";
  +    contents[MAX_MESSAGES + 5][1] = ">>>>>>> Xalan Version ";
  +    contents[MAX_MESSAGES + 6][0] = "version2";
  +    contents[MAX_MESSAGES + 6][1] = "<<<<<<<";
  +    contents[MAX_MESSAGES + 7][0] = "yes";
  +    contents[MAX_MESSAGES + 7][1] = "yes";
  +    contents[MAX_MESSAGES + 8][0] = "line";
  +    contents[MAX_MESSAGES + 8][1] = "Line #";
  +    contents[MAX_MESSAGES + 9][0] = "column";
  +    contents[MAX_MESSAGES + 9][1] = "Column #";
  +    contents[MAX_MESSAGES + 10][0] = "xsldone";
  +    contents[MAX_MESSAGES + 10][1] = "XSLProcessor: done";
  +    contents[MAX_MESSAGES + 11][0] = "xslProc_option";
  +    contents[MAX_MESSAGES + 11][1] = "Xalan-J command line Process class 
options:";
  +    contents[MAX_MESSAGES + 12][0] = "optionIN";
  +    contents[MAX_MESSAGES + 12][1] = "    -IN inputXMLURL";
  +    contents[MAX_MESSAGES + 13][0] = "optionXSL";
  +    contents[MAX_MESSAGES + 13][1] = "   [-XSL XSLTransformationURL]";
  +    contents[MAX_MESSAGES + 14][0] = "optionOUT";
  +    contents[MAX_MESSAGES + 14][1] = "   [-OUT outputFileName]";
  +    contents[MAX_MESSAGES + 15][0] = "optionLXCIN";
  +    contents[MAX_MESSAGES + 15][1] =
  +      "   [-LXCIN compiledStylesheetFileNameIn]";
  +    contents[MAX_MESSAGES + 16][0] = "optionLXCOUT";
  +    contents[MAX_MESSAGES + 16][1] =
  +      "   [-LXCOUT compiledStylesheetFileNameOutOut]";
  +    contents[MAX_MESSAGES + 17][0] = "optionPARSER";
  +    contents[MAX_MESSAGES + 17][1] =
  +      "   [-PARSER fully qualified class name of parser liaison]";
  +    contents[MAX_MESSAGES + 18][0] = "optionE";
  +    contents[MAX_MESSAGES + 18][1] = "   [-E (Do not expand entity refs)]";
  +    contents[MAX_MESSAGES + 19][0] = "optionV";
  +    contents[MAX_MESSAGES + 19][1] = "   [-E (Do not expand entity refs)]";
  +    contents[MAX_MESSAGES + 20][0] = "optionQC";
  +    contents[MAX_MESSAGES + 20][1] =
  +      "   [-QC (Quiet Pattern Conflicts Warnings)]";
  +    contents[MAX_MESSAGES + 21][0] = "optionQ";
  +    contents[MAX_MESSAGES + 21][1] = "   [-Q  (Quiet Mode)]";
  +    contents[MAX_MESSAGES + 22][0] = "optionLF";
  +    contents[MAX_MESSAGES + 22][1] =
  +      "   [-LF (Use linefeeds only on output {default is CR/LF})]";
  +    contents[MAX_MESSAGES + 23][0] = "optionCR";
  +    contents[MAX_MESSAGES + 23][1] =
  +      "   [-CR (Use carriage returns only on output {default is CR/LF})]";
  +    contents[MAX_MESSAGES + 24][0] = "optionESCAPE";
  +    contents[MAX_MESSAGES + 24][1] =
  +      "   [-ESCAPE (Which characters to escape {default is <>&\"\'\\r\\n}]";
  +    contents[MAX_MESSAGES + 25][0] = "optionINDENT";
  +    contents[MAX_MESSAGES + 25][1] =
  +      "   [-INDENT (Control how many spaces to indent {default is 0})]";
  +    contents[MAX_MESSAGES + 26][0] = "optionTT";
  +    contents[MAX_MESSAGES + 26][1] =
  +      "   [-TT (Trace the templates as they are being called.)]";
  +    contents[MAX_MESSAGES + 27][0] = "optionTG";
  +    contents[MAX_MESSAGES + 27][1] =
  +      "   [-TG (Trace each generation event.)]";
  +    contents[MAX_MESSAGES + 28][0] = "optionTS";
  +    contents[MAX_MESSAGES + 28][1] = "   [-TS (Trace each selection 
event.)]";
  +    contents[MAX_MESSAGES + 29][0] = "optionTTC";
  +    contents[MAX_MESSAGES + 29][1] =
  +      "   [-TTC (Trace the template children as they are being processed.)]";
  +    contents[MAX_MESSAGES + 30][0] = "optionTCLASS";
  +    contents[MAX_MESSAGES + 30][1] =
  +      "   [-TCLASS (TraceListener class for trace extensions.)]";
  +    contents[MAX_MESSAGES + 31][0] = "optionVALIDATE";
  +    contents[MAX_MESSAGES + 31][1] =
  +      "   [-VALIDATE (Set whether validation occurs.  Validation is off by 
default.)]";
  +    contents[MAX_MESSAGES + 32][0] = "optionEDUMP";
  +    contents[MAX_MESSAGES + 32][1] =
  +      "   [-EDUMP {optional filename} (Do stackdump on error.)]";
  +    contents[MAX_MESSAGES + 33][0] = "optionXML";
  +    contents[MAX_MESSAGES + 33][1] =
  +      "   [-XML (Use XML formatter and add XML header.)]";
  +    contents[MAX_MESSAGES + 34][0] = "optionTEXT";
  +    contents[MAX_MESSAGES + 34][1] =
  +      "   [-TEXT (Use simple Text formatter.)]";
  +    contents[MAX_MESSAGES + 35][0] = "optionHTML";
  +    contents[MAX_MESSAGES + 35][1] = "   [-HTML (Use HTML formatter.)]";
  +    contents[MAX_MESSAGES + 36][0] = "optionPARAM";
  +    contents[MAX_MESSAGES + 36][1] =
  +      "   [-PARAM name expression (Set a stylesheet parameter)]";
  +    contents[MAX_MESSAGES + 37][0] = "noParsermsg1";
  +    contents[MAX_MESSAGES + 37][1] = "XSL Process was not successful.";
  +    contents[MAX_MESSAGES + 38][0] = "noParsermsg2";
  +    contents[MAX_MESSAGES + 38][1] = "** Could not find parser **";
  +    contents[MAX_MESSAGES + 39][0] = "noParsermsg3";
  +    contents[MAX_MESSAGES + 39][1] = "Please check your classpath.";
  +    contents[MAX_MESSAGES + 40][0] = "noParsermsg4";
  +    contents[MAX_MESSAGES + 40][1] =
  +      "If you don't have IBM's XML Parser for Java, you can download it 
from";
  +    contents[MAX_MESSAGES + 41][0] = "noParsermsg5";
  +    contents[MAX_MESSAGES + 41][1] =
  +      "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml";;
  +             contents[MAX_MESSAGES + 42][0] = "optionURIRESOLVER";
  +    contents[MAX_MESSAGES + 42][1] = "   [-URIRESOLVER full class name 
(URIResolver to be used to resolve URIs)]";
  +             contents[MAX_MESSAGES + 43][0] = "optionENTITYRESOLVER";
  +    contents[MAX_MESSAGES + 43][1] = "   [-ENTITYRESOLVER full class name 
(EntityResolver to be used to resolve entities)]";
  +             contents[MAX_MESSAGES + 44][0] = "optionCONTENTHANDLER";
  +    contents[MAX_MESSAGES + 44][1] = "   [-CONTENTHANDLER full class name 
(ContentHandler to be used to serialize output)]";
  +    contents[MAX_MESSAGES + 45][0] = "optionLINENUMBERS";
  +    contents[MAX_MESSAGES + 45][1] = "   [-L use line numbers for source 
document]";
  +
  +    // Following are the new options added in XSLTErrorResources.properties 
files after Jdk 1.4 (Xalan 2.2-D11)
  +
  +
  +    contents[MAX_MESSAGES + 46][0] = "optionMEDIA";
  +    contents[MAX_MESSAGES + 46][1] = " [-MEDIA mediaType (use media 
attribute to find stylesheet associated with a document.)]";
  +    contents[MAX_MESSAGES + 47][0] = "optionFLAVOR";
  +    contents[MAX_MESSAGES + 47][1] = " [-FLAVOR flavorName (Explicitly use 
s2s=SAX or d2d=DOM to do transform.)] "; // Added by sboag/scurcuru; 
experimental
  +    contents[MAX_MESSAGES + 48][0] = "optionDIAG";
  +    contents[MAX_MESSAGES + 48][1] = " [-DIAG (Print overall milliseconds 
transform took.)]";
  +    contents[MAX_MESSAGES + 49][0] = "optionINCREMENTAL";
  +    contents[MAX_MESSAGES + 49][1] = " [-INCREMENTAL (request incremental 
DTM construction by setting http://xml.apache.org/xalan/features/incremental 
true.)]";
  +    contents[MAX_MESSAGES + 50][0] = "optionNOOPTIMIMIZE";
  +    contents[MAX_MESSAGES + 50][1] = " [-NOOPTIMIMIZE (request no stylesheet 
optimization proccessing by setting 
http://xml.apache.org/xalan/features/optimize false.)]";
  +    contents[MAX_MESSAGES + 51][0] = "optionRL";
  +    contents[MAX_MESSAGES + 51][1] = " [-RL recursionlimit (assert numeric 
limit on stylesheet recursion depth.)]";
  +    contents[MAX_MESSAGES + 52][0] = "optionXO";
  +    contents[MAX_MESSAGES + 52][1] = " [-XO [transletName] (assign the name 
to the generated translet)]";
  +    contents[MAX_MESSAGES + 53][0] = "optionXD";
  +    contents[MAX_MESSAGES + 53][1] = " [-XD destinationDirectory (specify a 
destination directory for translet)]";
  +    contents[MAX_MESSAGES + 54][0] = "optionXJ";
  +    contents[MAX_MESSAGES + 54][1] = " [-XJ jarfile (packages translet 
classes into a jar file of name <jarfile>)]";
  +    contents[MAX_MESSAGES + 55][0] = "optionXP";
  +    contents[MAX_MESSAGES + 55][1] = " [-XP package (specifies a package 
name prefix for all generated translet classes)]";
  +
  +
  +  }
   
     // ================= INFRASTRUCTURE ======================
   
  @@ -1293,25 +3112,25 @@
      * @deprecated  */
     public static final String QUERY_HEADER = "PATTERN ";
   
  -//  /**
  -//   * Get the lookup table. 
  -//   *
  -//   * @return The int to message lookup table.
  -//   */
  -//  public Object[][] getContents()
  -//  {
  -//    return contents;
  -//  }
  +  /**
  +   * Get the lookup table.
  +   *
  +   * @return The int to message lookup table.
  +   */
  +  public Object[][] getContents()
  +  {
  +    return contents;
  +  }
   
     /**
      *   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 ResourceBundle loadResourceBundle(String className)
  +  public static final XSLTErrorResources loadResourceBundle(String className)
             throws MissingResourceException
     {
   
  @@ -1322,9 +3141,9 @@
       {
   
         // first try with the given locale
  -      return ResourceBundle.getBundle(className
  +      return (XSLTErrorResources) ResourceBundle.getBundle(className
                 + suffix, locale);
  -    } 
  +    }
       catch (MissingResourceException e)
       {
         try  // try to fall back to en_US if we can't load
  @@ -1332,7 +3151,7 @@
   
           // Since we can't find the localized property file,
           // fall back to en_US.
  -        return ResourceBundle.getBundle(className,
  +        return (XSLTErrorResources) ResourceBundle.getBundle(className,
                   new Locale("en", "US"));
         }
         catch (MissingResourceException e2)
  @@ -1371,15 +3190,15 @@
      *
      * @param errorCode Should be a valid error code less than [EMAIL 
PROTECTED] #MAX_CODE}.
      *
  -   * @return A string representation of the error code, or null if code is 
  +   * @return A string representation of the error code, or null if code is
      * greater than MAX_CODE.
      */
  -  public static String getMessageKey(int errorCode)
  +  public String getMessageKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_CODE)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -1392,15 +3211,15 @@
      *
      * @param errorCode Should be a valid warning code less than [EMAIL 
PROTECTED] #MAX_WARNING}.
      *
  -   * @return A string representation of the warning code, or null if code is 
  +   * @return A string representation of the warning code, or null if code is
      * greater than MAX_WARNING.
      */
  -  public static String getWarningKey(int errorCode)
  +  public String getWarningKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_WARNING)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -1413,14 +3232,14 @@
      *
      * @param errorCode Should be a valid error code less than [EMAIL 
PROTECTED] #MAX_CODE}.
      *
  -   * @return A string representation of the error code, or null if code is 
  +   * @return A string representation of the error code, or null if code is
      * greater than MAX_CODE.
      */
     public static String getMKey(int errorCode)
     {
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_CODE)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -1433,15 +3252,15 @@
      *
      * @param errorCode Should be a valid warning code less than [EMAIL 
PROTECTED] #MAX_WARNING}.
      *
  -   * @return A string representation of the warning code, or null if code is 
  +   * @return A string representation of the warning code, or null if code is
      * greater than MAX_WARNING.
      */
     public static String getWKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_WARNING)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  
  
  
  1.32.2.1  +2 -2      
xml-xalan/java/src/org/apache/xalan/res/XSLTInfo.properties
  
  Index: XSLTInfo.properties
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/res/XSLTInfo.properties,v
  retrieving revision 1.32
  retrieving revision 1.32.2.1
  diff -u -r1.32 -r1.32.2.1
  --- XSLTInfo.properties       31 Oct 2002 15:06:44 -0000      1.32
  +++ XSLTInfo.properties       4 Dec 2002 20:47:19 -0000       1.32.2.1
  @@ -10,5 +10,5 @@
   # Since XMLReaderFactory doesn't have it's own properties file, 
   # but simply reads the system properties, Xalan tries to load 
   # this value into the system properties.
  -org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
  -# org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
  \ No newline at end of file
  +#org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
  + org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +2563 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_de.java
  
  
  
  
  1.1.2.1   +2565 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_es.java
  
  
  
  
  1.1.2.1   +2560 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_fr.java
  
  
  
  
  1.1.2.1   +2565 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_it.java
  
  
  
  
  1.1.2.1   +2806 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_ja.java
  
  
  
  
  1.1.2.1   +2555 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_ko.java
  
  
  
  
  1.1.2.1   +2546 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_sv.java
  
  
  
  
  1.1.2.1   +2556 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_zh_CN.java
  
  
  
  
  1.1.2.1   +2555 -0   
xml-xalan/java/src/org/apache/xalan/res/Attic/XSLTErrorResources_zh_TW.java
  
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.22.2.1  +29 -7     
xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java
  
  Index: OutputProperties.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java,v
  retrieving revision 1.22
  retrieving revision 1.22.2.1
  diff -u -r1.22 -r1.22.2.1
  --- OutputProperties.java     3 Oct 2002 19:08:44 -0000       1.22
  +++ OutputProperties.java     4 Dec 2002 20:47:20 -0000       1.22.2.1
  @@ -66,6 +66,8 @@
   import java.util.Enumeration;
   
   import java.lang.Cloneable;
  +import java.security.AccessController;
  +import java.security.PrivilegedAction;
   
   import org.w3c.dom.Document;
   
  @@ -189,7 +191,7 @@
      * @param resourceName non-null reference to resource name.
      * @param defaults Default properties, which may be null.
      */
  -  static private Properties loadPropertiesFile(String resourceName, 
Properties defaults)
  +  static private Properties loadPropertiesFile(final String resourceName, 
Properties defaults)
       throws IOException
     {
   
  @@ -204,16 +206,36 @@
   
       try {
         try {
  -        java.lang.reflect.Method getCCL = 
Thread.class.getMethod("getContextClassLoader", NO_CLASSES);
  -        if (getCCL != null) {
  -          ClassLoader contextClassLoader = (ClassLoader) 
getCCL.invoke(Thread.currentThread(), NO_OBJS);
  -          is = 
contextClassLoader.getResourceAsStream("org/apache/xalan/templates/" + 
resourceName);
  -        }
  +     // Using doPrivileged to be able to read property file without opening
  +        // up secured container permissions like J2EE container
  +        is =(InputStream)AccessController.doPrivileged( new 
PrivilegedAction() {
  +          public Object run() {
  +            try {
  +              java.lang.reflect.Method getCCL = Thread.class.getMethod(
  +                  "getContextClassLoader", NO_CLASSES);
  +              if (getCCL != null) {
  +                ClassLoader contextClassLoader = (ClassLoader)
  +                    getCCL.invoke(Thread.currentThread(), NO_OBJS);
  +                return ( contextClassLoader.getResourceAsStream (
  +                    "org/apache/xalan/templates/" + resourceName) );
  +              }
  +            }
  +            catch ( Exception e ) { }
  +
  +            return null;
  +            
  +          } 
  +        });
         }
         catch (Exception e) {}
   
         if ( is == null ) {
  -        is = OutputProperties.class.getResourceAsStream(resourceName);
  +        is = (InputStream)AccessController.doPrivileged( new 
PrivilegedAction(){
  +       public Object run() {
  +            return OutputProperties.class.getResourceAsStream(resourceName);
  +          }
  +        });
  +
         }
         
         bis = new BufferedInputStream(is);
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.41.8.1  +3 -1      
xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java
  
  Index: DTMManagerDefault.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java,v
  retrieving revision 1.41
  retrieving revision 1.41.8.1
  diff -u -r1.41 -r1.41.8.1
  --- DTMManagerDefault.java    10 Apr 2002 13:30:42 -0000      1.41
  +++ DTMManagerDefault.java    4 Dec 2002 20:47:20 -0000       1.41.8.1
  @@ -391,7 +391,9 @@
             {
               // IncrementalSAXSource_Xerces to avoid threading.
               try {
  -              
coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();
  +            // Removing Xerces compile time dependency 
  +            //  
coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();
  +             coParser 
=(IncrementalSAXSource)Class.forName("org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces").newInstance();
               }  catch( Exception ex ) {
                 ex.printStackTrace();
                 coParser=null;
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +0 -0      
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResourceBundleBase.java
  
  
  
  
  1.1.2.1   +123 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_de.java
  
  
  
  
  1.1.2.1   +123 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_es.java
  
  
  
  
  1.1.2.1   +123 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_fr.java
  
  
  
  
  1.1.2.1   +123 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_it.java
  
  
  
  
  1.1.2.1   +126 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_ko.java
  
  
  
  
  1.1.2.1   +123 -0    
xml-xalan/java/src/org/apache/xml/utils/res/Attic/XResources_sv.java
  
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.1  +891 -117  
xml-xalan/java/src/org/apache/xpath/res/XPATHErrorResources.java
  
  Index: XPATHErrorResources.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/res/XPATHErrorResources.java,v
  retrieving revision 1.18
  retrieving revision 1.18.2.1
  diff -u -r1.18 -r1.18.2.1
  --- XPATHErrorResources.java  25 Oct 2002 17:41:51 -0000      1.18
  +++ XPATHErrorResources.java  4 Dec 2002 20:47:21 -0000       1.18.2.1
  @@ -56,13 +56,12 @@
    */
   package org.apache.xpath.res;
   
  -import java.io.IOException;
  -import java.io.InputStream;
  +import org.apache.xml.utils.res.XResourceBundleBase;
  +
  +
  +import java.util.*;
  +
   import java.text.DecimalFormat;
  -import java.util.Locale;
  -import java.util.MissingResourceException;
  -import java.util.PropertyResourceBundle;
  -import java.util.ResourceBundle;
   
   /**
    * <meta name="usage" content="advanced"/>
  @@ -75,20 +74,8 @@
    * fill in the actual message string. Follow the instructions
    * below.
    */
  -public class XPATHErrorResources extends PropertyResourceBundle
  +public class XPATHErrorResources extends XResourceBundleBase
   {
  -  
  -  public XPATHErrorResources()
  -     throws java.io.IOException
  -  {
  -    super(null);
  -  }
  -  
  -  public XPATHErrorResources(InputStream is) 
  -     throws java.io.IOException
  -  {
  -     super(is);
  -  }
   
     /** Field ERROR_SUFFIX          */
     public static final String ERROR_SUFFIX = "ER";
  @@ -96,21 +83,42 @@
     /** Field WARNING_SUFFIX          */
     public static final String WARNING_SUFFIX = "WR";
   
  -//  /** Field MAX_CODE          */
  -//  public static final int MAX_CODE = 84;  // this is needed to keep track 
of the number of messages          
  -//
  -//  /** Field MAX_WARNING          */
  -//  public static final int MAX_WARNING = 11;  // this is needed to keep 
track of the number of warnings
  -//
  -//  /** Field MAX_OTHERS          */
  -//  public static final int MAX_OTHERS = 20;
  -//
  -//  /** Field MAX_MESSAGES          */
  -//  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  -//
  -//  /** Field contents          */
  -//  static final Object[][] contents =
  -//    new Object[MAX_MESSAGES + MAX_OTHERS + 1][2];
  +  //XXX MANITS_XALAN : Changed from 83 to 116
  +  /** Field MAX_CODE          */
  +  public static final int MAX_CODE = 116;  // this is needed to keep track 
of the number of messages          
  +
  +  /** Field MAX_WARNING          */
  +  public static final int MAX_WARNING = 11;  // this is needed to keep track 
of the number of warnings
  +
  +  /** Field MAX_OTHERS          */
  +  public static final int MAX_OTHERS = 20;
  +
  +  /** Field MAX_MESSAGES          */
  +  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  +
  +  /** Field contents          */
  +  static final Object[][] contents =
  +    new Object[MAX_MESSAGES + MAX_OTHERS + 1][2];
  +
  +  /*
  +  * Now fill in the message keys.
  +  * This does not need to be updated. If MAX_CODE and MAX_WARNING
  +  * are correct, the keys will get filled in automatically with
  +  * the value ERxxxx (WRxxxx for warnings) where xxxx is a
  +  * formatted number corresponding to the error code (i.e. ER0001).
  +  */
  +  static
  +  {
  +    for (int i = 0; i < MAX_CODE + 1; i++)
  +    {
  +      contents[i][0] = getMKey(i);
  +    }
  +
  +    for (int i = 1; i < MAX_WARNING + 1; i++)
  +    {
  +      contents[i + MAX_CODE][0] = getWKey(i);
  +    }
  +  }
   
     /*
     * Now fill in the message text.
  @@ -125,497 +133,1263 @@
     /** Field ERROR0000          */
     public static final int ERROR0000 = 0;
   
  +  static
  +  {
  +    contents[ERROR0000][1] = "{0}";
  +  }
  +
     /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */
     public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
   
  +  static
  +  {
  +    contents[ER_CURRENT_NOT_ALLOWED_IN_MATCH][1] =
  +      "The current() function is not allowed in a match pattern!";
  +  }
   
     /** Field ER_CURRENT_TAKES_NO_ARGS          */
     public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
   
  +  static
  +  {
  +    contents[ER_CURRENT_TAKES_NO_ARGS][1] =
  +      "The current() function does not accept arguments!";
  +  }
   
     /** Field ER_DOCUMENT_REPLACED          */
     public static final int ER_DOCUMENT_REPLACED = 3;
   
  +  static
  +  {
  +    contents[ER_DOCUMENT_REPLACED][1] =
  +      "document() function implementation has been replaced by 
org.apache.xalan.xslt.FuncDocument!";
  +  }
   
     /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */
     public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
   
  +  static
  +  {
  +    contents[ER_CONTEXT_HAS_NO_OWNERDOC][1] =
  +      "context does not have an owner document!";
  +  }
   
     /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */
     public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
   
  +  static
  +  {
  +    contents[ER_LOCALNAME_HAS_TOO_MANY_ARGS][1] =
  +      "local-name() has too many arguments.";
  +  }
   
     /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */
     public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
   
  +  static
  +  {
  +    contents[ER_NAMESPACEURI_HAS_TOO_MANY_ARGS][1] =
  +      "namespace-uri() has too many arguments.";
  +  }
   
     /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */
     public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
   
  +  static
  +  {
  +    contents[ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS][1] =
  +      "normalize-space() has too many arguments.";
  +  }
   
     /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */
     public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
   
  +  static
  +  {
  +    contents[ER_NUMBER_HAS_TOO_MANY_ARGS][1] =
  +      "number() has too many arguments.";
  +  }
   
     /** Field ER_NAME_HAS_TOO_MANY_ARGS          */
     public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
   
  +  static
  +  {
  +    contents[ER_NAME_HAS_TOO_MANY_ARGS][1] = "name() has too many 
arguments.";
  +  }
   
     /** Field ER_STRING_HAS_TOO_MANY_ARGS          */
     public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
   
  +  static
  +  {
  +    contents[ER_STRING_HAS_TOO_MANY_ARGS][1] =
  +      "string() has too many arguments.";
  +  }
   
     /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */
     public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
   
  +  static
  +  {
  +    contents[ER_STRINGLENGTH_HAS_TOO_MANY_ARGS][1] =
  +      "string-length() has too many arguments.";
  +  }
   
     /** Field ER_TRANSLATE_TAKES_3_ARGS          */
     public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
   
  +  static
  +  {
  +    contents[ER_TRANSLATE_TAKES_3_ARGS][1] =
  +      "The translate() function takes three arguments!";
  +  }
   
     /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */
     public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
   
  +  static
  +  {
  +    contents[ER_UNPARSEDENTITYURI_TAKES_1_ARG][1] =
  +      "The unparsed-entity-uri function should take one argument!";
  +  }
   
     /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */
     public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
   
  +  static
  +  {
  +    contents[ER_NAMESPACEAXIS_NOT_IMPLEMENTED][1] =
  +      "namespace axis not implemented yet!";
  +  }
   
     /** Field ER_UNKNOWN_AXIS          */
     public static final int ER_UNKNOWN_AXIS = 15;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_AXIS][1] = "unknown axis: {0}";
  +  }
   
     /** Field ER_UNKNOWN_MATCH_OPERATION          */
     public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_MATCH_OPERATION][1] = "unknown match operation!";
  +  }
   
     /** Field ER_INCORRECT_ARG_LENGTH          */
     public static final int ER_INCORRECT_ARG_LENGTH = 17;
   
  +  static
  +  {
  +    contents[ER_INCORRECT_ARG_LENGTH][1] =
  +      "Arg length of processing-instruction() node test is incorrect!";
  +  }
   
     /** Field ER_CANT_CONVERT_TO_NUMBER          */
     public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
   
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_NUMBER][1] =
  +      "Can not convert {0} to a number";
  +  }
   
     /** Field ER_CANT_CONVERT_TO_NODELIST          */
     public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
   
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_NODELIST][1] =
  +      "Can not convert {0} to a NodeList!";
  +  }
   
     /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */
     public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
   
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_MUTABLENODELIST][1] =
  +      "Can not convert {0} to a NodeSetDTM!";
  +  }
   
     /** Field ER_CANT_CONVERT_TO_TYPE          */
     public static final int ER_CANT_CONVERT_TO_TYPE = 21;
   
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_TYPE][1] =
  +      "Can not convert {0} to a type//{1}";
  +  }
   
     /** Field ER_EXPECTED_MATCH_PATTERN          */
     public static final int ER_EXPECTED_MATCH_PATTERN = 22;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_MATCH_PATTERN][1] =
  +      "Expected match pattern in getMatchScore!";
  +  }
   
     /** Field ER_COULDNOT_GET_VAR_NAMED          */
     public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
   
  +  static
  +  {
  +    contents[ER_COULDNOT_GET_VAR_NAMED][1] =
  +      "Could not get variable named {0}";
  +  }
   
     /** Field ER_UNKNOWN_OPCODE          */
     public static final int ER_UNKNOWN_OPCODE = 24;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_OPCODE][1] = "ERROR! Unknown op code: {0}";
  +  }
   
     /** Field ER_EXTRA_ILLEGAL_TOKENS          */
     public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
   
  +  static
  +  {
  +    contents[ER_EXTRA_ILLEGAL_TOKENS][1] = "Extra illegal tokens: {0}";
  +  }
   
     /** Field ER_EXPECTED_DOUBLE_QUOTE          */
     public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_DOUBLE_QUOTE][1] =
  +      "misquoted literal... expected double quote!";
  +  }
   
     /** Field ER_EXPECTED_SINGLE_QUOTE          */
     public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_SINGLE_QUOTE][1] =
  +      "misquoted literal... expected single quote!";
  +  }
   
     /** Field ER_EMPTY_EXPRESSION          */
     public static final int ER_EMPTY_EXPRESSION = 28;
   
  +  static
  +  {
  +    contents[ER_EMPTY_EXPRESSION][1] = "Empty expression!";
  +  }
   
     /** Field ER_EXPECTED_BUT_FOUND          */
     public static final int ER_EXPECTED_BUT_FOUND = 29;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_BUT_FOUND][1] = "Expected {0}, but found: {1}";
  +  }
   
     /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */
     public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
   
  +  static
  +  {
  +    contents[ER_INCORRECT_PROGRAMMER_ASSERTION][1] =
  +      "Programmer assertion is incorrect! - {0}";
  +  }
   
     /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */
     public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
   
  +  static
  +  {
  +    contents[ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL][1] =
  +      "boolean(...) argument is no longer optional with 19990709 XPath 
draft.";
  +  }
   
     /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */
     public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
   
  +  static
  +  {
  +    contents[ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG][1] =
  +      "Found ',' but no preceding argument!";
  +  }
   
     /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */
     public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
   
  +  static
  +  {
  +    contents[ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG][1] =
  +      "Found ',' but no following argument!";
  +  }
   
     /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */
     public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
   
  +  static
  +  {
  +    contents[ER_PREDICATE_ILLEGAL_SYNTAX][1] =
  +      "'..[predicate]' or '.[predicate]' is illegal syntax.  Use 
'self::node()[predicate]' instead.";
  +  }
   
     /** Field ER_ILLEGAL_AXIS_NAME          */
     public static final int ER_ILLEGAL_AXIS_NAME = 35;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_AXIS_NAME][1] = "illegal axis name: {0}";
  +  }
   
     /** Field ER_UNKNOWN_NODETYPE          */
     public static final int ER_UNKNOWN_NODETYPE = 36;
   
  +  static
  +  {
  +    contents[ER_UNKNOWN_NODETYPE][1] = "Unknown nodetype: {0}";
  +  }
   
     /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */
     public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
   
  +  static
  +  {
  +    contents[ER_PATTERN_LITERAL_NEEDS_BE_QUOTED][1] =
  +      "Pattern literal ({0}) needs to be quoted!";
  +  }
   
     /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */
     public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
   
  +  static
  +  {
  +    contents[ER_COULDNOT_BE_FORMATTED_TO_NUMBER][1] =
  +      "{0} could not be formatted to a number!";
  +  }
   
     /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */
     public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
   
  +  static
  +  {
  +    contents[ER_COULDNOT_CREATE_XMLPROCESSORLIAISON][1] =
  +      "Could not create XML TransformerFactory Liaison: {0}";
  +  }
   
     /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */
     public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
   
  +  static
  +  {
  +    contents[ER_DIDNOT_FIND_XPATH_SELECT_EXP][1] =
  +      "Error! Did not find xpath select expression (-select).";
  +  }
   
     /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */
     public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
   
  +  static
  +  {
  +    contents[ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH][1] =
  +      "ERROR! Could not find ENDOP after OP_LOCATIONPATH";
  +  }
   
     /** Field ER_ERROR_OCCURED          */
     public static final int ER_ERROR_OCCURED = 42;
   
  +  static
  +  {
  +    contents[ER_ERROR_OCCURED][1] = "Error occured!";
  +  }
   
     /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */
     public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
   
  +  static
  +  {
  +    contents[ER_ILLEGAL_VARIABLE_REFERENCE][1] =
  +      "VariableReference given for variable out of context or without 
definition!  Name = {0}";
  +  }
   
     /** Field ER_AXES_NOT_ALLOWED          */
     public static final int ER_AXES_NOT_ALLOWED = 44;
   
  +  static
  +  {
  +    contents[ER_AXES_NOT_ALLOWED][1] =
  +      "Only child:: and attribute:: axes are allowed in match patterns!  
Offending axes = {0}";
  +  }
   
     /** Field ER_KEY_HAS_TOO_MANY_ARGS          */
     public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
   
  +  static
  +  {
  +    contents[ER_KEY_HAS_TOO_MANY_ARGS][1] =
  +      "key() has an incorrect number of arguments.";
  +  }
   
     /** Field ER_COUNT_TAKES_1_ARG          */
     public static final int ER_COUNT_TAKES_1_ARG = 46;
   
  +  static
  +  {
  +    contents[ER_COUNT_TAKES_1_ARG][1] =
  +      "The count function should take one argument!";
  +  }
   
     /** Field ER_COULDNOT_FIND_FUNCTION          */
     public static final int ER_COULDNOT_FIND_FUNCTION = 47;
   
  +  static
  +  {
  +    contents[ER_COULDNOT_FIND_FUNCTION][1] = "Could not find function: {0}";
  +  }
   
     /** Field ER_UNSUPPORTED_ENCODING          */
     public static final int ER_UNSUPPORTED_ENCODING = 48;
   
  +  static
  +  {
  +    contents[ER_UNSUPPORTED_ENCODING][1] = "Unsupported encoding: {0}";
  +  }
   
     /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */
     public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
   
  +  static
  +  {
  +    contents[ER_PROBLEM_IN_DTM_NEXTSIBLING][1] =
  +      "Problem occured in DTM in getNextSibling... trying to recover";
  +  }
   
     /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */
     public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
   
  +  static
  +  {
  +    contents[ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL][1] =
  +      "Programmer error: EmptyNodeList can not be written to.";
  +  }
   
     /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */
     public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
   
  +  static
  +  {
  +    contents[ER_SETDOMFACTORY_NOT_SUPPORTED][1] =
  +      "setDOMFactory is not supported by XPathContext!";
  +  }
   
     /** Field ER_PREFIX_MUST_RESOLVE          */
     public static final int ER_PREFIX_MUST_RESOLVE = 52;
   
  +  static
  +  {
  +    contents[ER_PREFIX_MUST_RESOLVE][1] =
  +      "Prefix must resolve to a namespace: {0}";
  +  }
   
     /** Field ER_PARSE_NOT_SUPPORTED          */
     public static final int ER_PARSE_NOT_SUPPORTED = 53;
   
  +  static
  +  {
  +    contents[ER_PARSE_NOT_SUPPORTED][1] =
  +      "parse (InputSource source) not supported in XPathContext! Can not 
open {0}";
  +  }
   
     /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */
     public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
   
  +  static
  +  {
  +    contents[ER_CREATEDOCUMENT_NOT_SUPPORTED][1] =
  +      "createDocument() not supported in XPathContext!";
  +  }
   
     /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */
     public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
   
  +  static
  +  {
  +    contents[ER_CHILD_HAS_NO_OWNER_DOCUMENT][1] =
  +      "Attribute child does not have an owner document!";
  +  }
   
     /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */
     public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
   
  +  static
  +  {
  +    contents[ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT][1] =
  +      "Attribute child does not have an owner document element!";
  +  }
   
     /** Field ER_SAX_API_NOT_HANDLED          */
     public static final int ER_SAX_API_NOT_HANDLED = 57;
   
  +  static
  +  {
  +    contents[ER_SAX_API_NOT_HANDLED][1] =
  +      "SAX API characters(char ch[]... not handled by the DTM!";
  +  }
   
     /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */
     public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
   
  +  static
  +  {
  +    contents[ER_IGNORABLE_WHITESPACE_NOT_HANDLED][1] =
  +      "ignorableWhitespace(char ch[]... not handled by the DTM!";
  +  }
   
     /** Field ER_DTM_CANNOT_HANDLE_NODES          */
     public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
   
  +  static
  +  {
  +    contents[ER_DTM_CANNOT_HANDLE_NODES][1] =
  +      "DTMLiaison can not handle nodes of type {0}";
  +  }
   
     /** Field ER_XERCES_CANNOT_HANDLE_NODES          */
     public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
   
  +  static
  +  {
  +    contents[ER_XERCES_CANNOT_HANDLE_NODES][1] =
  +      "DOM2Helper can not handle nodes of type {0}";
  +  }
   
     /** Field ER_XERCES_PARSE_ERROR_DETAILS          */
     public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
   
  +  static
  +  {
  +    contents[ER_XERCES_PARSE_ERROR_DETAILS][1] =
  +      "DOM2Helper.parse error: SystemID - {0} line - {1}";
  +  }
   
     /** Field ER_XERCES_PARSE_ERROR          */
     public static final int ER_XERCES_PARSE_ERROR = 62;
   
  +  static
  +  {
  +    contents[ER_XERCES_PARSE_ERROR][1] = "DOM2Helper.parse error";
  +  }
   
     /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */
     public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
   
  +  static
  +  {
  +    contents[ER_CANT_OUTPUT_TEXT_BEFORE_DOC][1] =
  +      "Warning: can't output text before document element!  Ignoring...";
  +  }
   
     /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */
     public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
   
  +  static
  +  {
  +    contents[ER_CANT_HAVE_MORE_THAN_ONE_ROOT][1] =
  +      "Can't have more than one root on a DOM!";
  +  }
   
     /** Field ER_INVALID_UTF16_SURROGATE          */
     public static final int ER_INVALID_UTF16_SURROGATE = 65;
   
  +  static
  +  {
  +    contents[ER_INVALID_UTF16_SURROGATE][1] =
  +      "Invalid UTF-16 surrogate detected: {0} ?";
  +  }
   
     /** Field ER_OIERROR          */
     public static final int ER_OIERROR = 66;
   
  +  static
  +  {
  +    contents[ER_OIERROR][1] = "IO error";
  +  }
   
     /** Field ER_CANNOT_CREATE_URL          */
     public static final int ER_CANNOT_CREATE_URL = 67;
   
  +  static
  +  {
  +    contents[ER_CANNOT_CREATE_URL][1] = "Cannot create url for: {0}";
  +  }
   
     /** Field ER_XPATH_READOBJECT          */
     public static final int ER_XPATH_READOBJECT = 68;
   
  +  static
  +  {
  +    contents[ER_XPATH_READOBJECT][1] = "In XPath.readObject: {0}";
  +  }
     
     /** Field ER_XPATH_READOBJECT         */
     public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
   
  +  static
  +  {
  +    contents[ER_FUNCTION_TOKEN_NOT_FOUND][1] =
  +      "function token not found.";
  +  }
     
      /**  Argument 'localName' is null  */
     public static final int ER_ARG_LOCALNAME_NULL = 70;
   
  +  static
  +  {
  +    contents[ER_ARG_LOCALNAME_NULL][1] =
  +       "Argument 'localName' is null";
  +  }
     
      /**  Can not deal with XPath type:   */
     public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
   
  +  static
  +  {
  +    contents[ER_CANNOT_DEAL_XPATH_TYPE][1] =
  +       "Can not deal with XPath type: {0}";
  +  }
     
      /**  This NodeSet is not mutable  */
     public static final int ER_NODESET_NOT_MUTABLE = 72;
   
  +  static
  +  {
  +    contents[ER_NODESET_NOT_MUTABLE][1] =
  +       "This NodeSet is not mutable";
  +  }
     
      /**  This NodeSetDTM is not mutable  */
     public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
   
  +  static
  +  {
  +    contents[ER_NODESETDTM_NOT_MUTABLE][1] =
  +       "This NodeSetDTM is not mutable";
  +  }
     
      /**  Variable not resolvable:   */
     public static final int ER_VAR_NOT_RESOLVABLE = 74;
   
  +  static
  +  {
  +    contents[ER_VAR_NOT_RESOLVABLE][1] =
  +        "Variable not resolvable: {0}";
  +  }
     
      /** Null error handler  */
     public static final int ER_NULL_ERROR_HANDLER = 75;
   
  +  static
  +  {
  +    contents[ER_NULL_ERROR_HANDLER][1] =
  +        "Null error handler";
  +  }
     
      /**  Programmer's assertion: unknown opcode  */
     public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
   
  +  static
  +  {
  +    contents[ER_PROG_ASSERT_UNKNOWN_OPCODE][1] =
  +       "Programmer's assertion: unknown opcode: {0}";
  +  }
     
      /**  0 or 1   */
     public static final int ER_ZERO_OR_ONE = 77;
   
  +  static
  +  {
  +    contents[ER_ZERO_OR_ONE][1] =
  +       "0 or 1";
  +  }
     
     
      /**  rtf() not supported by XRTreeFragSelectWrapper   */
     public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
   
  +  static
  +  {
  +    contents[ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER][1] =
  +       "rtf() not supported by XRTreeFragSelectWrapper";
  +  }
     
      /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */
     public static final int 
ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
   
  +  static
  +  {
  +    contents[ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER][1] =
  +       "asNodeIterator() not supported by XRTreeFragSelectWrapper";
  +  }
     
      /**  fsb() not supported for XStringForChars   */
     public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
   
  +  static
  +  {
  +    contents[ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS][1] =
  +       "fsb() not supported for XStringForChars";
  +  }
     
      /**  Could not find variable with the name of   */
     public static final int ER_COULD_NOT_FIND_VAR = 81;
   
  +  static
  +  {
  +    contents[ER_COULD_NOT_FIND_VAR][1] =
  +      "Could not find variable with the name of {0}";
  +  }
     
      /**  XStringForChars can not take a string for an argument   */
     public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
   
  +  static
  +  {
  +    contents[ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING][1] =
  +      "XStringForChars can not take a string for an argument";
  +  }
     
      /**  The FastStringBuffer argument can not be null   */
     public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
   
  -  
  +  static
  +  {
  +    contents[ER_FASTSTRINGBUFFER_CANNOT_BE_NULL][1] =
  +      "The FastStringBuffer argument can not be null";
  +  }  
  +  /* MANTIS_XALAN CHANGE: BEGIN */ 
      /**  2 or 3   */
     public static final int ER_TWO_OR_THREE = 84;
   
  -  
  -// Variable accessed before it is bound!
  +  static
  +  {
  +    contents[ER_TWO_OR_THREE][1] =
  +       "2 or 3";
  +  }
  +
  +   /** Variable accessed before it is bound! */
     public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
  -  
  -  // XStringForFSB can not take a string for an argument!
  +
  +  static
  +  {
  +    contents[ER_VARIABLE_ACCESSED_BEFORE_BIND][1] =
  +       "Variable accessed before it is bound!";
  +  }
  +
  +   /** XStringForFSB can not take a string for an argument! */
     public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
  -  
  -  // Error! Setting the root of a walker to null!
  +
  +  static
  +  {
  +    contents[ER_FSB_CANNOT_TAKE_STRING][1] =
  +       "XStringForFSB can not take a string for an argument!";
  +  }
  +
  +   /** Error! Setting the root of a walker to null! */
     public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
  -  
  -  // This NodeSetDTM can not iterate to a previous node!
  +
  +  static
  +  {
  +    contents[ER_SETTING_WALKER_ROOT_TO_NULL][1] =
  +       "\n !!!! Error! Setting the root of a walker to null!!!";
  +  }
  +
  +   /** This NodeSetDTM can not iterate to a previous node! */
     public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
  -  
  -  // This NodeSet can not iterate to a previous node!
  +
  +  static
  +  {
  +    contents[ER_NODESETDTM_CANNOT_ITERATE][1] =
  +       "This NodeSetDTM can not iterate to a previous node!";
  +  }
  +
  +  /** This NodeSet can not iterate to a previous node! */
     public static final int ER_NODESET_CANNOT_ITERATE = 89;
   
  -  // This NodeSetDTM can not do indexing or counting functions!
  +  static
  +  {
  +    contents[ER_NODESET_CANNOT_ITERATE][1] =
  +       "This NodeSet can not iterate to a previous node!";
  +  }
  +
  +  /** This NodeSetDTM can not do indexing or counting functions! */
     public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
  -  
  -  // This NodeSet can not do indexing or counting functions!
  +
  +  static
  +  {
  +    contents[ER_NODESETDTM_CANNOT_INDEX][1] =
  +       "This NodeSetDTM can not do indexing or counting functions!";
  +  }
  +
  +  /** This NodeSet can not do indexing or counting functions! */
     public static final int ER_NODESET_CANNOT_INDEX = 91;
   
  -  // Can not call setShouldCacheNodes after nextNode has been called!
  +  static
  +  {
  +    contents[ER_NODESET_CANNOT_INDEX][1] =
  +       "This NodeSet can not do indexing or counting functions!";
  +  }
  +
  +  /** Can not call setShouldCacheNodes after nextNode has been called! */
     public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
  -  
  -  // {0} only allows {1} arguments
  +
  +  static
  +  {
  +    contents[ER_CANNOT_CALL_SETSHOULDCACHENODE][1] =
  +       "Can not call setShouldCacheNodes after nextNode has been called!";
  +  }
  +
  +  /** {0} only allows {1} arguments */
     public static final int ER_ONLY_ALLOWS = 93;
  -  
  -  // Programmer's assertion in getNextStepPos: unknown stepType: {0}
  +
  +  static
  +  {
  +    contents[ER_ONLY_ALLOWS][1] =
  +       "{0} only allows {1} arguments";
  +  }
  +
  +  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
     public static final int ER_UNKNOWN_STEP = 94;
  -  
  +
  +  static
  +  {
  +    contents[ER_UNKNOWN_STEP][1] =
  +       "Programmer's assertion in getNextStepPos: unknown stepType: {0}";
  +  }
  +
  +  //Note to translators:  A relative location path is a form of XPath 
expression.
  +  // The message indicates that such an expression was expected following the
  +  // characters '/' or '//', but was not found.
  +
     /** Problem with RelativeLocationPath */
     public static final int ER_EXPECTED_REL_LOC_PATH = 95;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_REL_LOC_PATH][1] =
  +       "A relative location path was expected following the '/' or '//' 
token.";
  +  }
  +
  +  // Note to translators:  A location path is a form of XPath expression.
  +  // The message indicates that syntactically such an expression was 
expected,but
  +  // the characters specified by the substitution text were encountered 
instead.
   
  -   /** Problem with LocationPath */
  +  /** Problem with LocationPath */
     public static final int ER_EXPECTED_LOC_PATH = 96;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_LOC_PATH][1] =
  +       "A location path was expected, but the following token was 
encountered\u003a  {0}";
  +  }
   
  -   /** Problem with Step */
  +  // Note to translators:  A location step is part of an XPath expression.
  +  // The message indicates that syntactically such an expression was expected
  +  // following the specified characters.
  +
  +  /** Problem with Step */
     public static final int ER_EXPECTED_LOC_STEP = 97;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_LOC_STEP][1] =
  +       "A location step was expected following the '/' or '//' token.";
  +  }
  +
  +  // Note to translators:  A node test is part of an XPath expression that is
  +  // used to test for particular kinds of nodes.  In this case, a node test 
that
  +  // consists of an NCName followed by a colon and an asterisk or that 
consists
  +  // of a QName was expected, but was not found.
   
  -   /** Problem with NodeTest */
  +  /** Problem with NodeTest */
     public static final int ER_EXPECTED_NODE_TEST = 98;
   
  +  static
  +  {
  +    contents[ER_EXPECTED_NODE_TEST][1] =
  +       "A node test that matches either NCName:* or QName was expected.";
  +  }
   
  -   /** Expected step pattern */
  +  // Note to translators:  A step pattern is part of an XPath expression.
  +  // The message indicates that syntactically such an expression was 
expected,
  +  // but the specified character was found in the expression instead.
  +
  +  /** Expected step pattern */
     public static final int ER_EXPECTED_STEP_PATTERN = 99;
   
  -  
  -   /** Expected relative path pattern */
  +  static
  +  {
  +    contents[ER_EXPECTED_STEP_PATTERN][1] =
  +       "A step pattern was expected, but '/' was encountered.";
  +  }
  +
  +  // Note to translators: A relative path pattern is part of an XPath 
expression.
  +  // The message indicates that syntactically such an expression was 
expected,
  +  // but was not found.
  + 
  +  /** Expected relative path pattern */
     public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
  -  
  -  /** localname in QNAME should be a valid NCName */  
  +
  +  static
  +  {
  +    contents[ER_EXPECTED_REL_PATH_PATTERN][1] =
  +       "A relative path pattern was expected.";
  +  }
  +
  +  // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
  +  // The localname is the portion after the optional colon; the message 
indicates
  +  // that there is a problem with that part of the QNAME.
  +
  +  /** localname in QNAME should be a valid NCName */
     public static final int ER_ARG_LOCALNAME_INVALID = 101;
   
  +  static
  +  {
  +    contents[ER_ARG_LOCALNAME_INVALID][1] =
  +       "Localname in QNAME should be a valid NCName";
  +  }
  +  
  +  // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
  +  // The prefix is the portion before the optional colon; the message 
indicates
  +  // that there is a problem with that part of the QNAME.
  +
     /** prefix in QNAME should be a valid NCName */
     public static final int ER_ARG_PREFIX_INVALID = 102;
   
  - 
  -/** Field ER_CANT_CONVERT_TO_BOOLEAN          */
  +  static
  +  {
  +    contents[ER_ARG_PREFIX_INVALID][1] =
  +       "Prefix in QNAME should be a valid NCName";
  +  }
  +
  +  // Note to translators:  The substitution text is the name of a data type. 
 The
  +  // message indicates that a value of a particular type could not be 
converted
  +  // to a value of type string.
  +
  +  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */
     public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
  -  
  -  
  -/** Field ER_CANT_CONVERT_TO_SINGLENODE       */
  -  public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;  
   
  -/** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_BOOLEAN][1] =
  +       "Cannot convert {0} to a boolean.";
  +  }
  +
  +  // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and 
  +  // FIRST_ORDERED_NODE_TYPE.
  +
  +  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */
  +  public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
  +
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_SINGLENODE][1] =
  +       "Cannot convert {0} to a single node. This getter applies to types 
ANY_UNORDERED_NODE_TYPE and FIRST_ORDERED_NODE_TYPE.";
  +  }
  +
  +  // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
  +  // ORDERED_NODE_SNAPSHOT_TYPE.
  +
  +  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
     public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
  -  
  -/** Field ER_NON_ITERATOR_TYPE                */
  +
  +  static
  +  {
  +    contents[ER_CANT_GET_SNAPSHOT_LENGTH][1] =
  +       "Cannot get snapshot length on type: {0}. This getter applies to 
types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.";
  +  }
  +
  +  /** Field ER_NON_ITERATOR_TYPE                */
     public static final int ER_NON_ITERATOR_TYPE        = 106;
   
  -/** Field ER_DOC_MUTATED                      */
  +  static
  +  {
  +    contents[ER_NON_ITERATOR_TYPE][1] =
  +       "Cannot iterate over non-iterator type: {0}";
  +  }
  +
  +  // Note to translators: This message indicates that the document being 
operated
  +  // upon changed, so the iterator object that was being used to traverse the
  +  // document has now become invalid.
  +
  +  /** Field ER_DOC_MUTATED                      */
     public static final int ER_DOC_MUTATED              = 107;
  -  
  -/** Field ER_INVALID_XPATH_TYPE               */
  +
  +  static
  +  {
  +    contents[ER_DOC_MUTATED][1] =
  +       "Document mutated since result was returned. Iterator is invalid.";
  +  }
  +
  +  /** Field ER_INVALID_XPATH_TYPE               */
     public static final int ER_INVALID_XPATH_TYPE       = 108;
  -  
  -/** Field ER_EMPTY_XPATH_RESULT                */
  +
  +  static
  +  {
  +    contents[ER_INVALID_XPATH_TYPE][1] =
  +       "Invalid XPath type argument: {0}";
  +  }
  +
  +  /** Field ER_EMPTY_XPATH_RESULT                */
     public static final int ER_EMPTY_XPATH_RESULT       = 109;
   
  -/** Field ER_INCOMPATIBLE_TYPES                */
  -  public static final int ER_INCOMPATIBLE_TYPES       = 110;  
  -  
  -/** Field ER_NULL_RESOLVER                     */
  +  static
  +  {
  +    contents[ER_EMPTY_XPATH_RESULT][1] =
  +       "Empty XPath result object";
  +  }
  +
  +  /** Field ER_INCOMPATIBLE_TYPES                */
  +  public static final int ER_INCOMPATIBLE_TYPES       = 110;
  +
  +  static
  +  {
  +    contents[ER_INCOMPATIBLE_TYPES][1] =
  +       "The returned type: {0} cannot be coerced into the specified type: 
{1}";
  +  }
  +
  +  /** Field ER_NULL_RESOLVER                     */
     public static final int ER_NULL_RESOLVER            = 111;
   
  -/** Field ER_CANT_CONVERT_TO_STRING            */
  +  static
  +  {
  +    contents[ER_NULL_RESOLVER][1] =
  +       "Unable to resolve prefix with null prefix resolver.";
  +  }
  +
  +  // Note to translators:  The substitution text is the name of a data type. 
 The
  +  // message indicates that a value of a particular type could not be 
converted
  +  // to a value of type string.
  +
  +  /** Field ER_CANT_CONVERT_TO_STRING            */
     public static final int ER_CANT_CONVERT_TO_STRING   = 112;
  -  
  -/** Field ER_NON_SNAPSHOT_TYPE                 */
  +
  +  static
  +  {
  +    contents[ER_CANT_CONVERT_TO_STRING][1] =
  +       "Cannot convert {0} to a string.";
  +  }
  +
  +  // Note to translators: Do not translate snapshotItem,
  +  // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
  +
  +  /** Field ER_NON_SNAPSHOT_TYPE                 */
     public static final int ER_NON_SNAPSHOT_TYPE       = 113;
   
  -/** Field ER_WRONG_DOCUMENT                    */
  +  static
  +  {
  +    contents[ER_NON_SNAPSHOT_TYPE][1] =
  +       "Cannot call snapshotItem on type: {0}. This method applies to types 
UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.";
  +  }
  +
  +  // Note to translators:  XPathEvaluator is a Java interface name.  An
  +  // XPathEvaluator is created with respect to a particular XML document, 
and in
  +  // this case the expression represented by this object was being evaluated 
with
  +  // respect to a context node from a different document.
  +
  +  /** Field ER_WRONG_DOCUMENT                    */
     public static final int ER_WRONG_DOCUMENT          = 114;
  - 
  -/** Field ER_WRONG_NODETYPE                    */
  -  public static final int ER_WRONG_NODETYPE          = 115; 
  -  
  -/** Field ER_XPATH_ERROR                       */  
  +
  +  static
  +  {
  +    contents[ER_WRONG_DOCUMENT][1] =
  +       "Context node does not belong to the document that is bound to this 
XPathEvaluator.";
  +  }
  +
  +  // Note to translators:  The XPath expression cannot be evaluated with 
respect
  +  // to this type of node.
  +  /** Field ER_WRONG_NODETYPE                    */
  +  public static final int ER_WRONG_NODETYPE          = 115;
  +
  +  static
  +  {
  +    contents[ER_WRONG_NODETYPE ][1] =
  +       "The context node type is not supported.";
  +  }
  +
  +  /** Field ER_XPATH_ERROR                       */
     public static final int ER_XPATH_ERROR             = 116;
  -  
  +
  +  static
  +  {
  +    contents[ER_XPATH_ERROR ][1] =
  +       "Unknown error in XPath.";
  +  }
  +
  +
     // Warnings...
   
     /** Field WG_LOCALE_NAME_NOT_HANDLED          */
     public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
   
  +  static
  +  {
  +    contents[WG_LOCALE_NAME_NOT_HANDLED + MAX_CODE][1] =
  +      "locale name in the format-number function not yet handled!";
  +  }
   
     /** Field WG_PROPERTY_NOT_SUPPORTED          */
     public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
   
  +  static
  +  {
  +    contents[WG_PROPERTY_NOT_SUPPORTED + MAX_CODE][1] =
  +      "XSL Property not supported: {0}";
  +  }
   
     /** Field WG_DONT_DO_ANYTHING_WITH_NS          */
     public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
   
  +  static
  +  {
  +    contents[WG_DONT_DO_ANYTHING_WITH_NS + MAX_CODE][1] =
  +      "Do not currently do anything with namespace {0} in property: {1}";
  +  }
   
     /** Field WG_SECURITY_EXCEPTION          */
     public static final int WG_SECURITY_EXCEPTION = 4;
   
  +  static
  +  {
  +    contents[WG_SECURITY_EXCEPTION + MAX_CODE][1] =
  +      "SecurityException when trying to access XSL system property: {0}";
  +  }
   
     /** Field WG_QUO_NO_LONGER_DEFINED          */
     public static final int WG_QUO_NO_LONGER_DEFINED = 5;
   
  +  static
  +  {
  +    contents[WG_QUO_NO_LONGER_DEFINED + MAX_CODE][1] =
  +      "Old syntax: quo(...) is no longer defined in XPath.";
  +  }
   
     /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */
     public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
   
  +  static
  +  {
  +    contents[WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST + MAX_CODE][1] =
  +      "XPath needs a derived object to implement nodeTest!";
  +  }
   
     /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */
     public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
   
  +  static
  +  {
  +    contents[WG_FUNCTION_TOKEN_NOT_FOUND + MAX_CODE][1] =
  +      "function token not found.";
  +  }
   
     /** Field WG_COULDNOT_FIND_FUNCTION          */
     public static final int WG_COULDNOT_FIND_FUNCTION = 8;
   
  +  static
  +  {
  +    contents[WG_COULDNOT_FIND_FUNCTION + MAX_CODE][1] =
  +      "Could not find function: {0}";
  +  }
   
     /** Field WG_CANNOT_MAKE_URL_FROM          */
     public static final int WG_CANNOT_MAKE_URL_FROM = 9;
   
  +  static
  +  {
  +    contents[WG_CANNOT_MAKE_URL_FROM + MAX_CODE][1] =
  +      "Can not make URL from: {0}";
  +  }
   
     /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */
     public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
   
  +  static
  +  {
  +    contents[WG_EXPAND_ENTITIES_NOT_SUPPORTED + MAX_CODE][1] =
  +      "-E option not supported for DTM parser";
  +  }
   
     /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */
     public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
   
  +  static
  +  {
  +    contents[WG_ILLEGAL_VARIABLE_REFERENCE + MAX_CODE][1] =
  +      "VariableReference given for variable out of context or without 
definition!  Name = {0}";
  +  }
   
     /** Field WG_UNSUPPORTED_ENCODING          */
     public static final int WG_UNSUPPORTED_ENCODING = 12;
   
  +  static
  +  {
  +    contents[ER_UNSUPPORTED_ENCODING][1] = "Unsupported encoding: {0}";
  +  }
   
     // Other miscellaneous text used inside the code...
  +  static
  +  {
  +    contents[MAX_MESSAGES][0] = "ui_language";
  +    contents[MAX_MESSAGES][1] = "en";
  +    contents[MAX_MESSAGES + 1][0] = "help_language";
  +    contents[MAX_MESSAGES + 1][1] = "en";
  +    contents[MAX_MESSAGES + 2][0] = "language";
  +    contents[MAX_MESSAGES + 2][1] = "en";
  +    contents[MAX_MESSAGES + 3][0] = "BAD_CODE";
  +    contents[MAX_MESSAGES + 3][1] =
  +      "Parameter to createMessage was out of bounds";
  +    contents[MAX_MESSAGES + 4][0] = "FORMAT_FAILED";
  +    contents[MAX_MESSAGES + 4][1] =
  +      "Exception thrown during messageFormat call";
  +    contents[MAX_MESSAGES + 5][0] = "version";
  +    contents[MAX_MESSAGES + 5][1] = ">>>>>>> Xalan Version ";
  +    contents[MAX_MESSAGES + 6][0] = "version2";
  +    contents[MAX_MESSAGES + 6][1] = "<<<<<<<";
  +    contents[MAX_MESSAGES + 7][0] = "yes";
  +    contents[MAX_MESSAGES + 7][1] = "yes";
  +    contents[MAX_MESSAGES + 8][0] = "line";
  +    contents[MAX_MESSAGES + 8][1] = "Line //";
  +    contents[MAX_MESSAGES + 9][0] = "column";
  +    contents[MAX_MESSAGES + 9][1] = "Column //";
  +    contents[MAX_MESSAGES + 10][0] = "xsldone";
  +    contents[MAX_MESSAGES + 10][1] = "XSLProcessor: done";
  +    contents[MAX_MESSAGES + 11][0] = "xpath_option";
  +    contents[MAX_MESSAGES + 11][1] = "xpath options: ";
  +    contents[MAX_MESSAGES + 12][0] = "optionIN";
  +    contents[MAX_MESSAGES + 12][1] = "   [-in inputXMLURL]";
  +    contents[MAX_MESSAGES + 13][0] = "optionSelect";
  +    contents[MAX_MESSAGES + 13][1] = "   [-select xpath expression]";
  +    contents[MAX_MESSAGES + 14][0] = "optionMatch";
  +    contents[MAX_MESSAGES + 14][1] =
  +      "   [-match match pattern (for match diagnostics)]";
  +    contents[MAX_MESSAGES + 15][0] = "optionAnyExpr";
  +    contents[MAX_MESSAGES + 15][1] =
  +      "Or just an xpath expression will do a diagnostic dump";
  +    contents[MAX_MESSAGES + 16][0] = "noParsermsg1";
  +    contents[MAX_MESSAGES + 16][1] = "XSL Process was not successful.";
  +    contents[MAX_MESSAGES + 17][0] = "noParsermsg2";
  +    contents[MAX_MESSAGES + 17][1] = "** Could not find parser **";
  +    contents[MAX_MESSAGES + 18][0] = "noParsermsg3";
  +    contents[MAX_MESSAGES + 18][1] = "Please check your classpath.";
  +    contents[MAX_MESSAGES + 19][0] = "noParsermsg4";
  +    contents[MAX_MESSAGES + 19][1] =
  +      "If you don't have IBM's XML Parser for Java, you can download it 
from";
  +    contents[MAX_MESSAGES + 20][0] = "noParsermsg5";
  +    contents[MAX_MESSAGES + 20][1] =
  +      "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml";;
  +  }
   
     // ================= INFRASTRUCTURE ======================
   
  @@ -630,7 +1404,7 @@
       "org.apache.xpath.res.XPATHErrorResources";
   
     /** Field ERROR_STRING          */
  -  public static final String ERROR_STRING = "#error";
  +  public static final String ERROR_STRING = "//error";
   
     /** Field ERROR_HEADER          */
     public static final String ERROR_HEADER = "Error: ";
  @@ -647,15 +1421,15 @@
     /** Field QUERY_HEADER          */
     public static final String QUERY_HEADER = "PATTERN ";
   
  -//  /**
  -//   * Get the association list.
  -//   *
  -//   * @return The association list.
  -//   */
  -//  public Object[][] getContents()
  -//  {
  -//    return contents;
  -//  }
  +  /**
  +   * Get the association list.
  +   *
  +   * @return The association list.
  +   */
  +  public Object[][] getContents()
  +  {
  +    return contents;
  +  }
   
     /**
      * Return a named ResourceBundle for a particular locale.  This method 
mimics the behavior
  @@ -668,7 +1442,7 @@
      * @return the ResourceBundle
      * @throws MissingResourceException
      */
  -  public static final ResourceBundle loadResourceBundle(String className)
  +  public static final XPATHErrorResources loadResourceBundle(String 
className)
             throws MissingResourceException
     {
   
  @@ -679,7 +1453,7 @@
       {
   
         // first try with the given locale
  -      return ResourceBundle.getBundle(className
  +      return (XPATHErrorResources) ResourceBundle.getBundle(className
                 + suffix, locale);
       }
       catch (MissingResourceException e)
  @@ -689,7 +1463,7 @@
   
           // Since we can't find the localized property file,
           // fall back to en_US.
  -        return ResourceBundle.getBundle(className,
  +        return (XPATHErrorResources) ResourceBundle.getBundle(className,
                   new Locale("en", "US"));
         }
         catch (MissingResourceException e2)
  @@ -730,12 +1504,12 @@
      *
      * @return error string associated with the given error code
      */
  -  public static String getMessageKey(int errorCode)
  +  public String getMessageKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_CODE)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -750,12 +1524,12 @@
      * 
      * @return warning string associated with the given error code
      */
  -  public static String getWarningKey(int errorCode)
  +  public String getWarningKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_WARNING)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -773,9 +1547,9 @@
     public static String getMKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_CODE)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  @@ -793,9 +1567,9 @@
     public static String getWKey(int errorCode)
     {
   
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  +    if (errorCode > MAX_WARNING)
  +      return null;
  +    else
       {
         DecimalFormat df = new DecimalFormat("0000");
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.1   +21 -0     
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResourceBundle.java
  
  
  
  
  1.1.2.1   +1111 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_de.java
  
  
  
  
  1.3.2.1   +0 -0      
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_en.java
  
  
  
  
  1.1.2.1   +1111 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_es.java
  
  
  
  
  1.1.2.1   +1111 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_fr.java
  
  
  
  
  1.1.2.1   +1115 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_it.java
  
  
  
  
  1.1.2.1   +1188 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_ja.java
  
  
  
  
  1.1.2.1   +1093 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_ko.java
  
  
  
  
  1.1.2.1   +1092 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_sv.java
  
  
  
  
  1.1.2.1   +1093 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_zh_CN.java
  
  
  
  
  1.1.2.1   +1093 -0   
xml-xalan/java/src/org/apache/xpath/res/Attic/XPATHErrorResources_zh_TW.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to