zongaro     2003/01/16 16:48:28

  Modified:    java/src/org/apache/xalan/processor Tag: XSLTC_DTM
                        ProcessorImport.java ProcessorInclude.java
                        StylesheetHandler.java XSLTAttributeDef.java
               java/src/org/apache/xalan/res Tag: XSLTC_DTM
                        XSLMessages.java XSLTErrorResources.java
               java/src/org/apache/xalan/templates Tag: XSLTC_DTM
                        ElemTemplateElement.java FuncDocument.java
                        FuncFormatNumb.java OutputProperties.java
               java/src/org/apache/xalan/transformer Tag: XSLTC_DTM
                        MsgMgr.java
               java/src/org/apache/xml/dtm Tag: XSLTC_DTM DTMManager.java
               java/src/org/apache/xml/utils Tag: XSLTC_DTM UnImplNode.java
               java/src/org/apache/xml/utils/res Tag: XSLTC_DTM
                        XResources_zh_CN.java XResources_zh_TW.java
               java/src/org/apache/xpath Tag: XSLTC_DTM Expression.java
                        XPath.java
               java/src/org/apache/xpath/compiler Tag: XSLTC_DTM
                        Compiler.java OpMap.java XPathParser.java
               java/src/org/apache/xpath/objects Tag: XSLTC_DTM
                        XNumber.java XObject.java
                        XRTreeFragSelectWrapper.java XStringForFSB.java
               java/src/org/apache/xpath/res Tag: XSLTC_DTM
                        XPATHErrorResources.java
  Log:
  Bringing XSLTC_DTM branch up-to-date with changes from MAIN branch.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.16.1 +1 -1      
xml-xalan/java/src/org/apache/xalan/processor/ProcessorImport.java
  
  Index: ProcessorImport.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/ProcessorImport.java,v
  retrieving revision 1.10
  retrieving revision 1.10.16.1
  diff -u -r1.10 -r1.10.16.1
  --- ProcessorImport.java      30 Nov 2000 09:57:29 -0000      1.10
  +++ ProcessorImport.java      17 Jan 2003 00:48:23 -0000      1.10.16.1
  @@ -100,7 +100,7 @@
      *
      * @return the appropriate error number
      */
  -  protected int getStylesheetInclErr()
  +  protected String getStylesheetInclErr()
     {
       return XSLTErrorResources.ER_IMPORTING_ITSELF;
     }
  
  
  
  1.20.10.2 +1 -1      
xml-xalan/java/src/org/apache/xalan/processor/ProcessorInclude.java
  
  Index: ProcessorInclude.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/ProcessorInclude.java,v
  retrieving revision 1.20.10.1
  retrieving revision 1.20.10.2
  diff -u -r1.20.10.1 -r1.20.10.2
  --- ProcessorInclude.java     1 Aug 2002 19:55:30 -0000       1.20.10.1
  +++ ProcessorInclude.java     17 Jan 2003 00:48:23 -0000      1.20.10.2
  @@ -136,7 +136,7 @@
      *
      * @return the appropriate error number
      */
  -  protected int getStylesheetInclErr()
  +  protected String getStylesheetInclErr()
     {
       return XSLTErrorResources.ER_STYLESHEET_INCLUDES_ITSELF;
     }
  
  
  
  1.50.2.4  +4 -4      
xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java
  
  Index: StylesheetHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v
  retrieving revision 1.50.2.3
  retrieving revision 1.50.2.4
  diff -u -r1.50.2.3 -r1.50.2.4
  --- StylesheetHandler.java    26 Nov 2002 20:26:26 -0000      1.50.2.3
  +++ StylesheetHandler.java    17 Jan 2003 00:48:23 -0000      1.50.2.4
  @@ -866,7 +866,7 @@
      * <meta name="usage" content="internal"/>
      * Warn the user of an problem.
      *
  -   * @param msg An index into the [EMAIL PROTECTED] 
org.apache.xalan.res.XSLTErrorResources}
  +   * @param msg An key into the [EMAIL PROTECTED] 
org.apache.xalan.res.XSLTErrorResources}
      * table, that is one of the WG_ prefixed definitions.
      * @param args An array of arguments for the given warning.
      *
  @@ -875,7 +875,7 @@
      * [EMAIL PROTECTED] javax.xml.transform.ErrorListener#warning}
      * method chooses to flag this condition as an error.
      */
  -  public void warn(int msg, Object args[]) throws org.xml.sax.SAXException
  +  public void warn(String msg, Object args[]) throws org.xml.sax.SAXException
     {
   
       String formattedMsg = m_XSLMessages.createWarning(msg, args);
  @@ -958,7 +958,7 @@
      * Tell the user of an error, and probably throw an
      * exception.
      *
  -   * @param msg An index into the [EMAIL PROTECTED] 
org.apache.xalan.res.XSLTErrorResources}
  +   * @param msg A key into the [EMAIL PROTECTED] 
org.apache.xalan.res.XSLTErrorResources}
      * table, that is one of the WG_ prefixed definitions.
      * @param args An array of arguments for the given warning.
      * @param e An error which the SAXException should wrap.
  @@ -968,7 +968,7 @@
      * [EMAIL PROTECTED] javax.xml.transform.ErrorListener#error}
      * method chooses to flag this condition as an error.
      */
  -  protected void error(int msg, Object args[], Exception e)
  +  protected void error(String msg, Object args[], Exception e)
             throws org.xml.sax.SAXException
     {
   
  
  
  
  1.21.2.3  +1 -1      
xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java
  
  Index: XSLTAttributeDef.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java,v
  retrieving revision 1.21.2.2
  retrieving revision 1.21.2.3
  diff -u -r1.21.2.2 -r1.21.2.3
  --- XSLTAttributeDef.java     14 Sep 2002 10:53:24 -0000      1.21.2.2
  +++ XSLTAttributeDef.java     17 Jan 2003 00:48:23 -0000      1.21.2.3
  @@ -1637,7 +1637,7 @@
       return true;
     }
     
  -  private void handleError(StylesheetHandler handler, int msg, Object [] 
args, Exception exc) throws org.xml.sax.SAXException
  +  private void handleError(StylesheetHandler handler, String msg, Object [] 
args, Exception exc) throws org.xml.sax.SAXException
     {
       switch (getErrorType()) 
       {
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.5.16.2  +40 -180   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.5.16.1
  retrieving revision 1.5.16.2
  diff -u -r1.5.16.1 -r1.5.16.2
  --- XSLMessages.java  29 Jul 2002 00:01:18 -0000      1.5.16.1
  +++ XSLMessages.java  17 Jan 2003 00:48:24 -0000      1.5.16.2
  @@ -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,7 @@
    */
   package org.apache.xalan.res;
   
  +
   import java.util.Locale;
   import java.util.ResourceBundle;
   import java.util.ListResourceBundle;
  @@ -75,10 +76,10 @@
     private Locale fLocale = Locale.getDefault();
   
     /** The language specific resource object for Xalan messages.  */
  -  private static ResourceBundle XSLTBundle = null;
  +  private static ListResourceBundle XSLTBundle = null;
   
     /** The language specific resource object for XPath messages.  */
  -  private static ResourceBundle XPATHBundle = null;
  +  private static ListResourceBundle XPATHBundle = null;
   
     /** The class name of the Xalan error message string table.    */
     private static final String XSLT_ERROR_RESOURCES =
  @@ -96,7 +97,7 @@
   
     /**
      * Set the Locale object to use.
  -   * 
  +   *
      * @param locale non-null reference to Locale object.
      */
      public void setLocale(Locale locale)
  @@ -106,7 +107,7 @@
   
     /**
      * Get the Locale object that is being used.
  -   * 
  +   *
      * @return non-null reference to Locale object.
      */
     public Locale getLocale()
  @@ -118,60 +119,28 @@
      * Creates a message from the specified key and replacement
      * arguments, localized to the given locale.
      *
  -   * @param errorCode The key for the message text.
  +   * @param msgKey The key for the message text.
      * @param args      The arguments to be used as replacement text
      *                  in the message created.
      *
      * @return The formatted warning string.
      */
  -  public static final String createXPATHWarning(int errorCode, Object 
args[])  //throws Exception 
  +  public static final String createXPATHWarning(String msgKey, Object 
args[])  //throws Exception
     {
   
       if (XPATHBundle == null)
  -      XPATHBundle =
  -        loadResourceBundle(XPATH_ERROR_RESOURCES);
  +      XPATHBundle =  loadResourceBundle(XPATH_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XPATHBundle;
   
  -    if (fResourceBundle != null)
  +    if (XPATHBundle != null)
       {
  -      String msgKey = XPATHErrorResources.getWarningKey(errorCode);
  -
  -      return createXPATHMsg(fResourceBundle, msgKey, args);
  +      return createXPATHMsg(XPATHBundle, 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.
  -   *
  -   * @param errorCode The key for the message text.
  -   * @param args      The arguments to be used as replacement text
  -   *                  in the message created.
  -   *
  -   * @return The formatted message string.
  -   */
  -  public static final String createXPATHMessage(int errorCode, Object 
args[])  //throws Exception 
  -  {
  -
  -    if (XPATHBundle == null)
  -      XPATHBundle =
  -        loadResourceBundle(XPATH_ERROR_RESOURCES);
  -
  -    ResourceBundle fResourceBundle = XPATHBundle;
   
  -    if (fResourceBundle != null)
  -    {
  -      String msgKey = XPATHErrorResources.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,24 +151,21 @@
      *
      * @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);
  +      XPATHBundle =  loadResourceBundle(XPATH_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XPATHBundle;
   
  -    if (fResourceBundle != null)
  +    if (XPATHBundle != null)
       {
  -      return createXPATHMsg(fResourceBundle, msgKey, args);
  +      return createXPATHMsg(XPATHBundle, 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.
  @@ -213,8 +179,8 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createXPATHMsg(ResourceBundle fResourceBundle,
  -                                            String msgKey, Object args[])  
//throws Exception 
  +  public static final String createXPATHMsg(ListResourceBundle 
fResourceBundle,
  +                                            String msgKey, Object args[])  
//throws Exception
     {
   
       String fmsg = null;
  @@ -222,11 +188,11 @@
       String msg = null;
   
       if (msgKey != null)
  -      msg = fResourceBundle.getString(msgKey);
  +      msg = fResourceBundle.getString( msgKey); 
   
       if (msg == null)
       {
  -      msg = fResourceBundle.getString(XPATHErrorResources.BAD_CODE);
  +      msg = fResourceBundle.getString( XPATHErrorResources.BAD_CODE);
         throwex = true;
       }
   
  @@ -273,22 +239,18 @@
      * @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);
  +      XSLTBundle = loadResourceBundle(XSLT_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XSLTBundle;
   
  -    if (fResourceBundle != null)
  +    if (XSLTBundle != null)
       {
  -      String msgKey = XSLTErrorResources.getWarningKey(errorCode);
  -
  -      return createMsg(fResourceBundle, msgKey, args);
  +      return createMsg(XSLTBundle, msgKey, args);
       }
       else
         return "Could not load any resource bundles.";
  @@ -298,57 +260,27 @@
      * Creates a message from the specified key and replacement
      * arguments, localized to the given locale.
      *
  -   * @param errorCode The key for the message text.
  +   * @param msgKey    The key for the message text.
      * @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(String msgKey, Object args[])  
//throws Exception
     {
   
       if (XSLTBundle == null)
  -      XSLTBundle =
  -        loadResourceBundle(XSLT_ERROR_RESOURCES);
  +      XSLTBundle = loadResourceBundle(XSLT_ERROR_RESOURCES);
   
  -    ResourceBundle fResourceBundle = XSLTBundle;
   
  -    if (fResourceBundle != null)
  +    if (XSLTBundle != null)
       {
  -      return createMsg(fResourceBundle, msgKey, args);
  +      return createMsg(XSLTBundle, 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.
  -   *
  -   * @param errorCode The key for the message text.
  -   * @param args      The arguments to be used as replacement text
  -   *                  in the message created.
  -   *
  -   * @return The formatted message string.
  -   */
  -  public static final String createMessage(int errorCode, Object args[])  
//throws Exception 
  -  {
  -
  -    if (XSLTBundle == null)
  -      XSLTBundle =
  -        loadResourceBundle(XSLT_ERROR_RESOURCES);
  -
  -    ResourceBundle fResourceBundle = XSLTBundle;
  -
  -    if (fResourceBundle != null)
  -    {
  -      String msgKey = XSLTErrorResources.getMessageKey(errorCode);
  -
  -      return createMsg(fResourceBundle, msgKey, args);
  -    }
  -    else
  -      return "Could not load any resource bundles.";
  -  }
   
     /**
      * Creates a message from the specified key and replacement
  @@ -363,8 +295,8 @@
      *
      * @return The formatted message string.
      */
  -  public static final String createMsg(ResourceBundle fResourceBundle,
  -                                       String msgKey, Object args[])  
//throws Exception 
  +  public static final String createMsg(ListResourceBundle fResourceBundle,
  +     String msgKey, Object args[])  //throws Exception
     {
   
       String fmsg = null;
  @@ -372,7 +304,7 @@
       String msg = null;
   
       if (msgKey != null)
  -      msg = fResourceBundle.getString(msgKey);
  +      msg = fResourceBundle.getString( msgKey);
   
       if (msg == null)
       {
  @@ -415,78 +347,6 @@
       return fmsg;
     }
   
  -  /**
  -   * Creates a message from the specified key and replacement
  -   * arguments, localized to the given locale.
  -   *
  -   * @param bundleName The name of the resource bundle to be
  -   *                  used.
  -   * @param errorCode The key for the message text.
  -   * @param args      The arguments to be used as replacement text
  -   *                  in the message created.
  -   *
  -   * @return The formatted message string.
  -   *
  -   * @throws Exception if the message can not be loaded.
  -   */
  -  public String createMessage(String bundleName, int errorCode, Object 
args[])
  -          throws Exception
  -  {
  -
  -    boolean throwex = false;
  -    int majorCode;
  -    int minorCode;
  -    String fmsg = null;
  -    ResourceBundle aResourceBundle = null;
  -
  -    aResourceBundle = loadResourceBundle(bundleName);
  -
  -    String msgKey = XSLTErrorResources.getMessageKey(errorCode);
  -    String msg = null;
  -
  -    if (msgKey != null)
  -      msg = aResourceBundle.getString(msgKey);
  -
  -    if (msg == null)
  -    {
  -      msg = aResourceBundle.getString(BAD_CODE);
  -      throwex = true;
  -    }
  -
  -    if (args != null)
  -    {
  -      try
  -      {
  -
  -        // Do this to keep format from crying.
  -        // This is better than making a bunch of conditional
  -        // code all over the place.
  -        int n = args.length;
  -
  -        for (int i = 0; i < n; i++)
  -        {
  -          if (null == args[i])
  -            args[i] = "";
  -        }
  -
  -        fmsg = java.text.MessageFormat.format(msg, args);
  -      }
  -      catch (Exception e)
  -      {
  -        fmsg = aResourceBundle.getString(FORMAT_FAILED);
  -        fmsg += " " + msg;
  -      }
  -    }
  -    else
  -      fmsg = msg;
  -
  -    if (throwex)
  -    {
  -      throw new RuntimeException(fmsg);
  -    }
  -
  -    return fmsg;
  -  }
   
     /**
      * Return a named ResourceBundle for a particular locale.  This method 
mimics the behavior
  @@ -499,19 +359,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 +380,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.23.10.3 +1780 -631 
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.23.10.2
  retrieving revision 1.23.10.3
  diff -u -r1.23.10.2 -r1.23.10.3
  --- XSLTErrorResources.java   26 Sep 2002 13:58:36 -0000      1.23.10.2
  +++ XSLTErrorResources.java   17 Jan 2003 00:48:24 -0000      1.23.10.3
  @@ -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,1215 +56,2445 @@
    */
   package org.apache.xalan.res;
   
  -import java.io.IOException;
  -import java.io.InputStream;
  -import java.text.DecimalFormat;
  -import java.util.Locale;
  +
   import java.util.MissingResourceException;
  -import java.util.PropertyResourceBundle;
  +import java.util.Locale;
   import java.util.ResourceBundle;
  +import java.util.ListResourceBundle;
  +
  +import java.text.DecimalFormat;
  +
  +import org.apache.xalan.templates.Constants;
   
   /**
    * Set up error messages.
    * We build a two dimensional array of message keys and
    * message strings. In order to add a new message here,
  - * you need to first update the count of messages(MAX_CODE)or
  - * the count of warnings(MAX_WARNING). The array will be
  - * automatically filled in with the keys, but you need to
  - * fill in the actual message string. Follow the instructions
  - * below.
  + * you need to first add a String constant. And 
  + *  you need to enter key , value pair as part of contents
  + * Array. You also need to update MAX_CODE for error strings
  + * and MAX_WARNING for warnings ( Needed for only information
  + * purpose )
    */
  -public class XSLTErrorResources extends PropertyResourceBundle
  +public class XSLTErrorResources extends ListResourceBundle
   {
  -  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";
  +/*
  + * This file contains error and warning messages related to Xalan Error
  + * Handling.
  + *
  + *  General notes to translators:
  + *
  + *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
  + *     components.
  + *     XSLT is an acronym for "XML Stylesheet Language: Transformations".
  + *     XSLTC is an acronym for XSLT Compiler.
  + *
  + *  2) A stylesheet is a description of how to transform an input XML 
document
  + *     into a resultant XML document (or HTML document or text).  The
  + *     stylesheet itself is described in the form of an XML document.
  + *
  + *  3) A template is a component of a stylesheet that is used to match a
  + *     particular portion of an input document and specifies the form of the
  + *     corresponding portion of the output document.
  + *
  + *  4) An element is a mark-up tag in an XML document; an attribute is a
  + *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
  + *     "elem" is an element name, "attr" and "attr2" are attribute names with
  + *     the values "val" and "val2", respectively.
  + *
  + *  5) A namespace declaration is a special attribute that is used to 
associate
  + *     a prefix with a URI (the namespace).  The meanings of element names 
and
  + *     attribute names that use that prefix are defined with respect to that
  + *     namespace.
  + *
  + *  6) "Translet" is an invented term that describes the class file that
  + *     results from compiling an XML stylesheet into a Java class.
  + *
  + *  7) XPath is a specification that describes a notation for identifying
  + *     nodes in a tree-structured representation of an XML document.  An
  + *     instance of that notation is referred to as an XPath expression.
  + *
  + */
  +
  +  /** 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;
   
  -  /** The warning suffix for construction error property keys.   */
  -  public static final String WARNING_SUFFIX = "WR";
  +  /** Maximum total warnings and error messages.          */
  +  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
   
  -//  /** 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;
   
  +  /* 
  +   * Static variables
  +   */
  +  public static final String ER_NO_CURLYBRACE = "ER_NO_CURLYBRACE";;
  +  public static final String ER_ILLEGAL_ATTRIBUTE = "ER_ILLEGAL_ATTRIBUTE";
  +  public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = 
"ER_NULL_SOURCENODE_APPLYIMPORTS";
  +  public static final String ER_CANNOT_ADD = "ER_CANNOT_ADD"; 
  +  public static final String 
ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES="ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES";
  +  public static final String ER_NO_NAME_ATTRIB = "ER_NO_NAME_ATTRIB";
  +  public static final String ER_TEMPLATE_NOT_FOUND = "ER_TEMPLATE_NOT_FOUND";
  +  public static final String ER_CANT_RESOLVE_NAME_AVT = 
"ER_CANT_RESOLVE_NAME_AVT";
  +  public static final String ER_REQUIRES_ATTRIB = "ER_REQUIRES_ATTRIB";
  +  public static final String ER_MUST_HAVE_TEST_ATTRIB = 
"ER_MUST_HAVE_TEST_ATTRIB";
  +  public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =
  +      "ER_BAD_VAL_ON_LEVEL_ATTRIB";
  +  public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =
  +      "ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  +  public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 
  +      "ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  +  public static final String ER_NEED_MATCH_ATTRIB = "ER_NEED_MATCH_ATTRIB";
  +  public static final String ER_NEED_NAME_OR_MATCH_ATTRIB = 
  +      "ER_NEED_NAME_OR_MATCH_ATTRIB";
  +  public static final String ER_CANT_RESOLVE_NSPREFIX =
  +      "ER_CANT_RESOLVE_NSPREFIX";
  +  public static final String ER_ILLEGAL_VALUE = "ER_ILLEGAL_VALUE";
  +  public static final String ER_NO_OWNERDOC = "ER_NO_OWNERDOC";
  +  public static final String ER_ELEMTEMPLATEELEM_ERR 
="ER_ELEMTEMPLATEELEM_ERR";
  +  public static final String ER_NULL_CHILD = "ER_NULL_CHILD";
  +  public static final String ER_NEED_SELECT_ATTRIB = "ER_NEED_SELECT_ATTRIB";
  +  public static final String ER_NEED_TEST_ATTRIB = "ER_NEED_TEST_ATTRIB";
  +  public static final String ER_NEED_NAME_ATTRIB = "ER_NEED_NAME_ATTRIB";
  +  public static final String ER_NO_CONTEXT_OWNERDOC = 
"ER_NO_CONTEXT_OWNERDOC";
  +  public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 
  +      "ER_COULD_NOT_CREATE_XML_PROC_LIAISON";
  +  public static final String ER_PROCESS_NOT_SUCCESSFUL = 
  +      "ER_PROCESS_NOT_SUCCESSFUL";
  +  public static final String ER_NOT_SUCCESSFUL = "ER_NOT_SUCCESSFUL";
  +  public static final String ER_ENCODING_NOT_SUPPORTED = 
  +      "ER_ENCODING_NOT_SUPPORTED";
  +  public static final String ER_COULD_NOT_CREATE_TRACELISTENER = 
  +      "ER_COULD_NOT_CREATE_TRACELISTENER";
  +  public static final String ER_KEY_REQUIRES_NAME_ATTRIB = 
  +      "ER_KEY_REQUIRES_NAME_ATTRIB";
  +  public static final String ER_KEY_REQUIRES_MATCH_ATTRIB = 
  +      "ER_KEY_REQUIRES_MATCH_ATTRIB";
  +  public static final String ER_KEY_REQUIRES_USE_ATTRIB = 
  +      "ER_KEY_REQUIRES_USE_ATTRIB";
  +  public static final String ER_REQUIRES_ELEMENTS_ATTRIB = 
  +      "ER_REQUIRES_ELEMENTS_ATTRIB";
  +  public static final String ER_MISSING_PREFIX_ATTRIB = 
  +      "ER_MISSING_PREFIX_ATTRIB";
  +  public static final String ER_BAD_STYLESHEET_URL = "ER_BAD_STYLESHEET_URL";
  +  public static final String ER_FILE_NOT_FOUND = "ER_FILE_NOT_FOUND";
  +  public static final String ER_IOEXCEPTION = "ER_IOEXCEPTION";
  +  public static final String ER_NO_HREF_ATTRIB = "ER_NO_HREF_ATTRIB";
  +  public static final String ER_STYLESHEET_INCLUDES_ITSELF = 
  +      "ER_STYLESHEET_INCLUDES_ITSELF";
  +  public static final String ER_PROCESSINCLUDE_ERROR 
="ER_PROCESSINCLUDE_ERROR";
  +  public static final String ER_MISSING_LANG_ATTRIB = 
"ER_MISSING_LANG_ATTRIB";
  +  public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 
  +      "ER_MISSING_CONTAINER_ELEMENT_COMPONENT";
  +  public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 
  +      "ER_CAN_ONLY_OUTPUT_TO_ELEMENT";
  +  public static final String ER_PROCESS_ERROR = "ER_PROCESS_ERROR";
  +  public static final String ER_UNIMPLNODE_ERROR = "ER_UNIMPLNODE_ERROR";
  +  public static final String ER_NO_SELECT_EXPRESSION 
="ER_NO_SELECT_EXPRESSION";
  +  public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR = 
  +      "ER_CANNOT_SERIALIZE_XSLPROCESSOR";
  +  public static final String ER_NO_INPUT_STYLESHEET = 
"ER_NO_INPUT_STYLESHEET";
  +  public static final String ER_FAILED_PROCESS_STYLESHEET = 
  +      "ER_FAILED_PROCESS_STYLESHEET";
  +  public static final String ER_COULDNT_PARSE_DOC = "ER_COULDNT_PARSE_DOC";
  +  public static final String ER_COULDNT_FIND_FRAGMENT = 
  +      "ER_COULDNT_FIND_FRAGMENT";
  +  public static final String ER_NODE_NOT_ELEMENT = "ER_NODE_NOT_ELEMENT";
  +  public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 
  +      "ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB";
  +  public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 
  +      "ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB";
  +  public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG = 
  +      "ER_NO_CLONE_OF_DOCUMENT_FRAG";
  +  public static final String ER_CANT_CREATE_ITEM = "ER_CANT_CREATE_ITEM";
  +  public static final String ER_XMLSPACE_ILLEGAL_VALUE = 
  +      "ER_XMLSPACE_ILLEGAL_VALUE";
  +  public static final String ER_NO_XSLKEY_DECLARATION = 
  +      "ER_NO_XSLKEY_DECLARATION";
  +  public static final String ER_CANT_CREATE_URL = "ER_CANT_CREATE_URL";
  +  public static final String ER_XSLFUNCTIONS_UNSUPPORTED = 
  +      "ER_XSLFUNCTIONS_UNSUPPORTED";
  +  public static final String ER_PROCESSOR_ERROR = "ER_PROCESSOR_ERROR";
  +  public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET = 
  +      "ER_NOT_ALLOWED_INSIDE_STYLESHEET";
  +  public static final String ER_RESULTNS_NOT_SUPPORTED = 
  +      "ER_RESULTNS_NOT_SUPPORTED";
  +  public static final String ER_DEFAULTSPACE_NOT_SUPPORTED = 
  +      "ER_DEFAULTSPACE_NOT_SUPPORTED";
  +  public static final String ER_INDENTRESULT_NOT_SUPPORTED = 
  +      "ER_INDENTRESULT_NOT_SUPPORTED";
  +  public static final String ER_ILLEGAL_ATTRIB = "ER_ILLEGAL_ATTRIB";
  +  public static final String ER_UNKNOWN_XSL_ELEM = "ER_UNKNOWN_XSL_ELEM";
  +  public static final String ER_BAD_XSLSORT_USE = "ER_BAD_XSLSORT_USE";
  +  public static final String ER_MISPLACED_XSLWHEN = "ER_MISPLACED_XSLWHEN";
  +  public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 
  +      "ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE";
  +  public static final String ER_MISPLACED_XSLOTHERWISE = 
  +      "ER_MISPLACED_XSLOTHERWISE";
  +  public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 
  +      "ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE";
  +  public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE = 
  +      "ER_NOT_ALLOWED_INSIDE_TEMPLATE";
  +  public static final String ER_UNKNOWN_EXT_NS_PREFIX = 
  +      "ER_UNKNOWN_EXT_NS_PREFIX";
  +  public static final String ER_IMPORTS_AS_FIRST_ELEM = 
  +      "ER_IMPORTS_AS_FIRST_ELEM";
  +  public static final String ER_IMPORTING_ITSELF = "ER_IMPORTING_ITSELF";
  +  public static final String ER_XMLSPACE_ILLEGAL_VAL 
="ER_XMLSPACE_ILLEGAL_VAL";
  +  public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 
  +      "ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL";
  +  public static final String ER_SAX_EXCEPTION = "ER_SAX_EXCEPTION";
  +  public static final String ER_FUNCTION_NOT_SUPPORTED = 
  +      "ER_FUNCTION_NOT_SUPPORTED";
  +  public static final String ER_XSLT_ERROR = "ER_XSLT_ERROR";
  +  public static final String ER_CURRENCY_SIGN_ILLEGAL=
  +      "ER_CURRENCY_SIGN_ILLEGAL";
  +  public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM 
= 
  +      "ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM";
  +  public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 
  +      "ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER";
  +  public static final String ER_REDIRECT_COULDNT_GET_FILENAME = 
  +      "ER_REDIRECT_COULDNT_GET_FILENAME";
  +  public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 
  +      "ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT";
  +  public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 
  +      "ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX";
  +  public static final String ER_MISSING_NS_URI = "ER_MISSING_NS_URI";
  +  public static final String ER_MISSING_ARG_FOR_OPTION = 
  +      "ER_MISSING_ARG_FOR_OPTION";
  +  public static final String ER_INVALID_OPTION = "ER_INVALID_OPTION";
  +  public static final String ER_MALFORMED_FORMAT_STRING = 
  +      "ER_MALFORMED_FORMAT_STRING";
  +  public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 
  +      "ER_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  +  public static final String ER_ILLEGAL_ATTRIBUTE_VALUE = 
  +      "ER_ILLEGAL_ATTRIBUTE_VALUE";
  +  public static final String ER_CHOOSE_REQUIRES_WHEN 
="ER_CHOOSE_REQUIRES_WHEN";
  +  public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH = 
  +      "ER_NO_APPLY_IMPORT_IN_FOR_EACH";
  +  public static final String ER_CANT_USE_DTM_FOR_OUTPUT = 
  +      "ER_CANT_USE_DTM_FOR_OUTPUT";
  +  public static final String ER_CANT_USE_DTM_FOR_INPUT = 
  +      "ER_CANT_USE_DTM_FOR_INPUT";
  +  public static final String ER_CALL_TO_EXT_FAILED = "ER_CALL_TO_EXT_FAILED";
  +  public static final String ER_PREFIX_MUST_RESOLVE = 
"ER_PREFIX_MUST_RESOLVE";
  +  public static final String ER_INVALID_UTF16_SURROGATE = 
  +      "ER_INVALID_UTF16_SURROGATE";
  +  public static final String ER_XSLATTRSET_USED_ITSELF = 
  +      "ER_XSLATTRSET_USED_ITSELF";
  +  public static final String ER_CANNOT_MIX_XERCESDOM 
="ER_CANNOT_MIX_XERCESDOM";
  +  public static final String ER_TOO_MANY_LISTENERS = "ER_TOO_MANY_LISTENERS";
  +  public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT = 
  +      "ER_IN_ELEMTEMPLATEELEM_READOBJECT";
  +  public static final String ER_DUPLICATE_NAMED_TEMPLATE = 
  +      "ER_DUPLICATE_NAMED_TEMPLATE";
  +  public static final String ER_INVALID_KEY_CALL = "ER_INVALID_KEY_CALL";
  +  public static final String ER_REFERENCING_ITSELF = "ER_REFERENCING_ITSELF";
  +  public static final String ER_ILLEGAL_DOMSOURCE_INPUT = 
  +      "ER_ILLEGAL_DOMSOURCE_INPUT";
  +  public static final String ER_CLASS_NOT_FOUND_FOR_OPTION = 
  +      "ER_CLASS_NOT_FOUND_FOR_OPTION";
  +  public static final String ER_REQUIRED_ELEM_NOT_FOUND = 
  +      "ER_REQUIRED_ELEM_NOT_FOUND";
  +  public static final String ER_INPUT_CANNOT_BE_NULL 
="ER_INPUT_CANNOT_BE_NULL";
  +  public static final String ER_URI_CANNOT_BE_NULL = "ER_URI_CANNOT_BE_NULL";
  +  public static final String ER_FILE_CANNOT_BE_NULL = 
"ER_FILE_CANNOT_BE_NULL";
  +  public static final String ER_SOURCE_CANNOT_BE_NULL = 
  +      "ER_SOURCE_CANNOT_BE_NULL";
  +  public static final String ER_CANNOT_OVERWRITE_CAUSE = 
  +      "ER_CANNOT_OVERWRITE_CAUSE";
  +  public static final String ER_CANNOT_INIT_BSFMGR = "ER_CANNOT_INIT_BSFMGR";
  +  public static final String ER_CANNOT_CMPL_EXTENSN = 
"ER_CANNOT_CMPL_EXTENSN";
  +  public static final String ER_CANNOT_CREATE_EXTENSN = 
  +      "ER_CANNOT_CREATE_EXTENSN";
  +  public static final String ER_INSTANCE_MTHD_CALL_REQUIRES = 
  +      "ER_INSTANCE_MTHD_CALL_REQUIRES";
  +  public static final String ER_INVALID_ELEMENT_NAME 
="ER_INVALID_ELEMENT_NAME";
  +  public static final String ER_ELEMENT_NAME_METHOD_STATIC = 
  +      "ER_ELEMENT_NAME_METHOD_STATIC";
  +  public static final String ER_EXTENSION_FUNC_UNKNOWN = 
  +      "ER_EXTENSION_FUNC_UNKNOWN";
  +  public static final String ER_MORE_MATCH_CONSTRUCTOR = 
  +      "ER_MORE_MATCH_CONSTRUCTOR";
  +  public static final String ER_MORE_MATCH_METHOD = "ER_MORE_MATCH_METHOD";
  +  public static final String ER_MORE_MATCH_ELEMENT = "ER_MORE_MATCH_ELEMENT";
  +  public static final String ER_INVALID_CONTEXT_PASSED = 
  +      "ER_INVALID_CONTEXT_PASSED";
  +  public static final String ER_POOL_EXISTS = "ER_POOL_EXISTS";
  +  public static final String ER_NO_DRIVER_NAME = "ER_NO_DRIVER_NAME";
  +  public static final String ER_NO_URL = "ER_NO_URL";
  +  public static final String ER_POOL_SIZE_LESSTHAN_ONE = 
  +      "ER_POOL_SIZE_LESSTHAN_ONE";
  +  public static final String ER_INVALID_DRIVER = "ER_INVALID_DRIVER";
  +  public static final String ER_NO_STYLESHEETROOT = "ER_NO_STYLESHEETROOT";
  +  public static final String ER_ILLEGAL_XMLSPACE_VALUE = 
  +      "ER_ILLEGAL_XMLSPACE_VALUE";
  +  public static final String ER_PROCESSFROMNODE_FAILED = 
  +      "ER_PROCESSFROMNODE_FAILED";
  +  public static final String ER_RESOURCE_COULD_NOT_LOAD = 
  +      "ER_RESOURCE_COULD_NOT_LOAD";
  +  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = 
  +      "ER_BUFFER_SIZE_LESSTHAN_ZERO";
  +  public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION = 
  +      "ER_UNKNOWN_ERROR_CALLING_EXTENSION";
  +  public static final String ER_NO_NAMESPACE_DECL = "ER_NO_NAMESPACE_DECL";
  +  public static final String ER_ELEM_CONTENT_NOT_ALLOWED = 
  +      "ER_ELEM_CONTENT_NOT_ALLOWED";
  +  public static final String ER_STYLESHEET_DIRECTED_TERMINATION = 
  +      "ER_STYLESHEET_DIRECTED_TERMINATION";
  +  public static final String ER_ONE_OR_TWO = "ER_ONE_OR_TWO";
  +  public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
  +  public static final String ER_COULD_NOT_LOAD_RESOURCE = 
  +      "ER_COULD_NOT_LOAD_RESOURCE";
  +  public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES = 
  +      "ER_CANNOT_INIT_DEFAULT_TEMPLATES";
  +  public static final String ER_RESULT_NULL = "ER_RESULT_NULL";
  +  public static final String ER_RESULT_COULD_NOT_BE_SET = 
  +      "ER_RESULT_COULD_NOT_BE_SET";
  +  public static final String ER_NO_OUTPUT_SPECIFIED = 
"ER_NO_OUTPUT_SPECIFIED";
  +  public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 
  +      "ER_CANNOT_TRANSFORM_TO_RESULT_TYPE";
  +  public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE = 
  +      "ER_CANNOT_TRANSFORM_SOURCE_TYPE";
  +  public static final String ER_NULL_CONTENT_HANDLER 
="ER_NULL_CONTENT_HANDLER";
  +  public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
  +  public static final String ER_CANNOT_CALL_PARSE = "ER_CANNOT_CALL_PARSE";
  +  public static final String ER_NO_PARENT_FOR_FILTER 
="ER_NO_PARENT_FOR_FILTER";
  +  public static final String ER_NO_STYLESHEET_IN_MEDIA = 
  +      "ER_NO_STYLESHEET_IN_MEDIA";
  +  public static final String ER_NO_STYLESHEET_PI = "ER_NO_STYLESHEET_PI";
  +  public static final String ER_NO_DEFAULT_IMPL = "ER_NO_DEFAULT_IMPL";
  +  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 
  +      "ER_CHUNKEDINTARRAY_NOT_SUPPORTED";
  +  public static final String ER_OFFSET_BIGGER_THAN_SLOT = 
  +      "ER_OFFSET_BIGGER_THAN_SLOT";
  +  public static final String ER_COROUTINE_NOT_AVAIL = 
"ER_COROUTINE_NOT_AVAIL";
  +  public static final String ER_COROUTINE_CO_EXIT = "ER_COROUTINE_CO_EXIT";
  +  public static final String ER_COJOINROUTINESET_FAILED = 
  +      "ER_COJOINROUTINESET_FAILED";
  +  public static final String ER_COROUTINE_PARAM = "ER_COROUTINE_PARAM";
  +  public static final String ER_PARSER_DOTERMINATE_ANSWERS = 
  +      "ER_PARSER_DOTERMINATE_ANSWERS";
  +  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = 
  +      "ER_NO_PARSE_CALL_WHILE_PARSING";
  +  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 
  +      "ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED";
  +  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 
  +      "ER_ITERATOR_AXIS_NOT_IMPLEMENTED";
  +  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = 
  +      "ER_ITERATOR_CLONE_NOT_SUPPORTED";
  +  public static final String ER_UNKNOWN_AXIS_TYPE = "ER_UNKNOWN_AXIS_TYPE";
  +  public static final String ER_AXIS_NOT_SUPPORTED = "ER_AXIS_NOT_SUPPORTED";
  +  public static final String ER_NO_DTMIDS_AVAIL = "ER_NO_DTMIDS_AVAIL";
  +  public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
  +  public static final String ER_NODE_NON_NULL = "ER_NODE_NON_NULL";
  +  public static final String ER_COULD_NOT_RESOLVE_NODE = 
  +      "ER_COULD_NOT_RESOLVE_NODE";
  +  public static final String ER_STARTPARSE_WHILE_PARSING = 
  +      "ER_STARTPARSE_WHILE_PARSING";
  +  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = 
  +      "ER_STARTPARSE_NEEDS_SAXPARSER";
  +  public static final String ER_COULD_NOT_INIT_PARSER = 
  +      "ER_COULD_NOT_INIT_PARSER";
  +  public static final String ER_PROPERTY_VALUE_BOOLEAN = 
  +      "ER_PROPERTY_VALUE_BOOLEAN";
  +  public static final String ER_EXCEPTION_CREATING_POOL = 
  +      "ER_EXCEPTION_CREATING_POOL";
  +  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 
  +      "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
  +  public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
  +  public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
  +  public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
  +  public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
  +  public static final String ER_SCHEME_FROM_NULL_STRING = 
  +      "ER_SCHEME_FROM_NULL_STRING";
  +  public static final String ER_SCHEME_NOT_CONFORMANT = 
  +      "ER_SCHEME_NOT_CONFORMANT";
  +  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = 
  +      "ER_HOST_ADDRESS_NOT_WELLFORMED";
  +  public static final String ER_PORT_WHEN_HOST_NULL = 
"ER_PORT_WHEN_HOST_NULL";
  +  public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
  +  public static final String ER_FRAG_FOR_GENERIC_URI 
="ER_FRAG_FOR_GENERIC_URI";
  +  public static final String ER_FRAG_WHEN_PATH_NULL = 
"ER_FRAG_WHEN_PATH_NULL";
  +  public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
  +  public static final String ER_PARSER_IN_USE = "ER_PARSER_IN_USE";
  +  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = 
  +      "ER_CANNOT_CHANGE_WHILE_PARSING";
  +  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = 
  +      "ER_SELF_CAUSATION_NOT_PERMITTED";
  +  public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT = 
  +      "ER_COULD_NOT_FIND_EXTERN_SCRIPT";
  +  public static final String ER_RESOURCE_COULD_NOT_FIND = 
  +      "ER_RESOURCE_COULD_NOT_FIND";
  +  public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 
  +      "ER_OUTPUT_PROPERTY_NOT_RECOGNIZED";
  +  public static final String ER_NO_USERINFO_IF_NO_HOST = 
  +      "ER_NO_USERINFO_IF_NO_HOST";
  +  public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
  +  public static final String ER_NO_QUERY_STRING_IN_PATH = 
  +      "ER_NO_QUERY_STRING_IN_PATH";
  +  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = 
  +      "ER_NO_FRAGMENT_STRING_IN_PATH";
  +  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = 
  +      "ER_CANNOT_INIT_URI_EMPTY_PARMS";
  +  public static final String ER_FAILED_CREATING_ELEMLITRSLT = 
  +      "ER_FAILED_CREATING_ELEMLITRSLT";
  +  public static final String ER_VALUE_SHOULD_BE_NUMBER = 
  +      "ER_VALUE_SHOULD_BE_NUMBER";
  +  public static final String ER_VALUE_SHOULD_EQUAL = "ER_VALUE_SHOULD_EQUAL";
  +  public static final String ER_FAILED_CALLING_METHOD = 
  +      "ER_FAILED_CALLING_METHOD";
  +  public static final String ER_FAILED_CREATING_ELEMTMPL = 
  +      "ER_FAILED_CREATING_ELEMTMPL";
  +  public static final String ER_CHARS_NOT_ALLOWED = "ER_CHARS_NOT_ALLOWED";
  +  public static final String ER_ATTR_NOT_ALLOWED = "ER_ATTR_NOT_ALLOWED";
  +  public static final String ER_METHOD_NOT_SUPPORTED 
="ER_METHOD_NOT_SUPPORTED";
  +  public static final String ER_BAD_VALUE = "ER_BAD_VALUE";
  +  public static final String ER_ATTRIB_VALUE_NOT_FOUND = 
  +      "ER_ATTRIB_VALUE_NOT_FOUND";
  +  public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED = 
  +      "ER_ATTRIB_VALUE_NOT_RECOGNIZED";
  +  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 
  +      "ER_INCRSAXSRCFILTER_NOT_RESTARTABLE";
  +  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = 
  +      "ER_XMLRDR_NOT_BEFORE_STARTPARSE";
  +  public static final String ER_NULL_URI_NAMESPACE = "ER_NULL_URI_NAMESPACE";
  +  public static final String ER_NUMBER_TOO_BIG = "ER_NUMBER_TOO_BIG";
  +  public static final String  ER_CANNOT_FIND_SAX1_DRIVER = 
  +      "ER_CANNOT_FIND_SAX1_DRIVER";
  +  public static final String  ER_SAX1_DRIVER_NOT_LOADED = 
  +      "ER_SAX1_DRIVER_NOT_LOADED";
  +  public static final String  ER_SAX1_DRIVER_NOT_INSTANTIATED = 
  +      "ER_SAX1_DRIVER_NOT_INSTANTIATED" ;
  +  public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 
  +      "ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER";
  +  public static final String  ER_PARSER_PROPERTY_NOT_SPECIFIED = 
  +      "ER_PARSER_PROPERTY_NOT_SPECIFIED";
  +  public static final String  ER_PARSER_ARG_CANNOT_BE_NULL = 
  +      "ER_PARSER_ARG_CANNOT_BE_NULL" ;
  +  public static final String  ER_FEATURE = "ER_FEATURE";
  +  public static final String ER_PROPERTY = "ER_PROPERTY" ;
  +  public static final String ER_NULL_ENTITY_RESOLVER 
="ER_NULL_ENTITY_RESOLVER";
  +  public static final String  ER_NULL_DTD_HANDLER = "ER_NULL_DTD_HANDLER" ;
  +  public static final String ER_NO_DRIVER_NAME_SPECIFIED = 
  +      "ER_NO_DRIVER_NAME_SPECIFIED";
  +  public static final String ER_NO_URL_SPECIFIED = "ER_NO_URL_SPECIFIED";
  +  public static final String ER_POOLSIZE_LESS_THAN_ONE = 
  +      "ER_POOLSIZE_LESS_THAN_ONE";
  +  public static final String ER_INVALID_DRIVER_NAME = 
"ER_INVALID_DRIVER_NAME";
  +  public static final String ER_ERRORLISTENER = "ER_ERRORLISTENER";
  +  public static final String ER_ASSERT_NO_TEMPLATE_PARENT = 
  +      "ER_ASSERT_NO_TEMPLATE_PARENT";
  +  public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 
  +      "ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR";
  +  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = 
  +      "ER_AXIS_TRAVERSER_NOT_SUPPORTED";
  +  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 
  +      "ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER";
  +  public static final String ER_NOT_ALLOWED_IN_POSITION = 
  +      "ER_NOT_ALLOWED_IN_POSITION";
  +  public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 
  +      "ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION";
  +  public static final String INVALID_TCHAR = "INVALID_TCHAR";
  +  public static final String ER_SYSTEMID_UNKNOWN = "ER_SYSTEMID_UNKNOWN";
  +  public static final String ER_LOCATION_UNKNOWN = "ER_LOCATION_UNKNOWN";
  +  public static final String INVALID_QNAME = "INVALID_QNAME";
  +  public static final String INVALID_ENUM = "INVALID_ENUM";
  +  public static final String INVALID_NMTOKEN = "INVALID_NMTOKEN";
  +  public static final String INVALID_NCNAME = "INVALID_NCNAME";
  +  public static final String INVALID_BOOLEAN = "INVALID_BOOLEAN";
  +  public static final String INVALID_NUMBER = "INVALID_NUMBER";
  +  public static final String ER_ARG_LITERAL = "ER_ARG_LITERAL";
  +  public static final String ER_DUPLICATE_GLOBAL_VAR 
="ER_DUPLICATE_GLOBAL_VAR";
  +  public static final String ER_DUPLICATE_VAR = "ER_DUPLICATE_VAR";
  +  public static final String ER_TEMPLATE_NAME_MATCH = 
"ER_TEMPLATE_NAME_MATCH";
  +  public static final String ER_INVALID_PREFIX = "ER_INVALID_PREFIX";
  +  public static final String ER_NO_ATTRIB_SET = "ER_NO_ATTRIB_SET";
  +
  +  public static final String WG_FOUND_CURLYBRACE = "WG_FOUND_CURLYBRACE";
  +  public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 
  +      "WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR";
  +  public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 
  +      "WG_EXPR_ATTRIB_CHANGED_TO_SELECT";
  +  public static final String WG_NO_LOCALE_IN_FORMATNUMBER = 
  +      "WG_NO_LOCALE_IN_FORMATNUMBER";
  +  public static final String WG_LOCALE_NOT_FOUND = "WG_LOCALE_NOT_FOUND";
  +  public static final String WG_CANNOT_MAKE_URL_FROM 
="WG_CANNOT_MAKE_URL_FROM";
  +  public static final String WG_CANNOT_LOAD_REQUESTED_DOC = 
  +      "WG_CANNOT_LOAD_REQUESTED_DOC";
  +  public static final String WG_CANNOT_FIND_COLLATOR 
="WG_CANNOT_FIND_COLLATOR";
  +  public static final String WG_FUNCTIONS_SHOULD_USE_URL = 
  +      "WG_FUNCTIONS_SHOULD_USE_URL";
  +  public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 
  +      "WG_ENCODING_NOT_SUPPORTED_USING_UTF8";
  +  public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 
  +      "WG_ENCODING_NOT_SUPPORTED_USING_JAVA";
  +  public static final String WG_SPECIFICITY_CONFLICTS = 
  +      "WG_SPECIFICITY_CONFLICTS";
  +  public static final String WG_PARSING_AND_PREPARING = 
  +      "WG_PARSING_AND_PREPARING";
  +  public static final String WG_ATTR_TEMPLATE = "WG_ATTR_TEMPLATE";
  +  public static final String 
WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = 
"WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP";
  +  public static final String WG_ATTRIB_NOT_HANDLED = "WG_ATTRIB_NOT_HANDLED";
  +  public static final String WG_NO_DECIMALFORMAT_DECLARATION = 
  +      "WG_NO_DECIMALFORMAT_DECLARATION";
  +  public static final String WG_OLD_XSLT_NS = "WG_OLD_XSLT_NS";
  +  public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 
  +      "WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED";
  +  public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 
  +      "WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE";
  +  public static final String WG_ILLEGAL_ATTRIBUTE = "WG_ILLEGAL_ATTRIBUTE";
  +  public static final String WG_COULD_NOT_RESOLVE_PREFIX = 
  +      "WG_COULD_NOT_RESOLVE_PREFIX";
  +  public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 
  +      "WG_STYLESHEET_REQUIRES_VERSION_ATTRIB";
  +  public static final String WG_ILLEGAL_ATTRIBUTE_NAME = 
  +      "WG_ILLEGAL_ATTRIBUTE_NAME";
  +  public static final String WG_ILLEGAL_ATTRIBUTE_VALUE = 
  +      "WG_ILLEGAL_ATTRIBUTE_VALUE";
  +  public static final String WG_EMPTY_SECOND_ARG = "WG_EMPTY_SECOND_ARG";
  +  public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 
  +      "WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML";
  +  public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 
  +      "WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME";
  +  public static final String WG_ILLEGAL_ATTRIBUTE_POSITION = 
  +      "WG_ILLEGAL_ATTRIBUTE_POSITION";
  +
  +
  +//  public static final int ER_NO_CURLYBRACE = 1;
     /*
      * Now fill in the message text.
  -   * First create an int for the message code. Make sure you
  -   * update MAX_CODE for error messages and MAX_WARNING for warnings
      * Then fill in the message text for that message code in the
      * array. Use the new error code as the index into the array.
      */
   
     // Error messages...
  -  public static final int ERROR0000 = 0;
   
  +  /** The lookup table for error messages.   */
  +  public static final Object[][] contents = {
  +
  +  /** Error message ID that has a null message, but takes in a single 
object.    */
  +  {"ER0000" , "{0}" },
  + 
   
     /** ER_NO_CURLYBRACE          */
  -  public static final int ER_NO_CURLYBRACE = 1;
  + 
  +//  public static final int ER_NO_CURLYBRACE = 1;
   
  +    { ER_NO_CURLYBRACE,                            
  +      "Error: Can not have '{' within expression"},
   
     /** ER_ILLEGAL_ATTRIBUTE          */
  -  public static final int ER_ILLEGAL_ATTRIBUTE = 2;
  +// public static final int ER_ILLEGAL_ATTRIBUTE = 2;
   
  +    { ER_ILLEGAL_ATTRIBUTE , 
  +     "{0} has an illegal attribute: {1}"},
   
     /** ER_NULL_SOURCENODE_APPLYIMPORTS          */
  -  public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;
  +//  public static final int ER_NULL_SOURCENODE_APPLYIMPORTS = 3;
   
  +  {ER_NULL_SOURCENODE_APPLYIMPORTS ,
  +      "sourceNode is null in xsl:apply-imports!"},
   
     /** ER_CANNOT_ADD          */
  -  public static final int ER_CANNOT_ADD = 4;
  + // public static final int ER_CANNOT_ADD = 4; 
  +
  +  {ER_CANNOT_ADD,
  +      "Can not add {0} to {1}"},
   
   
     /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */
  -  public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;
  +//  public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES = 5;
   
   
  +    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES, 
  +      "sourceNode is null in handleApplyTemplatesInstruction!"},
  +
     /** ER_NO_NAME_ATTRIB          */
  -  public static final int ER_NO_NAME_ATTRIB = 6;
  +//  public static final int ER_NO_NAME_ATTRIB = 6;
  +
   
  +    { ER_NO_NAME_ATTRIB, 
  +     "{0} must have a name attribute."},
   
     /** ER_TEMPLATE_NOT_FOUND          */
  -  public static final int ER_TEMPLATE_NOT_FOUND = 7;
  +  //public static final int ER_TEMPLATE_NOT_FOUND = 7;
   
   
  +    {ER_TEMPLATE_NOT_FOUND,
  +     "Could not find template named: {0}"},
  +
     /** ER_CANT_RESOLVE_NAME_AVT          */
  -  public static final int ER_CANT_RESOLVE_NAME_AVT = 8;
  +  // public static final int ER_CANT_RESOLVE_NAME_AVT = 8;
   
  +    {ER_CANT_RESOLVE_NAME_AVT,
  +      "Could not resolve name AVT in xsl:call-template."},
   
     /** ER_REQUIRES_ATTRIB          */
  -  public static final int ER_REQUIRES_ATTRIB = 9;
  +  //public static final int ER_REQUIRES_ATTRIB = 9;
  +
   
  +    {ER_REQUIRES_ATTRIB,
  +     "{0} requires attribute: {1}"},
   
     /** ER_MUST_HAVE_TEST_ATTRIB          */
  -  public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;
  + // public static final int ER_MUST_HAVE_TEST_ATTRIB = 10;
   
   
  +    { ER_MUST_HAVE_TEST_ATTRIB, 
  +      "{0} must have a ''test'' attribute."},
  +
     /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */
  -  public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;
  +//  public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB = 11;
  +
   
  +    {ER_BAD_VAL_ON_LEVEL_ATTRIB,
  +      "Bad value on level attribute: {0}"},
   
     /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */
  -  public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;
  +//  public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 12;
   
   
  +    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML, 
  +      "processing-instruction name can not be 'xml'"},
  +
     /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */
  -  public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;
  +//  public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 13;
  +
   
  +    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  +      "processing-instruction name must be a valid NCName: {0}"},
   
     /** ER_NEED_MATCH_ATTRIB          */
  -  public static final int ER_NEED_MATCH_ATTRIB = 14;
  +//  public static final int ER_NEED_MATCH_ATTRIB = 14;
  +
   
  +    { ER_NEED_MATCH_ATTRIB,
  +      "{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;
  +//  public static final int ER_NEED_NAME_OR_MATCH_ATTRIB = 15;
   
   
  +    { ER_NEED_NAME_OR_MATCH_ATTRIB,
  +      "{0} requires either a name or a match attribute."},
  +
     /** ER_CANT_RESOLVE_NSPREFIX          */
  -  public static final int ER_CANT_RESOLVE_NSPREFIX = 16;
  +//  public static final int ER_CANT_RESOLVE_NSPREFIX = 16;
  +
   
  +    {ER_CANT_RESOLVE_NSPREFIX,
  +      "Can not resolve namespace prefix: {0}"},
   
     /** ER_ILLEGAL_VALUE          */
  -  public static final int ER_ILLEGAL_VALUE = 17;
  +//  public static final int ER_ILLEGAL_VALUE = 17;
   
   
  +    { ER_ILLEGAL_VALUE,
  +     "xml:space has an illegal value: {0}"},
  +
     /** ER_NO_OWNERDOC          */
  -  public static final int ER_NO_OWNERDOC = 18;
  +//  public static final int ER_NO_OWNERDOC = 18;
  +
   
  +    { ER_NO_OWNERDOC,
  +      "Child node does not have an owner document!"},
   
     /** ER_ELEMTEMPLATEELEM_ERR          */
  -  public static final int ER_ELEMTEMPLATEELEM_ERR = 19;
  +//  public static final int ER_ELEMTEMPLATEELEM_ERR = 19;
   
   
  +    { ER_ELEMTEMPLATEELEM_ERR,
  +     "ElemTemplateElement error: {0}"},
  +
     /** ER_NULL_CHILD          */
  -  public static final int ER_NULL_CHILD = 20;
  +//  public static final int ER_NULL_CHILD = 20;
  +
   
  +    { ER_NULL_CHILD,
  +     "Trying to add a null child!"},
   
     /** ER_NEED_SELECT_ATTRIB          */
  -  public static final int ER_NEED_SELECT_ATTRIB = 21;
  +//  public static final int ER_NEED_SELECT_ATTRIB = 21;
   
   
  +    { ER_NEED_SELECT_ATTRIB,
  +     "{0} requires a select attribute."},
  +
     /** ER_NEED_TEST_ATTRIB          */
  -  public static final int ER_NEED_TEST_ATTRIB = 22;
  +//  public static final int ER_NEED_TEST_ATTRIB = 22;
  +
   
  +    { ER_NEED_TEST_ATTRIB ,
  +      "xsl:when must have a 'test' attribute."},
   
     /** ER_NEED_NAME_ATTRIB          */
  -  public static final int ER_NEED_NAME_ATTRIB = 23;
  +//  public static final int ER_NEED_NAME_ATTRIB = 23;
  +
   
  +    { ER_NEED_NAME_ATTRIB,
  +      "xsl:with-param must have a 'name' attribute."},
   
     /** ER_NO_CONTEXT_OWNERDOC          */
  -  public static final int ER_NO_CONTEXT_OWNERDOC = 24;
  +//  public static final int ER_NO_CONTEXT_OWNERDOC = 24;
   
   
  +    { ER_NO_CONTEXT_OWNERDOC,
  +      "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;
  +//  public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON = 25;
  +
   
  +    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,
  +      "Could not create XML TransformerFactory Liaison: {0}"},
   
     /** ER_PROCESS_NOT_SUCCESSFUL          */
  -  public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;
  +//  public static final int ER_PROCESS_NOT_SUCCESSFUL = 26;
   
   
  +    {ER_PROCESS_NOT_SUCCESSFUL,
  +      "Xalan: Process was not successful."},
  +
     /** ER_NOT_SUCCESSFUL          */
  -  public static final int ER_NOT_SUCCESSFUL = 27;
  +//  public static final int ER_NOT_SUCCESSFUL = 27;
  +
   
  +    { ER_NOT_SUCCESSFUL,
  +     "Xalan: was not successful."},
   
     /** ER_ENCODING_NOT_SUPPORTED          */
  -  public static final int ER_ENCODING_NOT_SUPPORTED = 28;
  +//  public static final int ER_ENCODING_NOT_SUPPORTED = 28;
   
   
  +    { ER_ENCODING_NOT_SUPPORTED,
  +     "Encoding not supported: {0}"},
  +
     /** ER_COULD_NOT_CREATE_TRACELISTENER          */
  -  public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;
  +//  public static final int ER_COULD_NOT_CREATE_TRACELISTENER = 29;
  +
   
  +    {ER_COULD_NOT_CREATE_TRACELISTENER,
  +      "Could not create TraceListener: {0}"},
   
     /** ER_KEY_REQUIRES_NAME_ATTRIB          */
  -  public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;
  +//  public static final int ER_KEY_REQUIRES_NAME_ATTRIB = 30;
   
   
  +    {ER_KEY_REQUIRES_NAME_ATTRIB,
  +      "xsl:key requires a 'name' attribute!"},
  +
     /** ER_KEY_REQUIRES_MATCH_ATTRIB          */
  -  public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;
  +//  public static final int ER_KEY_REQUIRES_MATCH_ATTRIB = 31;
  +
   
  +    { ER_KEY_REQUIRES_MATCH_ATTRIB,
  +      "xsl:key requires a 'match' attribute!"},
   
     /** ER_KEY_REQUIRES_USE_ATTRIB          */
  -  public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;
  +//  public static final int ER_KEY_REQUIRES_USE_ATTRIB = 32;
  +
   
  +    { ER_KEY_REQUIRES_USE_ATTRIB,
  +      "xsl:key requires a 'use' attribute!"},
   
     /** ER_REQUIRES_ELEMENTS_ATTRIB          */
  -  public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;
  +//  public static final int ER_REQUIRES_ELEMENTS_ATTRIB = 33;
   
   
  +    { ER_REQUIRES_ELEMENTS_ATTRIB,
  +      "(StylesheetHandler) {0} requires an ''elements'' attribute!"},
  +
     /** ER_MISSING_PREFIX_ATTRIB          */
  -  public static final int ER_MISSING_PREFIX_ATTRIB = 34;
  +//  public static final int ER_MISSING_PREFIX_ATTRIB = 34;
  +
   
  +    { ER_MISSING_PREFIX_ATTRIB,
  +      "(StylesheetHandler) {0} attribute ''prefix'' is missing"},
   
     /** ER_BAD_STYLESHEET_URL          */
  -  public static final int ER_BAD_STYLESHEET_URL = 35;
  +//  public static final int ER_BAD_STYLESHEET_URL = 35;
   
   
  +    { ER_BAD_STYLESHEET_URL,
  +     "Stylesheet URL is bad: {0}"},
  +
     /** ER_FILE_NOT_FOUND          */
  -  public static final int ER_FILE_NOT_FOUND = 36;
  +//  public static final int ER_FILE_NOT_FOUND = 36;
  +
   
  +    { ER_FILE_NOT_FOUND,
  +     "Stylesheet file was not found: {0}"},
   
     /** ER_IOEXCEPTION          */
  -  public static final int ER_IOEXCEPTION = 37;
  +//  public static final int ER_IOEXCEPTION = 37;
   
   
  +    { ER_IOEXCEPTION,
  +      "Had IO Exception with stylesheet file: {0}"},
  +
     /** ER_NO_HREF_ATTRIB          */
  -  public static final int ER_NO_HREF_ATTRIB = 38;
  +//  public static final int ER_NO_HREF_ATTRIB = 38;
  +
   
  +    { ER_NO_HREF_ATTRIB, 
  +      "(StylesheetHandler) Could not find href attribute for {0}"},
   
     /** ER_STYLESHEET_INCLUDES_ITSELF          */
  -  public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;
  +//  public static final int ER_STYLESHEET_INCLUDES_ITSELF = 39;
   
   
  +    { ER_STYLESHEET_INCLUDES_ITSELF, 
  +      "(StylesheetHandler) {0} is directly or indirectly including itself!"},
  +
     /** ER_PROCESSINCLUDE_ERROR          */
  -  public static final int ER_PROCESSINCLUDE_ERROR = 40;
  +//  public static final int ER_PROCESSINCLUDE_ERROR = 40;
  +
   
  +    { ER_PROCESSINCLUDE_ERROR,
  +      "StylesheetHandler.processInclude error, {0}"},
   
     /** ER_MISSING_LANG_ATTRIB          */
  -  public static final int ER_MISSING_LANG_ATTRIB = 41;
  +//  public static final int ER_MISSING_LANG_ATTRIB = 41;
  +
   
  +    { ER_MISSING_LANG_ATTRIB,
  +      "(StylesheetHandler) {0} attribute ''lang'' is missing"},
   
     /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */
  -  public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;
  +//  public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT = 42;
   
  +    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,
  +      "(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;
  +//  public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT = 43;
   
  +    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,
  +      "Can only output to an Element, DocumentFragment, Document, or 
PrintWriter."},
   
     /** ER_PROCESS_ERROR          */
  -  public static final int ER_PROCESS_ERROR = 44;
  +//  public static final int ER_PROCESS_ERROR = 44;
   
  +    { ER_PROCESS_ERROR,
  +     "StylesheetRoot.process error"},
   
     /** ER_UNIMPLNODE_ERROR          */
  -  public static final int ER_UNIMPLNODE_ERROR = 45;
  +//  public static final int ER_UNIMPLNODE_ERROR = 45;
   
  +    { ER_UNIMPLNODE_ERROR,
  +     "UnImplNode error: {0}"},
   
     /** ER_NO_SELECT_EXPRESSION          */
  -  public static final int ER_NO_SELECT_EXPRESSION = 46;
  +//  public static final int ER_NO_SELECT_EXPRESSION = 46;
   
  +    { ER_NO_SELECT_EXPRESSION,
  +      "Error! Did not find xpath select expression (-select)."},
   
     /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */
  -  public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR = 47;
  +//  public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR = 47;
   
  +    { ER_CANNOT_SERIALIZE_XSLPROCESSOR, 
  +      "Can not serialize an XSLProcessor!"},
   
     /** ER_NO_INPUT_STYLESHEET          */
  -  public static final int ER_NO_INPUT_STYLESHEET = 48;
  +//  public static final int ER_NO_INPUT_STYLESHEET = 48;
   
  +    { ER_NO_INPUT_STYLESHEET,
  +      "Stylesheet input was not specified!"},
   
     /** ER_FAILED_PROCESS_STYLESHEET          */
  -  public static final int ER_FAILED_PROCESS_STYLESHEET = 49;
  +//  public static final int ER_FAILED_PROCESS_STYLESHEET = 49;
   
  +    { ER_FAILED_PROCESS_STYLESHEET,
  +      "Failed to process stylesheet!"},
   
     /** ER_COULDNT_PARSE_DOC          */
  -  public static final int ER_COULDNT_PARSE_DOC = 50;
  +//  public static final int ER_COULDNT_PARSE_DOC = 50;
   
  +    { ER_COULDNT_PARSE_DOC,       
  +     "Could not parse {0} document!"},
   
     /** ER_COULDNT_FIND_FRAGMENT          */
  -  public static final int ER_COULDNT_FIND_FRAGMENT = 51;
  +//  public static final int ER_COULDNT_FIND_FRAGMENT = 51;
   
  +    { ER_COULDNT_FIND_FRAGMENT,
  +     "Could not find fragment: {0}"},
   
     /** ER_NODE_NOT_ELEMENT          */
  -  public static final int ER_NODE_NOT_ELEMENT = 52;
  + // public static final int ER_NODE_NOT_ELEMENT = 52;
   
  +    { ER_NODE_NOT_ELEMENT,
  +      "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;
  +//  public static final int ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB = 53;
   
  +    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,
  +      "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;
  +//  public static final int ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB = 54;
   
  +    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB, 
  +      "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;
  +//  public static final int ER_NO_CLONE_OF_DOCUMENT_FRAG = 55;
   
  +    { ER_NO_CLONE_OF_DOCUMENT_FRAG,
  +      "No clone of a document fragment!"},
   
     /** ER_CANT_CREATE_ITEM          */
  -  public static final int ER_CANT_CREATE_ITEM = 56;
  +//  public static final int ER_CANT_CREATE_ITEM = 56;
   
  +    { ER_CANT_CREATE_ITEM,
  +      "Can not create item in result tree: {0}"},
   
     /** ER_XMLSPACE_ILLEGAL_VALUE          */
  -  public static final int ER_XMLSPACE_ILLEGAL_VALUE = 57;
  +//  public static final int ER_XMLSPACE_ILLEGAL_VALUE = 57;
   
  +    { ER_XMLSPACE_ILLEGAL_VALUE,
  +      "xml:space in the source XML has an illegal value: {0}"},
   
     /** ER_NO_XSLKEY_DECLARATION          */
  -  public static final int ER_NO_XSLKEY_DECLARATION = 58;
  +//  public static final int ER_NO_XSLKEY_DECLARATION = 58;
   
  +    { ER_NO_XSLKEY_DECLARATION,
  +      "There is no xsl:key declaration for {0}!"},
   
     /** ER_CANT_CREATE_URL          */
  -  public static final int ER_CANT_CREATE_URL = 59;
  +//  public static final int ER_CANT_CREATE_URL = 59;
   
  +    { ER_CANT_CREATE_URL, 
  +     "Error! Cannot create url for: {0}"},
   
     /** ER_XSLFUNCTIONS_UNSUPPORTED          */
  -  public static final int ER_XSLFUNCTIONS_UNSUPPORTED = 60;
  +//  public static final int ER_XSLFUNCTIONS_UNSUPPORTED = 60;
   
  +    { ER_XSLFUNCTIONS_UNSUPPORTED,
  +     "xsl:functions is unsupported"},
   
     /** ER_PROCESSOR_ERROR          */
  -  public static final int ER_PROCESSOR_ERROR = 61;
  +//  public static final int ER_PROCESSOR_ERROR = 61;
   
  +    { ER_PROCESSOR_ERROR, 
  +     "XSLT TransformerFactory Error"},
   
     /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */
  -  public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET = 62;
  +//  public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET = 62;
   
  +    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,
  +      "(StylesheetHandler) {0} not allowed inside a stylesheet!"},
   
     /** ER_RESULTNS_NOT_SUPPORTED          */
  -  public static final int ER_RESULTNS_NOT_SUPPORTED = 63;
  +//  public static final int ER_RESULTNS_NOT_SUPPORTED = 63;
   
  +    { ER_RESULTNS_NOT_SUPPORTED, 
  +      "result-ns no longer supported!  Use xsl:output instead."},
   
     /** ER_DEFAULTSPACE_NOT_SUPPORTED          */
  -  public static final int ER_DEFAULTSPACE_NOT_SUPPORTED = 64;
  +//  public static final int ER_DEFAULTSPACE_NOT_SUPPORTED = 64;
   
  +    { ER_DEFAULTSPACE_NOT_SUPPORTED, 
  +      "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;
  +//  public static final int ER_INDENTRESULT_NOT_SUPPORTED = 65;
   
  +    { ER_INDENTRESULT_NOT_SUPPORTED,
  +      "indent-result no longer supported!  Use xsl:output instead."},
   
     /** ER_ILLEGAL_ATTRIB          */
  -  public static final int ER_ILLEGAL_ATTRIB = 66;
  +//  public static final int ER_ILLEGAL_ATTRIB = 66;
   
  +    { ER_ILLEGAL_ATTRIB,
  +      "(StylesheetHandler) {0} has an illegal attribute: {1}"},
   
     /** ER_UNKNOWN_XSL_ELEM          */
  -  public static final int ER_UNKNOWN_XSL_ELEM = 67;
  +//  public static final int ER_UNKNOWN_XSL_ELEM = 67;
   
  +    { ER_UNKNOWN_XSL_ELEM,
  +     "Unknown XSL element: {0}"},
   
     /** ER_BAD_XSLSORT_USE          */
  -  public static final int ER_BAD_XSLSORT_USE = 68;
  +//  public static final int ER_BAD_XSLSORT_USE = 68;
   
  +    { ER_BAD_XSLSORT_USE,
  +      "(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;
  +//  public static final int ER_MISPLACED_XSLWHEN = 69;
   
  +    { ER_MISPLACED_XSLWHEN,
  +      "(StylesheetHandler) misplaced xsl:when!"},
   
     /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */
  -  public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 70;
  +//  public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE = 70;
   
  +    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,
  +      "(StylesheetHandler) xsl:when not parented by xsl:choose!"},
   
     /** ER_MISPLACED_XSLOTHERWISE          */
  -  public static final int ER_MISPLACED_XSLOTHERWISE = 71;
  +//  public static final int ER_MISPLACED_XSLOTHERWISE = 71;
   
  +    { ER_MISPLACED_XSLOTHERWISE,
  +      "(StylesheetHandler) misplaced xsl:otherwise!"},
   
     /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */
  -  public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 72;
  +//  public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE = 72;
   
  +    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,
  +      "(StylesheetHandler) xsl:otherwise not parented by xsl:choose!"},
   
     /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */
  -  public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE = 73;
  +//  public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE = 73;
   
  +    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,
  +      "(StylesheetHandler) {0} is not allowed inside a template!"},
   
     /** ER_UNKNOWN_EXT_NS_PREFIX          */
  -  public static final int ER_UNKNOWN_EXT_NS_PREFIX = 74;
  +//  public static final int ER_UNKNOWN_EXT_NS_PREFIX = 74;
   
  +    { ER_UNKNOWN_EXT_NS_PREFIX, 
  +      "(StylesheetHandler) {0} extension namespace prefix {1} unknown"},
   
     /** ER_IMPORTS_AS_FIRST_ELEM          */
  -  public static final int ER_IMPORTS_AS_FIRST_ELEM = 75;
  +//  public static final int ER_IMPORTS_AS_FIRST_ELEM = 75;
   
  +    { ER_IMPORTS_AS_FIRST_ELEM, 
  +      "(StylesheetHandler) Imports can only occur as the first elements in 
the stylesheet!"},
   
     /** ER_IMPORTING_ITSELF          */
  -  public static final int ER_IMPORTING_ITSELF = 76;
  +//  public static final int ER_IMPORTING_ITSELF = 76;
   
  +    { ER_IMPORTING_ITSELF,
  +      "(StylesheetHandler) {0} is directly or indirectly importing itself!"},
   
     /** ER_XMLSPACE_ILLEGAL_VAL          */
  -  public static final int ER_XMLSPACE_ILLEGAL_VAL = 77;
  +//  public static final int ER_XMLSPACE_ILLEGAL_VAL = 77;
   
  +    { ER_XMLSPACE_ILLEGAL_VAL,
  +      "(StylesheetHandler) " + "xml:space has an illegal value: {0}"},
   
     /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */
  -  public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 78;
  +//  public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL = 78;
   
  +    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,
  +      "processStylesheet not succesfull!"},
   
     /** ER_SAX_EXCEPTION          */
  -  public static final int ER_SAX_EXCEPTION = 79;
  +//  public static final int ER_SAX_EXCEPTION = 79;
   
  +    { ER_SAX_EXCEPTION, 
  +     "SAX Exception"},
   
     /** ER_FUNCTION_NOT_SUPPORTED          */
  -  public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
  +//  public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
   
  +    { ER_FUNCTION_NOT_SUPPORTED, 
  +     "Function not supported!"},
   
     /** ER_XSLT_ERROR          */
  -  public static final int ER_XSLT_ERROR = 81;
  +//  public static final int ER_XSLT_ERROR = 81;
   
  +    { ER_XSLT_ERROR,
  +     "XSLT Error"},
   
     /** ER_CURRENCY_SIGN_ILLEGAL          */
  -  public static final int ER_CURRENCY_SIGN_ILLEGAL = 82;
  +//  public static final int ER_CURRENCY_SIGN_ILLEGAL = 82;
   
  +    { ER_CURRENCY_SIGN_ILLEGAL,
  +      "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;
  +//  public static final int ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM = 
83;
   
  +    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,
  +      "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;
  +//  public static final int ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER = 
84;
   
  +    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,
  +      "Can't resolve prefix of non-Prefix resolver!"},
   
     /** ER_REDIRECT_COULDNT_GET_FILENAME          */
  -  public static final int ER_REDIRECT_COULDNT_GET_FILENAME = 85;
  +//  public static final int ER_REDIRECT_COULDNT_GET_FILENAME = 85;
   
  +    { ER_REDIRECT_COULDNT_GET_FILENAME,
  +      "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;
  +//  public static final int ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT = 
86;
   
  +    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,
  +      "Can not build FormatterListener in Redirect extension!"},
   
     /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */
  -  public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 87;
  +//  public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX = 87;
   
  +    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,
  +      "Prefix in exclude-result-prefixes is not valid: {0}"},
   
     /** ER_MISSING_NS_URI          */
  -  public static final int ER_MISSING_NS_URI = 88;
  +//  public static final int ER_MISSING_NS_URI = 88;
   
  +    { ER_MISSING_NS_URI, 
  +      "Missing namespace URI for specified prefix"},
   
     /** ER_MISSING_ARG_FOR_OPTION          */
  -  public static final int ER_MISSING_ARG_FOR_OPTION = 89;
  +//  public static final int ER_MISSING_ARG_FOR_OPTION = 89;
   
  +    { ER_MISSING_ARG_FOR_OPTION,
  +      "Missing argument for option: {0}"},
   
     /** ER_INVALID_OPTION          */
  -  public static final int ER_INVALID_OPTION = 90;
  +//  public static final int ER_INVALID_OPTION = 90;
   
  +    { ER_INVALID_OPTION,
  +     "Invalid option: {0}"},
   
     /** ER_MALFORMED_FORMAT_STRING          */
  -  public static final int ER_MALFORMED_FORMAT_STRING = 91;
  +//  public static final int ER_MALFORMED_FORMAT_STRING = 91;
   
  +    { ER_MALFORMED_FORMAT_STRING,
  +     "Malformed format string: {0}"},
   
     /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */
  -  public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 92;
  +//  public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB = 92;
   
  +    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  +      "xsl:stylesheet requires a 'version' attribute!"},
   
     /** ER_ILLEGAL_ATTRIBUTE_VALUE          */
  -  public static final int ER_ILLEGAL_ATTRIBUTE_VALUE = 93;
  +//  public static final int ER_ILLEGAL_ATTRIBUTE_VALUE = 93;
   
  +    { ER_ILLEGAL_ATTRIBUTE_VALUE,
  +      "Attribute: {0} has an illegal value: {1}"},
   
     /** ER_CHOOSE_REQUIRES_WHEN          */
  -  public static final int ER_CHOOSE_REQUIRES_WHEN = 94;
  +//  public static final int ER_CHOOSE_REQUIRES_WHEN = 94;
   
  +    { ER_CHOOSE_REQUIRES_WHEN,
  +     "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;
  +//  public static final int ER_NO_APPLY_IMPORT_IN_FOR_EACH = 95;
   
  +    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,
  +      "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;
  +//  public static final int ER_CANT_USE_DTM_FOR_OUTPUT = 96;
   
  +    { ER_CANT_USE_DTM_FOR_OUTPUT,
  +      "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;
  +//  public static final int ER_CANT_USE_DTM_FOR_INPUT = 97;
   
  +    { ER_CANT_USE_DTM_FOR_INPUT,
  +      "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;
  +//  public static final int ER_CALL_TO_EXT_FAILED = 98;
   
  +    { ER_CALL_TO_EXT_FAILED,
  +      "Call to extension element failed: {0}"},
   
     /** ER_PREFIX_MUST_RESOLVE          */
  -  public static final int ER_PREFIX_MUST_RESOLVE = 99;
  +//  public static final int ER_PREFIX_MUST_RESOLVE = 99;
   
  +    { ER_PREFIX_MUST_RESOLVE,
  +      "Prefix must resolve to a namespace: {0}"},
   
     /** ER_INVALID_UTF16_SURROGATE          */
  -  public static final int ER_INVALID_UTF16_SURROGATE = 100;
  +//  public static final int ER_INVALID_UTF16_SURROGATE = 100;
   
  +    { ER_INVALID_UTF16_SURROGATE,
  +      "Invalid UTF-16 surrogate detected: {0} ?"},
   
     /** ER_XSLATTRSET_USED_ITSELF          */
  -  public static final int ER_XSLATTRSET_USED_ITSELF = 101;
  + // public static final int ER_XSLATTRSET_USED_ITSELF = 101;
   
  +    { ER_XSLATTRSET_USED_ITSELF,
  +      "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;
  +//  public static final int ER_CANNOT_MIX_XERCESDOM = 102;
   
  +    { ER_CANNOT_MIX_XERCESDOM,
  +      "Can not mix non Xerces-DOM input with Xerces-DOM output!"},
   
     /** ER_TOO_MANY_LISTENERS          */
  -  public static final int ER_TOO_MANY_LISTENERS = 103;
  +//  public static final int ER_TOO_MANY_LISTENERS = 103;
   
  +    { ER_TOO_MANY_LISTENERS,
  +      "addTraceListenersToStylesheet - TooManyListenersException"},
   
     /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */
  -  public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
  +//  public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
   
  +    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,
  +      "In ElemTemplateElement.readObject: {0}"},
   
     /** ER_DUPLICATE_NAMED_TEMPLATE          */
  -  public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
  +//  public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
   
  +    { ER_DUPLICATE_NAMED_TEMPLATE,
  +      "Found more than one template named: {0}"},
   
     /** ER_INVALID_KEY_CALL          */
  -  public static final int ER_INVALID_KEY_CALL = 106;
  +//  public static final int ER_INVALID_KEY_CALL = 106;
  +
  +    { ER_INVALID_KEY_CALL,
  +      "Invalid function call: recursive key() calls are not allowed"},
   
  -  
     /** Variable is referencing itself          */
  -  public static final int ER_REFERENCING_ITSELF = 107;
  +//  public static final int ER_REFERENCING_ITSELF = 107;
  +
  +    { ER_REFERENCING_ITSELF,
  +      "Variable {0} is directly or indirectly referencing itself!"},
   
  -  
     /** Illegal DOMSource input          */
  -  public static final int ER_ILLEGAL_DOMSOURCE_INPUT = 108;
  +//  public static final int ER_ILLEGAL_DOMSOURCE_INPUT = 108;
  +
  +    { ER_ILLEGAL_DOMSOURCE_INPUT,
  +      "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;
  +//  public static final int ER_CLASS_NOT_FOUND_FOR_OPTION = 109;
  +
  +    { ER_CLASS_NOT_FOUND_FOR_OPTION,
  +     "Class file not found for option {0}"},
   
  -     
        /** Required Element not found         */
  -  public static final int ER_REQUIRED_ELEM_NOT_FOUND = 110;
  +//  public static final int ER_REQUIRED_ELEM_NOT_FOUND = 110;
  +
  +    { ER_REQUIRED_ELEM_NOT_FOUND,
  +     "Required Element not found: {0}"},
   
  -  
     /** InputStream cannot be null         */
  -  public static final int ER_INPUT_CANNOT_BE_NULL = 111;
  +//  public static final int ER_INPUT_CANNOT_BE_NULL = 111;
  +
  +    { ER_INPUT_CANNOT_BE_NULL,
  +     "InputStream cannot be null"},
   
  -  
     /** URI cannot be null         */
  -  public static final int ER_URI_CANNOT_BE_NULL = 112;
  +//  public static final int ER_URI_CANNOT_BE_NULL = 112;
  +
  +    { ER_URI_CANNOT_BE_NULL,
  +     "URI cannot be null"},
   
  -  
     /** File cannot be null         */
  -  public static final int ER_FILE_CANNOT_BE_NULL = 113;
  +//  public static final int ER_FILE_CANNOT_BE_NULL = 113;
  +
  +    { ER_FILE_CANNOT_BE_NULL,
  +     "File cannot be null"},
   
  -  
      /** InputSource cannot be null         */
  -  public static final int ER_SOURCE_CANNOT_BE_NULL = 114;
  +//  public static final int ER_SOURCE_CANNOT_BE_NULL = 114;
  +
  +    { ER_SOURCE_CANNOT_BE_NULL,
  +             "InputSource cannot be null"},
   
  -  
     /** Can't overwrite cause         */
  -  public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  +//  public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  +
  +    { ER_CANNOT_OVERWRITE_CAUSE,
  +             "Cannot overwrite cause"},
   
  -  
     /** Could not initialize BSF Manager        */
  -  public static final int ER_CANNOT_INIT_BSFMGR = 116;
  +//  public static final int ER_CANNOT_INIT_BSFMGR = 116;
  +
  +    { ER_CANNOT_INIT_BSFMGR,
  +             "Could not initialize BSF Manager"},
   
  -  
     /** Could not compile extension       */
  -  public static final int ER_CANNOT_CMPL_EXTENSN = 117;
  +//  public static final int ER_CANNOT_CMPL_EXTENSN = 117;
  +
  +    { ER_CANNOT_CMPL_EXTENSN,
  +             "Could not compile extension"},
   
  -  
     /** Could not create extension       */
  -  public static final int ER_CANNOT_CREATE_EXTENSN = 118;
  +//  public static final int ER_CANNOT_CREATE_EXTENSN = 118;
  +
  +    { ER_CANNOT_CREATE_EXTENSN,
  +      "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;
  +//  public static final int ER_INSTANCE_MTHD_CALL_REQUIRES = 119;
  +
  +    { ER_INSTANCE_MTHD_CALL_REQUIRES,
  +      "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;
  +//  public static final int ER_INVALID_ELEMENT_NAME = 120;
  +
  +    { ER_INVALID_ELEMENT_NAME,
  +      "Invalid element name specified {0}"},
   
  -  
      /** Element name method must be static      */
  -  public static final int ER_ELEMENT_NAME_METHOD_STATIC = 121;
  +//  public static final int ER_ELEMENT_NAME_METHOD_STATIC = 121;
  +
  +    { ER_ELEMENT_NAME_METHOD_STATIC,
  +      "Element name method must be static {0}"},
   
  -  
      /** Extension function {0} : {1} is unknown      */
  -  public static final int ER_EXTENSION_FUNC_UNKNOWN = 122;
  +//  public static final int ER_EXTENSION_FUNC_UNKNOWN = 122;
  +
  +    { ER_EXTENSION_FUNC_UNKNOWN,
  +             "Extension function {0} : {1} is unknown"},
   
  -  
      /** More than one best match for constructor for       */
  -  public static final int ER_MORE_MATCH_CONSTRUCTOR = 123;
  +//  public static final int ER_MORE_MATCH_CONSTRUCTOR = 123;
  +
  +    { ER_MORE_MATCH_CONSTRUCTOR,
  +             "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;
  +//  public static final int ER_MORE_MATCH_METHOD = 124;
  +
  +    { ER_MORE_MATCH_METHOD,
  +             "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;
  +//  public static final int ER_MORE_MATCH_ELEMENT = 125;
  +
  +    { ER_MORE_MATCH_ELEMENT,
  +             "More than one best match for element method {0}"},
   
  -  
      /** Invalid context passed to evaluate       */
  -  public static final int ER_INVALID_CONTEXT_PASSED = 126;
  +//  public static final int ER_INVALID_CONTEXT_PASSED = 126;
  +
  +    { ER_INVALID_CONTEXT_PASSED,
  +             "Invalid context passed to evaluate {0}"},
   
  -  
      /** Pool already exists       */
  -  public static final int ER_POOL_EXISTS = 127;
  +//  public static final int ER_POOL_EXISTS = 127;
  +
  +    { ER_POOL_EXISTS,
  +             "Pool already exists"},
   
  -  
      /** No driver Name specified      */
  -  public static final int ER_NO_DRIVER_NAME = 128;
  +//  public static final int ER_NO_DRIVER_NAME = 128;
  +
  +    { ER_NO_DRIVER_NAME,
  +             "No driver Name specified"},
   
  -  
      /** No URL specified     */
  -  public static final int ER_NO_URL = 129;
  +//  public static final int ER_NO_URL = 129;
  +
  +    { ER_NO_URL,
  +             "No URL specified"},
   
  -  
      /** Pool size is less than one    */
  -  public static final int ER_POOL_SIZE_LESSTHAN_ONE = 130;
  +//  public static final int ER_POOL_SIZE_LESSTHAN_ONE = 130;
  +
  +    { ER_POOL_SIZE_LESSTHAN_ONE,
  +             "Pool size is less than one!"},
   
  -  
      /** Invalid driver name specified    */
  -  public static final int ER_INVALID_DRIVER = 131;
  +//  public static final int ER_INVALID_DRIVER = 131;
  +
  +    { ER_INVALID_DRIVER,
  +             "Invalid driver name specified!"},
   
  -  
      /** Did not find the stylesheet root    */
  -  public static final int ER_NO_STYLESHEETROOT = 132;
  +//  public static final int ER_NO_STYLESHEETROOT = 132;
  +
  +    { ER_NO_STYLESHEETROOT,
  +             "Did not find the stylesheet root!"},
   
  -  
      /** Illegal value for xml:space     */
  -  public static final int ER_ILLEGAL_XMLSPACE_VALUE = 133;
  +//  public static final int ER_ILLEGAL_XMLSPACE_VALUE = 133;
  +
  +    { ER_ILLEGAL_XMLSPACE_VALUE,
  +         "Illegal value for xml:space"},
   
  -  
      /** processFromNode failed     */
  -  public static final int ER_PROCESSFROMNODE_FAILED = 134;
  +//  public static final int ER_PROCESSFROMNODE_FAILED = 134;
  +
  +    { ER_PROCESSFROMNODE_FAILED,
  +         "processFromNode failed"},
   
  -  
      /** The resource [] could not load:     */
  -  public static final int ER_RESOURCE_COULD_NOT_LOAD = 135;
  +//  public static final int ER_RESOURCE_COULD_NOT_LOAD = 135;
  +
  +    { ER_RESOURCE_COULD_NOT_LOAD,
  +        "The resource [ {0} ] could not load: {1} \n {2} \t {3}"},
  +
   
  -   
  -  
      /** Buffer size <=0     */
  -  public static final int ER_BUFFER_SIZE_LESSTHAN_ZERO = 136;
  +//  public static final int ER_BUFFER_SIZE_LESSTHAN_ZERO = 136;
  +
  +    { ER_BUFFER_SIZE_LESSTHAN_ZERO,
  +        "Buffer size <=0"},
   
  -  
      /** Unknown error when calling extension    */
  -  public static final int ER_UNKNOWN_ERROR_CALLING_EXTENSION = 137;
  +//  public static final int ER_UNKNOWN_ERROR_CALLING_EXTENSION = 137;
  +
  +    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,
  +        "Unknown error when calling extension"},
   
  -  
      /** Prefix {0} does not have a corresponding namespace declaration    */
  -  public static final int ER_NO_NAMESPACE_DECL = 138;
  +//  public static final int ER_NO_NAMESPACE_DECL = 138;
  +
  +    { ER_NO_NAMESPACE_DECL,
  +        "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;
  +//  public static final int ER_ELEM_CONTENT_NOT_ALLOWED = 139;
  +
  +    { ER_ELEM_CONTENT_NOT_ALLOWED,
  +        "Element content not allowed for lang=javaclass {0}"},
   
  -  
      /** Stylesheet directed termination   */
  -  public static final int ER_STYLESHEET_DIRECTED_TERMINATION = 140;
  +//  public static final int ER_STYLESHEET_DIRECTED_TERMINATION = 140;
  +
  +    { ER_STYLESHEET_DIRECTED_TERMINATION,
  +        "Stylesheet directed termination"},
   
  -  
      /** 1 or 2   */
  -  public static final int ER_ONE_OR_TWO = 141;
  +//  public static final int ER_ONE_OR_TWO = 141;
  +
  +    { ER_ONE_OR_TWO,
  +        "1 or 2"},
   
  -  
      /** 2 or 3   */
  -  public static final int ER_TWO_OR_THREE = 142;
  +//  public static final int ER_TWO_OR_THREE = 142;
  +
  +    { ER_TWO_OR_THREE,
  +        "2 or 3"},
   
  -  
      /** Could not load {0} (check CLASSPATH), now using just the defaults   */
  -  public static final int ER_COULD_NOT_LOAD_RESOURCE = 143;
  +//  public static final int ER_COULD_NOT_LOAD_RESOURCE = 143;
  +
  +    { ER_COULD_NOT_LOAD_RESOURCE,
  +        "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;
  +//  public static final int ER_CANNOT_INIT_DEFAULT_TEMPLATES = 144;
  +
  +    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,
  +        "Cannot initialize default templates"},
   
  -  
      /** Result should not be null   */
  -  public static final int ER_RESULT_NULL = 145;
  +//  public static final int ER_RESULT_NULL = 145;
  +
  +    { ER_RESULT_NULL,
  +        "Result should not be null"},
   
  -    
      /** Result could not be set   */
  -  public static final int ER_RESULT_COULD_NOT_BE_SET = 146;
  +//  public static final int ER_RESULT_COULD_NOT_BE_SET = 146;
  +
  +    { ER_RESULT_COULD_NOT_BE_SET,
  +        "Result could not be set"},
   
  -  
      /** No output specified   */
  -  public static final int ER_NO_OUTPUT_SPECIFIED = 147;
  +//  public static final int ER_NO_OUTPUT_SPECIFIED = 147;
  +
  +    { ER_NO_OUTPUT_SPECIFIED,
  +        "No output specified"},
   
  -  
      /** Can't transform to a Result of type   */
  -  public static final int ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 148;
  +//  public static final int ER_CANNOT_TRANSFORM_TO_RESULT_TYPE = 148;
  +
  +    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,
  +        "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;
  +//  public static final int ER_CANNOT_TRANSFORM_SOURCE_TYPE = 149;
  +
  +    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,
  +        "Can''t transform a Source of type {0}"},
   
  -  
      /** Null content handler  */
  -  public static final int ER_NULL_CONTENT_HANDLER = 150;
  +//  public static final int ER_NULL_CONTENT_HANDLER = 150;
  +
  +    { ER_NULL_CONTENT_HANDLER,
  +        "Null content handler"},
   
  -  
      /** Null error handler  */
  -  public static final int ER_NULL_ERROR_HANDLER = 151;
  +//  public static final int ER_NULL_ERROR_HANDLER = 151;
  +    { ER_NULL_ERROR_HANDLER,
  +        "Null error handler"},
   
  -  
      /** parse can not be called if the ContentHandler has not been set */
  -  public static final int ER_CANNOT_CALL_PARSE = 152;
  +//  public static final int ER_CANNOT_CALL_PARSE = 152;
  +
  +    { ER_CANNOT_CALL_PARSE,
  +        "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;
  +//  public static final int ER_NO_PARENT_FOR_FILTER = 153;
  +
  +    { ER_NO_PARENT_FOR_FILTER,
  +        "No parent for filter"},
  +
   
  -  
  -  
      /**  No stylesheet found in: {0}, media */
  -  public static final int ER_NO_STYLESHEET_IN_MEDIA = 154;
  +//  public static final int ER_NO_STYLESHEET_IN_MEDIA = 154;
  +
  +    { ER_NO_STYLESHEET_IN_MEDIA,
  +         "No stylesheet found in: {0}, media= {1}"},
   
  -  
      /**  No xml-stylesheet PI found in */
  -  public static final int ER_NO_STYLESHEET_PI = 155;
  +//  public static final int ER_NO_STYLESHEET_PI = 155;
  +
  +    { ER_NO_STYLESHEET_PI,
  +         "No xml-stylesheet PI found in: {0}"},
   
  -  
      /**  No default implementation found */
  -  public static final int ER_NO_DEFAULT_IMPL = 156;
  +//  public static final int ER_NO_DEFAULT_IMPL = 156;
  +
  +    { ER_NO_DEFAULT_IMPL,
  +         "No default implementation found "},
   
  -  
      /**  ChunkedIntArray({0}) not currently supported */
  -  public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  +//  public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  +
  +    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
  +       "ChunkedIntArray({0}) not currently supported"},
   
  -  
      /**  Offset bigger than slot */
  -  public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  +//  public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  +
  +    { ER_OFFSET_BIGGER_THAN_SLOT,
  +       "Offset bigger than slot"},
   
  -  
      /**  Coroutine not available, id= */
  -  public static final int ER_COROUTINE_NOT_AVAIL = 159;
  +//  public static final int ER_COROUTINE_NOT_AVAIL = 159;
  +
  +    { ER_COROUTINE_NOT_AVAIL,
  +       "Coroutine not available, id={0}"},
   
  -  
      /**  CoroutineManager recieved co_exit() request */
  -  public static final int ER_COROUTINE_CO_EXIT = 160;
  +//  public static final int ER_COROUTINE_CO_EXIT = 160;
  +
  +    { ER_COROUTINE_CO_EXIT,
  +       "CoroutineManager received co_exit() request"},
   
  -  
      /**  co_joinCoroutineSet() failed */
  -  public static final int ER_COJOINROUTINESET_FAILED = 161;
  +//  public static final int ER_COJOINROUTINESET_FAILED = 161;
  +
  +    { ER_COJOINROUTINESET_FAILED,
  +       "co_joinCoroutineSet() failed"},
   
  -  
      /**  Coroutine parameter error () */
  -  public static final int ER_COROUTINE_PARAM = 162;
  +//  public static final int ER_COROUTINE_PARAM = 162;
  +
  +    { ER_COROUTINE_PARAM,
  +       "Coroutine parameter error ({0})"},
   
  -  
      /**  UNEXPECTED: Parser doTerminate answers  */
  -  public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  +//  public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  +
  +    { ER_PARSER_DOTERMINATE_ANSWERS,
  +       "\nUNEXPECTED: Parser doTerminate answers {0}"},
   
  -  
      /**  parse may not be called while parsing */
  -  public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  +//  public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  +
  +    { ER_NO_PARSE_CALL_WHILE_PARSING,
  +       "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;
  +//  public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
  +
  +    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
  +       "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;
  +//  public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
  +
  +    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
  +       "Error: iterator for axis {0} not implemented "},
   
  -  
      /**  Iterator clone not supported  */
  -  public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  +//  public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  +
  +    { ER_ITERATOR_CLONE_NOT_SUPPORTED,
  +       "Iterator clone not supported"},
   
  -  
      /**  Unknown axis traversal type  */
  -  public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  +//  public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  +
  +    { ER_UNKNOWN_AXIS_TYPE,
  +       "Unknown axis traversal type: {0}"},
   
  -  
      /**  Axis traverser not supported  */
  -  public static final int ER_AXIS_NOT_SUPPORTED = 169;
  +//  public static final int ER_AXIS_NOT_SUPPORTED = 169;
  +
  +    { ER_AXIS_NOT_SUPPORTED,
  +       "Axis traverser not supported: {0}"},
   
  -  
      /**  No more DTM IDs are available  */
  -  public static final int ER_NO_DTMIDS_AVAIL = 170;
  +//  public static final int ER_NO_DTMIDS_AVAIL = 170;
  +
  +    { ER_NO_DTMIDS_AVAIL,
  +       "No more DTM IDs are available"},
   
  -  
      /**  Not supported  */
  -  public static final int ER_NOT_SUPPORTED = 171;
  +//  public static final int ER_NOT_SUPPORTED = 171;
  +
  +    { ER_NOT_SUPPORTED,
  +       "Not supported: {0}"},
   
  -  
      /**  node must be non-null for getDTMHandleFromNode  */
  -  public static final int ER_NODE_NON_NULL = 172;
  +//  public static final int ER_NODE_NON_NULL = 172;
  +
  +    { ER_NODE_NON_NULL,
  +       "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;
  +//  public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
  +
  +    { ER_COULD_NOT_RESOLVE_NODE,
  +       "Could not resolve the node to a handle"},
   
  -  
      /**  startParse may not be called while parsing */
  -  public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  +//  public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  +
  +    { ER_STARTPARSE_WHILE_PARSING,
  +       "startParse may not be called while parsing"},
   
  -  
      /**  startParse needs a non-null SAXParser  */
  -  public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  +//  public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  +
  +    { ER_STARTPARSE_NEEDS_SAXPARSER,
  +       "startParse needs a non-null SAXParser"},
   
  -  
      /**  could not initialize parser with */
  -  public static final int ER_COULD_NOT_INIT_PARSER = 176;
  +//  public static final int ER_COULD_NOT_INIT_PARSER = 176;
  +    { ER_COULD_NOT_INIT_PARSER,
  +       "could not initialize parser with"},
   
  -  
      /**  Value for property {0} should be a Boolean instance  */
  -  public static final int ER_PROPERTY_VALUE_BOOLEAN = 177;
  +//  public static final int ER_PROPERTY_VALUE_BOOLEAN = 177;
  +
  +    { ER_PROPERTY_VALUE_BOOLEAN,
  +       "Value for property {0} should be a Boolean instance"},
   
  -  
      /**  exception creating new instance for pool  */
  -  public static final int ER_EXCEPTION_CREATING_POOL = 178;
  +//  public static final int ER_EXCEPTION_CREATING_POOL = 178;
  +
  +    { ER_EXCEPTION_CREATING_POOL,
  +       "exception creating new instance for pool"},
   
  -  
      /**  Path contains invalid escape sequence  */
  -  public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  +//  public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  +
  +    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
  +       "Path contains invalid escape sequence"},
   
  -  
      /**  Scheme is required!  */
  -  public static final int ER_SCHEME_REQUIRED = 180;
  +//  public static final int ER_SCHEME_REQUIRED = 180;
  +
  +    { ER_SCHEME_REQUIRED,
  +       "Scheme is required!"},
   
  -  
      /**  No scheme found in URI  */
  -  public static final int ER_NO_SCHEME_IN_URI = 181;
  +//  public static final int ER_NO_SCHEME_IN_URI = 181;
  +
  +    { ER_NO_SCHEME_IN_URI,
  +       "No scheme found in URI: {0}"},
   
  -  
      /**  No scheme found in URI  */
  -  public static final int ER_NO_SCHEME_INURI = 182;
  +//  public static final int ER_NO_SCHEME_INURI = 182;
  +
  +    { ER_NO_SCHEME_INURI,
  +       "No scheme found in URI"},
   
  -  
      /**  Path contains invalid character:   */
  -  public static final int ER_PATH_INVALID_CHAR = 183;
  +//  public static final int ER_PATH_INVALID_CHAR = 183;
  +
  +    { ER_PATH_INVALID_CHAR,
  +       "Path contains invalid character: {0}"},
   
  -  
      /**  Cannot set scheme from null string  */
  -  public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  +//  public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  +
  +    { ER_SCHEME_FROM_NULL_STRING,
  +       "Cannot set scheme from null string"},
   
  -  
      /**  The scheme is not conformant. */
  -  public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  +//  public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  +
  +    { ER_SCHEME_NOT_CONFORMANT,
  +       "The scheme is not conformant."},
   
  -  
      /**  Host is not a well formed address  */
  -  public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  +//  public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  +
  +    { ER_HOST_ADDRESS_NOT_WELLFORMED,
  +       "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;
  +//  public static final int ER_PORT_WHEN_HOST_NULL = 187;
  +
  +    { ER_PORT_WHEN_HOST_NULL,
  +       "Port cannot be set when host is null"},
   
  -  
      /**  Invalid port number  */
  -  public static final int ER_INVALID_PORT = 188;
  +//  public static final int ER_INVALID_PORT = 188;
  +
  +    { ER_INVALID_PORT,
  +       "Invalid port number"},
   
  -  
      /**  Fragment can only be set for a generic URI  */
  -  public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  +//  public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  +
  +    { ER_FRAG_FOR_GENERIC_URI,
  +       "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;
  +//  public static final int ER_FRAG_WHEN_PATH_NULL = 190;
  +
  +    { ER_FRAG_WHEN_PATH_NULL,
  +       "Fragment cannot be set when path is null"},
   
  -  
      /**  Fragment contains invalid character  */
  -  public static final int ER_FRAG_INVALID_CHAR = 191;
  +//  public static final int ER_FRAG_INVALID_CHAR = 191;
  +
  +    { ER_FRAG_INVALID_CHAR,
  +       "Fragment contains invalid character"},
  +
  +
   
  -  
  - 
  -  
      /** Parser is already in use  */
  -  public static final int ER_PARSER_IN_USE = 192;
  +//  public static final int ER_PARSER_IN_USE = 192;
  +
  +    { ER_PARSER_IN_USE,
  +        "Parser is already in use"},
   
  -  
      /** Parser is already in use  */
  -  public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  +//  public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  +
  +    { ER_CANNOT_CHANGE_WHILE_PARSING,
  +        "Cannot change {0} {1} while parsing"},
   
  -  
      /** Self-causation not permitted  */
  -  public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  +//  public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  +
  +    { ER_SELF_CAUSATION_NOT_PERMITTED,
  +        "Self-causation not permitted"},
   
  -  
      /** src attribute not yet supported for  */
  -  public static final int ER_COULD_NOT_FIND_EXTERN_SCRIPT = 195;
  +//  public static final int ER_COULD_NOT_FIND_EXTERN_SCRIPT = 195;
  +
  +    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,
  +         "Could not get to external script at {0}"},
   
  -  
     /** The resource [] could not be found     */
  -  public static final int ER_RESOURCE_COULD_NOT_FIND = 196;
  +//  public static final int ER_RESOURCE_COULD_NOT_FIND = 196;
  +
  +    { ER_RESOURCE_COULD_NOT_FIND,
  +        "The resource [ {0} ] could not be found.\n {1}"},
   
  -  
      /** output property not recognized:  */
  -  public static final int ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 197;
  +//  public static final int ER_OUTPUT_PROPERTY_NOT_RECOGNIZED = 197;
  +
  +    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,
  +        "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;
  +//  public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
  +
  +    { ER_NO_USERINFO_IF_NO_HOST,
  +        "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;
  +//  public static final int ER_NO_PORT_IF_NO_HOST = 199;
  +
  +    { ER_NO_PORT_IF_NO_HOST,
  +        "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;
  +//  public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
  +
  +    { ER_NO_QUERY_STRING_IN_PATH, 
  +        "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;
  +//  public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
  +
  +    { ER_NO_FRAGMENT_STRING_IN_PATH,
  +        "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;
  +//  public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
  +
  +    { ER_CANNOT_INIT_URI_EMPTY_PARMS, 
  +        "Cannot initialize URI with empty parameters"},
   
  -  
      /** Failed creating ElemLiteralResult instance   */
  -  public static final int ER_FAILED_CREATING_ELEMLITRSLT = 203;
  +//  public static final int ER_FAILED_CREATING_ELEMLITRSLT = 203;
  +
  +    { ER_FAILED_CREATING_ELEMLITRSLT,
  +        "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. 
   
  -  
  -   /** Value for {0} should contain a parsable number   */
  -  public static final int ER_VALUE_SHOULD_BE_NUMBER = 204;
  +   /** Priority value does not contain a parsable number   */
  +//  public static final int ER_VALUE_SHOULD_BE_NUMBER = 204;
   
  +    { ER_VALUE_SHOULD_BE_NUMBER,
  +        "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;
  +//  public static final int ER_VALUE_SHOULD_EQUAL = 205;
  +
  +    { ER_VALUE_SHOULD_EQUAL,
  +        "Value for {0} should equal yes or no"},
   
  - 
      /**  Failed calling {0} method   */
  -  public static final int ER_FAILED_CALLING_METHOD = 206;
  +//  public static final int ER_FAILED_CALLING_METHOD = 206;
  +
  +    { ER_FAILED_CALLING_METHOD,
  +        "Failed calling {0} method"},
   
  -  
      /** Failed creating ElemLiteralResult instance   */
  -  public static final int ER_FAILED_CREATING_ELEMTMPL = 207;
  +//  public static final int ER_FAILED_CREATING_ELEMTMPL = 207;
  +
  +    { ER_FAILED_CREATING_ELEMTMPL,
  +        "Failed creating ElemTemplateElement instance"},
   
  -  
      /**  Characters are not allowed at this point in the document   */
  -  public static final int ER_CHARS_NOT_ALLOWED = 208;
  +//  public static final int ER_CHARS_NOT_ALLOWED = 208;
  +
  +    { ER_CHARS_NOT_ALLOWED,
  +        "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;
  +//  public static final int ER_ATTR_NOT_ALLOWED = 209;
  +    { ER_ATTR_NOT_ALLOWED,
  +        "\"{0}\" attribute is not allowed on the {1} element!"},
   
  -  
     /**  Method not yet supported    */
  -  public static final int ER_METHOD_NOT_SUPPORTED = 210;
  +//  public static final int ER_METHOD_NOT_SUPPORTED = 210;
  +
  +    { ER_METHOD_NOT_SUPPORTED,
  +        "Method not yet supported "},
   
  - 
     /**  Bad value    */
  -  public static final int ER_BAD_VALUE = 211;
  +//  public static final int ER_BAD_VALUE = 211;
  +
  +    { ER_BAD_VALUE,
  +     "{0} bad value {1} "},
   
  -  
     /**  attribute value not found   */
  -  public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  +//  public static final int ER_ATTRIB_VALUE_NOT_FOUND = 212;
  +
  +    { ER_ATTRIB_VALUE_NOT_FOUND,
  +     "{0} attribute value not found "},
   
  -  
     /**  attribute value not recognized    */
  -  public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
  +//  public static final int ER_ATTRIB_VALUE_NOT_RECOGNIZED = 213;
   
  +    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,
  +     "{0} attribute value not recognized "},
   
     /** IncrementalSAXSource_Filter not currently restartable   */
  -  public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  +//  public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  +
  +    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
  +     "IncrementalSAXSource_Filter not currently restartable"},
   
  -  
     /** IncrementalSAXSource_Filter not currently restartable   */
  -  public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  +//  public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  +
  +    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,
  +     "XMLReader not before startParse request"},
   
  -  
     /** Attempting to generate a namespace prefix with a null URI   */
  -  public static final int ER_NULL_URI_NAMESPACE = 216;
  +//  public static final int ER_NULL_URI_NAMESPACE = 216;
  +
  +    { ER_NULL_URI_NAMESPACE,
  +     "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;
  -  
  +//  public static final int ER_NUMBER_TOO_BIG = 217;
  +
  +    { ER_NUMBER_TOO_BIG,
  +     "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;
  +
  +    { ER_CANNOT_FIND_SAX1_DRIVER,
  +     "Cannot find SAX1 driver class {0}"},
  +
  +//ER_SAX1_DRIVER_NOT_LOADED
  +//  public static final int  ER_SAX1_DRIVER_NOT_LOADED = 219;
  +
  +    { ER_SAX1_DRIVER_NOT_LOADED,
  +     "SAX1 driver class {0} found but cannot be loaded"},
  +
  +//ER_SAX1_DRIVER_NOT_INSTANTIATED
  +//  public static final int  ER_SAX1_DRIVER_NOT_INSTANTIATED = 220 ;
  +
  +    { ER_SAX1_DRIVER_NOT_INSTANTIATED,
  +     "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;
  +
  +    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,
  +     "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;
  +
  +    { ER_PARSER_PROPERTY_NOT_SPECIFIED,
  +     "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 ;
  +
  +    { ER_PARSER_ARG_CANNOT_BE_NULL,
  +     "Parser argument must not be null"},
  +
  +
  +// ER_FEATURE
  +//  public static final int  ER_FEATURE = 224;
  +
  +    { ER_FEATURE,
  +     "Feature: {0}"},
  +
  +
  +// ER_PROPERTY
  +//  public static final int ER_PROPERTY = 225 ;
  +
  +    { ER_PROPERTY,
  +     "Property: {0}"},
  +
  +// ER_NULL_ENTITY_RESOLVER
  +//  public static final int ER_NULL_ENTITY_RESOLVER  = 226;
  +
  +    { ER_NULL_ENTITY_RESOLVER,
  +     "Null entity resolver"},
  +
  +// ER_NULL_DTD_HANDLER
  +//  public static final int  ER_NULL_DTD_HANDLER = 227 ;
  +
  +    { ER_NULL_DTD_HANDLER,
  +     "Null DTD handler"},
  +
   // No Driver Name Specified!
  -  public static final int ER_NO_DRIVER_NAME_SPECIFIED = 228;
  +//  public static final int ER_NO_DRIVER_NAME_SPECIFIED = 228;
  +    { ER_NO_DRIVER_NAME_SPECIFIED,
  +     "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;
  +    { ER_NO_URL_SPECIFIED,
  +     "No URL Specified!"},
  +
   
   // Pool size is less than 1!
  -  public static final int ER_POOLSIZE_LESS_THAN_ONE = 230;
  +//  public static final int ER_POOLSIZE_LESS_THAN_ONE = 230;
  +    { ER_POOLSIZE_LESS_THAN_ONE,
  +     "Pool size is less than 1!"},
  +
   
   // Invalid Driver Name Specified!
  -  public static final int ER_INVALID_DRIVER_NAME = 231;
  +//  public static final int ER_INVALID_DRIVER_NAME = 231;
  +    { ER_INVALID_DRIVER_NAME,
  +     "Invalid Driver Name Specified!"},
  +
  +
   
   // ErrorListener
  -  public static final int ER_ERRORLISTENER = 232;
  +//  public static final int ER_ERRORLISTENER = 232;
  +    { ER_ERRORLISTENER,
  +     "ErrorListener"},
  +
   
   // Programmer's error! expr has no ElemTemplateElement parent!
  -  public static final int ER_ASSERT_NO_TEMPLATE_PARENT = 233;
  +//  public static final int ER_ASSERT_NO_TEMPLATE_PARENT = 233;
  +    { ER_ASSERT_NO_TEMPLATE_PARENT,
  +     "Programmer's error! expr has no ElemTemplateElement parent!"},
   
  -// Programmer's assertion in RundundentExprEliminator: {0}
  -  public static final int ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 234;
  +
  +// Programmer''s assertion in RundundentExprEliminator: {0}
  +//  public static final int ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR = 234;
  +    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,
  +     "Programmer''s assertion in RundundentExprEliminator: {0}"},
   
   // Axis traverser not supported: {0}
  -  public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  +//  public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  +    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,
  +     "Axis traverser not supported: {0}"},
   
   // ListingErrorHandler created with null PrintWriter!
  -  public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 
236;
  +//  public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 
236;
  +    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
  +     "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;
  +//  public static final int ER_NOT_ALLOWED_IN_POSITION = 237;
  +    { ER_NOT_ALLOWED_IN_POSITION,
  +     "{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;
  -  
  +//  public static final int ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION = 238;
  +    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
  +     "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;
  -  
  +//  public static final int INVALID_TCHAR = 239;
     // SystemId Unknown
  -  public static final int ER_SYSTEMID_UNKNOWN = 240;
  -    
  -  // Location of error unknown  
  -  public static final int ER_LOCATION_UNKNOWN = 241;
  -  
  -  //The following codes are shared with the warning codes... 
  +    { INVALID_TCHAR,
  +     "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;
  +    { ER_SYSTEMID_UNKNOWN,
  +     "SystemId Unknown"},
  +
  +  // Location of error unknown
  +//  public static final int ER_LOCATION_UNKNOWN = 241;
  +    { ER_LOCATION_UNKNOWN,
  +     "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_ENUM = 243;
  -   
  -  // Illegal value\u003a {1} used for NMTOKEN attribute\u003a {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;  
  +//  public static final int INVALID_QNAME = 242;
  +    { INVALID_QNAME,
  +     "Illegal value: {1} used for QNAME attribute: {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: {1} used for ENUM attribute: {0}.  Valid values are: {2}.
  +//  public static final int INVALID_ENUM = 243;
  +    { INVALID_ENUM,
  +     "Illegal value: {1} used for ENUM attribute: {0}.  Valid values are: 
{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: {1} used for NMTOKEN attribute: {0}.
  +//  public static final int INVALID_NMTOKEN = 244;
  +    { INVALID_NMTOKEN,
  +     "Illegal value: {1} used for NMTOKEN attribute: {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: {1} used for NCNAME attribute: {0}.
  +//  public static final int INVALID_NCNAME = 245;
  +    { INVALID_NCNAME,
  +     "Illegal value: {1} used for NCNAME attribute: {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: {1} used for boolean attribute: {0}.
  +//  public static final int INVALID_BOOLEAN = 246;
  +
  +    { INVALID_BOOLEAN,
  +     "Illegal value: {1} used for boolean attribute: {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: {1} used for number attribute: {0}.
  +//  public static final int INVALID_NUMBER = 247;
  +     { INVALID_NUMBER,
  +     "Illegal value: {1} used for number attribute: {0} "},
   
  -  // Illegal value\u003a {1} used for number attribute\u003a {0}. 
  -  public static final int INVALID_NUMBER = 247;
   
  -  
     // 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;
  -  
  +//  public static final int ER_ARG_LITERAL             = 248;
  +    { ER_ARG_LITERAL,
  +     "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;
  -  
  +//  public static final int ER_DUPLICATE_GLOBAL_VAR    = 249;
  +    { ER_DUPLICATE_GLOBAL_VAR,
  +     "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;
  -  
  +//  public static final int ER_DUPLICATE_VAR           = 250;
  +    { ER_DUPLICATE_VAR,
  +     "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_INVALID_PREFIX          = 252;
  -  
  +//  public static final int ER_TEMPLATE_NAME_MATCH     = 251;
  +    { ER_TEMPLATE_NAME_MATCH,
  +     "xsl:template 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: {0}
  +//  public static final int ER_INVALID_PREFIX          = 252;
  +    { ER_INVALID_PREFIX,
  +     "Prefix in exclude-result-prefixes is not valid: {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;
  +//  public static final int ER_NO_ATTRIB_SET           = 253;
  +    { ER_NO_ATTRIB_SET,
  +     "attribute-set named {0} does not exist"},
   
   
   
  -  /*
  -    /**  Cannot find SAX1 driver class    *
  -  public static final int ER_CANNOT_FIND_SAX1_DRIVER = 190;
   
  -  
  -   /**  SAX1 driver class {0} found but cannot be loaded    *
  -  public static final int ER_SAX1_DRIVER_NOT_LOADED = 191;
  -
  -  
  -   /**  SAX1 driver class {0} found but cannot be instantiated    *
  -  public static final int ER_SAX1_DRIVER_NOT_INSTANTIATED = 192;
  -
  -  
  -   /**  SAX1 driver class {0} does not implement org.xml.sax.Parser    *
  -  public static final int ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER = 193;
  -
  -  
  -   /**  System property org.xml.sax.parser not specified    *
  -  public static final int ER_PARSER_PROPERTY_NOT_SPECIFIED = 194;
  -
  -  
  -   /**  Parser argument must not be null    *
  -  public static final int ER_PARSER_ARG_CANNOT_BE_NULL = 195;
  -
  -  
  -   /**  Feature:    *
  -  public static final int ER_FEATURE = 196;
  -
  -  
  -   /**  Property:    *
  -  public static final int ER_PROPERTY = 197;
  -
  -  
  -   /** Null Entity Resolver  *
  -  public static final int ER_NULL_ENTITY_RESOLVER = 198;
  -
  -  
  -   /** Null DTD handler  *
  -  public static final int ER_NULL_DTD_HANDLER = 199;
  -
  -  
  - */ 
  -  
   
     // Warnings...
   
     /** WG_FOUND_CURLYBRACE          */
  -  public static final int WG_FOUND_CURLYBRACE = 1;
  -
  +//  public static final int WG_FOUND_CURLYBRACE = 1;
  +    { WG_FOUND_CURLYBRACE,
  +      "Found '}' but no attribute template open!"},
   
     /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */
  -  public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 2;
  +//  public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR = 2;
   
  +    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,
  +      "Warning: count attribute does not match an ancestor in xsl:number! 
Target = {0}"},
   
     /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */
  -  public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 3;
  +//  public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT = 3;
   
  +    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,
  +      "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;
  +//  public static final int WG_NO_LOCALE_IN_FORMATNUMBER = 4;
   
  +    { WG_NO_LOCALE_IN_FORMATNUMBER,
  +      "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;
  +//  public static final int WG_LOCALE_NOT_FOUND = 5;
   
  +    { WG_LOCALE_NOT_FOUND,
  +      "Warning: Could not find locale for xml:lang={0}"},
   
     /** WG_CANNOT_MAKE_URL_FROM          */
  -  public static final int WG_CANNOT_MAKE_URL_FROM = 6;
  +//  public static final int WG_CANNOT_MAKE_URL_FROM = 6;
   
  +    { WG_CANNOT_MAKE_URL_FROM,
  +      "Can not make URL from: {0}"},
   
     /** WG_CANNOT_LOAD_REQUESTED_DOC          */
  -  public static final int WG_CANNOT_LOAD_REQUESTED_DOC = 7;
  +//  public static final int WG_CANNOT_LOAD_REQUESTED_DOC = 7;
   
  +    { WG_CANNOT_LOAD_REQUESTED_DOC,
  +      "Can not load requested doc: {0}"},
   
     /** WG_CANNOT_FIND_COLLATOR          */
  -  public static final int WG_CANNOT_FIND_COLLATOR = 8;
  -
  +//  public static final int WG_CANNOT_FIND_COLLATOR = 8;
  +    { WG_CANNOT_FIND_COLLATOR,
  +      "Could not find Collator for <sort xml:lang={0}"},
   
     /** WG_FUNCTIONS_SHOULD_USE_URL          */
  -  public static final int WG_FUNCTIONS_SHOULD_USE_URL = 9;
  +//  public static final int WG_FUNCTIONS_SHOULD_USE_URL = 9;
   
  +    { WG_FUNCTIONS_SHOULD_USE_URL,
  +      "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;
  +//  public static final int WG_ENCODING_NOT_SUPPORTED_USING_UTF8 = 10;
   
  +    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,
  +      "encoding not supported: {0}, using UTF-8"},
   
     /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */
  -  public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 11;
  +//  public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA = 11;
   
  +    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,
  +      "encoding not supported: {0}, using Java {1}"},
   
     /** WG_SPECIFICITY_CONFLICTS          */
  -  public static final int WG_SPECIFICITY_CONFLICTS = 12;
  +//  public static final int WG_SPECIFICITY_CONFLICTS = 12;
   
  +    { WG_SPECIFICITY_CONFLICTS,
  +      "Specificity conflicts found: {0} Last found in stylesheet will be 
used."},
   
     /** WG_PARSING_AND_PREPARING          */
  -  public static final int WG_PARSING_AND_PREPARING = 13;
  +//  public static final int WG_PARSING_AND_PREPARING = 13;
   
  +    { WG_PARSING_AND_PREPARING,
  +      "========= Parsing and preparing {0} =========="},
   
     /** WG_ATTR_TEMPLATE          */
  -  public static final int WG_ATTR_TEMPLATE = 14;
  +//  public static final int WG_ATTR_TEMPLATE = 14;
   
  +    { WG_ATTR_TEMPLATE,
  +     "Attr Template, {0}"},
   
     /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */
  -  public static final int 
WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE =
  -    15;
  +//  public static final int 
WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = 15;
   
  +    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,
  +      "Match conflict between xsl:strip-space and xsl:preserve-space"},
   
     /** WG_ATTRIB_NOT_HANDLED          */
  -  public static final int WG_ATTRIB_NOT_HANDLED = 16;
  +//  public static final int WG_ATTRIB_NOT_HANDLED = 16;
   
  +    { WG_ATTRIB_NOT_HANDLED,
  +      "Xalan does not yet handle the {0} attribute!"},
   
     /** WG_NO_DECIMALFORMAT_DECLARATION          */
  -  public static final int WG_NO_DECIMALFORMAT_DECLARATION = 17;
  +//  public static final int WG_NO_DECIMALFORMAT_DECLARATION = 17;
   
  +    { WG_NO_DECIMALFORMAT_DECLARATION,
  +      "No declaration found for decimal format: {0}"},
   
     /** WG_OLD_XSLT_NS          */
  -  public static final int WG_OLD_XSLT_NS = 18;
  +//  public static final int WG_OLD_XSLT_NS = 18;
   
  +    { WG_OLD_XSLT_NS,
  +     "Missing or incorrect XSLT Namespace. "},
   
     /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */
  -  public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 19;
  +//  public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED = 19;
   
  +    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,
  +      "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;
  +//  public static final int WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE = 20;
   
  +    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,
  +      "xsl:decimal-format names must be unique. Name \"{0}\" has been 
duplicated."},
   
     /** WG_ILLEGAL_ATTRIBUTE          */
  -  public static final int WG_ILLEGAL_ATTRIBUTE = 21;
  +  //public static final int WG_ILLEGAL_ATTRIBUTE = 21;
   
  +    { WG_ILLEGAL_ATTRIBUTE,
  +      "{0} has an illegal attribute: {1}"},
   
     /** WG_COULD_NOT_RESOLVE_PREFIX          */
  -  public static final int WG_COULD_NOT_RESOLVE_PREFIX = 22;
  +//  public static final int WG_COULD_NOT_RESOLVE_PREFIX = 22;
   
  +    { WG_COULD_NOT_RESOLVE_PREFIX,
  +      "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;
  -
  +//  public static final int WG_STYLESHEET_REQUIRES_VERSION_ATTRIB = 23;
  +    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,
  +      "xsl:stylesheet requires a 'version' attribute!"},
   
     /** WG_ILLEGAL_ATTRIBUTE_NAME          */
  -  public static final int WG_ILLEGAL_ATTRIBUTE_NAME = 24;
  +//  public static final int WG_ILLEGAL_ATTRIBUTE_NAME = 24;
   
  +    { WG_ILLEGAL_ATTRIBUTE_NAME,
  +      "Illegal attribute name: {0}"},
   
     /** WG_ILLEGAL_ATTRIBUTE_VALUE          */
  -  public static final int WG_ILLEGAL_ATTRIBUTE_VALUE = 25;
  -
  +//  public static final int WG_ILLEGAL_ATTRIBUTE_VALUE = 25;
  +    { WG_ILLEGAL_ATTRIBUTE_VALUE,
  +      "Illegal value used for attribute {0}: {1}"},
   
     /** WG_EMPTY_SECOND_ARG          */
  -  public static final int WG_EMPTY_SECOND_ARG = 26;
  -  
  +//  public static final int WG_EMPTY_SECOND_ARG = 26;
  +
  +    { WG_EMPTY_SECOND_ARG,
  +      "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;
  -  
  +//  public static final int WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML = 27;
  +    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,
  +      "The value of the 'name' attribute of xsl:processing-instruction name 
must not be 'xml'"},
  +
  +    // Note to translators:  "name" and "xsl:processing-instruction" are 
keywords
  +    // and must not be translated.  "NCName" is an XML data-type and must 
not be
  +    // translated.
  +    // WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME
  +
     /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */
  -  public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;  
  -  
  +//  public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;
  +    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,
  +      "The value of the 'name' attribute of xsl:processing-instruction must 
be a valid NCName: {0}"},
  +
  +    // Note to translators:  This message is reported if the stylesheet that 
is
  +    // being processed attempted to construct an XML document with an 
attribute in a
  +    // place other than on an element.  The substitution text specifies the 
name of
  +    // the attribute.
  +    // WG_ILLEGAL_ATTRIBUTE_POSITION
  +
     /** WG_ILLEGAL_ATTRIBUTE_POSITION         */
  -  public static final int WG_ILLEGAL_ATTRIBUTE_POSITION = 29;
  -  
  -  
  -  //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;
  -  
  -  
  -  // 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}.
  -  public static final int WG_INVALID_ENUM = 243;
  -  
  -   
  -  // Illegal value\u003a {1} used for NMTOKEN attribute\u003a {0}. 
  -  public static final int WG_INVALID_NMTOKEN = 244;
  -  
  -      
  -  // Illegal value\u003a {1} used for NCNAME attribute\u003a {0}. 
  -  public static final int WG_INVALID_NCNAME = 245;
  -  
  -   
  -  // Illegal value\u003a {1} used for boolean attribute\u003a {0}. 
  -  public static final int WG_INVALID_BOOLEAN = 246;
  -  
  -
  -  // Illegal value\u003a {1} used for number attribute\u003a {0}. 
  -  public static final int WG_INVALID_NUMBER = 247;
  -  // End of codes that are shared...
  +//  public static final int WG_ILLEGAL_ATTRIBUTE_POSITION = 29;
  +    { WG_ILLEGAL_ATTRIBUTE_POSITION,
  +      "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?
   
     // Other miscellaneous text used inside the code...
  +  { "ui_language", "en"},
  +  {  "help_language",  "en" },
  +  {  "language",  "en" },
  +  { "BAD_CODE", "Parameter to createMessage was out of bounds"},
  +  {  "FORMAT_FAILED", "Exception thrown during messageFormat call"},
  +  {  "version", ">>>>>>> Xalan Version "},
  +  {  "version2",  "<<<<<<<"},
  +  {  "yes", "yes"},
  +  { "line", "Line #"},
  +  { "column","Column #"},
  +  { "xsldone", "XSLProcessor: done"},
  +
  +
  +  // Note to translators:  The following messages provide usage information
  +  // for the Xalan Process command line.  "Process" is the name of a Java 
class,
  +  // and should not be translated.
  +  { "xslProc_option", "Xalan-J command line Process class options:"},
  +  { "xslProc_option", "Xalan-J command line Process class options\u003a"},
  +  { "xslProc_invalid_xsltc_option", "The option {0} is not supported in 
XSLTC mode."},
  +  { "xslProc_invalid_xalan_option", "The option {0} can only be used with 
-XSLTC."},
  +  { "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run 
this command without any option for usage instructions."},
  +  { "xslProc_common_options", "-Common Options-"},
  +  { "xslProc_xalan_options", "-Options for Xalan-"},
  +  { "xslProc_xsltc_options", "-Options for XSLTC-"},
  +  { "xslProc_return_to_continue", "(press <return> to continue)"},
  +
  +   // Note to translators: The option name and the parameter name do not 
need to
  +   // be translated. Only translate the messages in parentheses.  Note also 
that
  +   // leading whitespace in the messages is used to indent the usage 
information
  +   // for each option in the English messages.
  +   // Do not translate the keywords: XSLTC, SAX, DOM and DTM.
  +  { "optionXSLTC", "   [-XSLTC (use XSLTC for transformation)]"},
  +  { "optionIN", "   [-IN inputXMLURL]"},
  +  { "optionXSL", "   [-XSL XSLTransformationURL]"},
  +  { "optionOUT",  "   [-OUT outputFileName]"},
  +  { "optionLXCIN", "   [-LXCIN compiledStylesheetFileNameIn]"},
  +  { "optionLXCOUT", "   [-LXCOUT compiledStylesheetFileNameOutOut]"},
  +  { "optionPARSER", "   [-PARSER fully qualified class name of parser 
liaison]"},
  +  {  "optionE", "   [-E (Do not expand entity refs)]"},
  +  {  "optionV",  "   [-E (Do not expand entity refs)]"},
  +  {  "optionQC", "   [-QC (Quiet Pattern Conflicts Warnings)]"},
  +  {  "optionQ", "   [-Q  (Quiet Mode)]"},
  +  {  "optionLF", "   [-LF (Use linefeeds only on output {default is 
CR/LF})]"},
  +  {  "optionCR", "   [-CR (Use carriage returns only on output {default is 
CR/LF})]"},
  +  { "optionESCAPE", "   [-ESCAPE (Which characters to escape {default is 
<>&\"\'\\r\\n}]"},
  +  { "optionINDENT", "   [-INDENT (Control how many spaces to indent {default 
is 0})]"},
  +  { "optionTT", "   [-TT (Trace the templates as they are being called.)]"},
  +  { "optionTG", "   [-TG (Trace each generation event.)]"},
  +  { "optionTS", "   [-TS (Trace each selection event.)]"},
  +  {  "optionTTC", "   [-TTC (Trace the template children as they are being 
processed.)]"},
  +  { "optionTCLASS", "   [-TCLASS (TraceListener class for trace 
extensions.)]"},
  +  { "optionVALIDATE", "   [-VALIDATE (Set whether validation occurs.  
Validation is off by default.)]"},
  +  { "optionEDUMP", "   [-EDUMP {optional filename} (Do stackdump on 
error.)]"},
  +  {  "optionXML", "   [-XML (Use XML formatter and add XML header.)]"},
  +  {  "optionTEXT", "   [-TEXT (Use simple Text formatter.)]"},
  +  {  "optionHTML", "   [-HTML (Use HTML formatter.)]"},
  +  {  "optionPARAM", "   [-PARAM name expression (Set a stylesheet 
parameter)]"},
  +  {  "noParsermsg1", "XSL Process was not successful."},
  +  {  "noParsermsg2", "** Could not find parser **"},
  +  { "noParsermsg3",  "Please check your classpath."},
  +  { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can 
download it from"},
  +  { "noParsermsg5", "IBM's AlphaWorks: 
http://www.alphaworks.ibm.com/formula/xml"},
  +  { "optionURIRESOLVER", "   [-URIRESOLVER full class name (URIResolver to 
be used to resolve URIs)]"},
  +  { "optionENTITYRESOLVER",  "   [-ENTITYRESOLVER full class name 
(EntityResolver to be used to resolve entities)]"},
  +  { "optionCONTENTHANDLER",  "   [-CONTENTHANDLER full class name 
(ContentHandler to be used to serialize output)]"},
  +  {  "optionLINENUMBERS",  "   [-L use line numbers for source document]"},
  +
  +    // Following are the new options added in XSLTErrorResources.properties 
files after Jdk 1.4 (Xalan 2.2-D11)
  +
  +
  +  {  "optionMEDIA",  "   [-MEDIA mediaType (use media attribute to find 
stylesheet associated with a document.)]"},
  +  {  "optionFLAVOR",  "   [-FLAVOR flavorName (Explicitly use s2s=SAX or 
d2d=DOM to do transform.)] "}, // Added by sboag/scurcuru; experimental
  +  { "optionDIAG", "   [-DIAG (Print overall milliseconds transform took.)]"},
  +  { "optionINCREMENTAL",  "   [-INCREMENTAL (request incremental DTM 
construction by setting http://xml.apache.org/xalan/features/incremental 
true.)]"},
  +  {  "optionNOOPTIMIMIZE",  "   [-NOOPTIMIMIZE (request no stylesheet 
optimization proccessing by setting 
http://xml.apache.org/xalan/features/optimize false.)]"},
  +  { "optionRL",  "   [-RL recursionlimit (assert numeric limit on stylesheet 
recursion depth.)]"},
  +  {   "optionXO",  "   [-XO [transletName] (assign the name to the generated 
translet)]"},
  +  {  "optionXD", "   [-XD destinationDirectory (specify a destination 
directory for translet)]"},
  +  {  "optionXJ",  "   [-XJ jarfile (packages translet classes into a jar 
file of name <jarfile>)]"},
  +  {   "optionXP",  "   [-XP package (specifies a package name prefix for all 
generated translet classes)]"},
  +
  +  //AddITIONAL  STRINGS that need L10n
  +  // Note to translators:  The following message describes usage of a 
particular
  +  // command-line option that is used to enable the "template inlining"
  +  // optimization.  The optimization involves making a copy of the code
  +  // generated for a template in another template that refers to it.
  +  { "optionXN",  "   [-XN (enables template inlining)]" },
  +  { "optionXX",  "   [-XX (turns on additional debugging message output)]"},
  +  { "optionXT" , "   [-XT (use translet to transform if possible)]"},
  +  { "diagTiming"," --------- Transform of {0} via {1} took {2} ms" },
  +  { "recursionTooDeep","Template nesting too deep. nesting = {0}, template 
{1} {2}" },
  +  { "nameIs", "name is" },
  +  { "matchPatternIs", "match pattern is" }
  +
  +  };
   
     // ================= INFRASTRUCTURE ======================
   
  @@ -1293,25 +2523,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 +2552,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 +2562,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)
  @@ -1366,86 +2596,5 @@
       return suffix;
     }
   
  -  /**
  -   * Get a string representation of the error code.
  -   *
  -   * @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 
  -   * greater than MAX_CODE.
  -   */
  -  public static String getMessageKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return ERROR_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get a string representation of the warning code.
  -   *
  -   * @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 
  -   * greater than MAX_WARNING.
  -   */
  -  public static String getWarningKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return WARNING_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get a string representation of the message code. (same as 
getMessageKey).
  -   *
  -   * @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 
  -   * greater than MAX_CODE.
  -   */
  -  public static String getMKey(int errorCode)
  -  {
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return ERROR_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get a string representation of the warning code.
  -   *
  -   * @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 
  -   * greater than MAX_WARNING.
  -   */
  -  public static String getWKey(int errorCode)
  -  {
   
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return WARNING_SUFFIX + df.format(errorCode);
  -    }
  -  }
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.48.2.4  +9 -20     
xml-xalan/java/src/org/apache/xalan/templates/ElemTemplateElement.java
  
  Index: ElemTemplateElement.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemTemplateElement.java,v
  retrieving revision 1.48.2.3
  retrieving revision 1.48.2.4
  diff -u -r1.48.2.3 -r1.48.2.4
  --- ElemTemplateElement.java  13 Nov 2002 18:36:55 -0000      1.48.2.3
  +++ ElemTemplateElement.java  17 Jan 2003 00:48:25 -0000      1.48.2.4
  @@ -302,38 +302,28 @@
     /**
      * Throw a template element runtime error.  (Note: should we throw a 
TransformerException instead?)
      *
  -   * @param msg Description of the error that occured.
  +   * @param msg key of the error that occured.
      * @param args Arguments to be used in the message
      */
  -  public void error(int msg, Object[] args)
  +  public void error(String msg, Object[] args)
     {
   
       String themsg = XSLMessages.createMessage(msg, args);
   
  -    error(
  -      XSLMessages.createMessage(
  -        XSLTErrorResources.ER_ELEMTEMPLATEELEM_ERR, new Object[]{ themsg 
}));  //"ElemTemplateElement error: "+msg);
  +    throw new RuntimeException(XSLMessages.createMessage(
  +                                    
XSLTErrorResources.ER_ELEMTEMPLATEELEM_ERR,
  +                                    new Object[]{ themsg }));
     }
     
  -  /**
  +  /*
      * Throw an error.
      *
  -   * @param msg Message code for the error
  -   */
  -  public void error(int msg)
  -  {
  -    error(msg, null);
  -  }
  -  
  -  /**
  -   * Throw a template element runtime error.  (Note: should we throw a 
TransformerException instead?)
  +   * @param msg Message key for the error
      *
  -   * @param msg Description of the error that occured.
  -   * @param args Arguments to be used in the message
      */
     public void error(String msg)
     {
  -    throw new RuntimeException(msg);
  +    error(msg, null);
     }
     
   
  @@ -1231,7 +1221,6 @@
      */
     void executeNSDecls(TransformerImpl transformer, String ignorePrefix) 
throws TransformerException
     {  
  -
       try
       {
         if (null != m_prefixTable)
  @@ -1280,7 +1269,7 @@
      */
     void unexecuteNSDecls(TransformerImpl transformer, String ignorePrefix) 
throws TransformerException
     {
  -
  + 
       try
       {
         if (null != m_prefixTable)
  
  
  
  1.26.2.2  +4 -4      
xml-xalan/java/src/org/apache/xalan/templates/FuncDocument.java
  
  Index: FuncDocument.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/FuncDocument.java,v
  retrieving revision 1.26.2.1
  retrieving revision 1.26.2.2
  diff -u -r1.26.2.1 -r1.26.2.2
  --- FuncDocument.java 29 Jul 2002 00:01:19 -0000      1.26.2.1
  +++ FuncDocument.java 17 Jan 2003 00:48:25 -0000      1.26.2.2
  @@ -421,14 +421,14 @@
      * exception.
      *
      * @param xctxt The XPath runtime state.
  -   * @param msg The error message code
  +   * @param msg The error message key
      * @param args Arguments to be used in the error message
      * @throws XSLProcessorException thrown if the active ProblemListener and 
XPathContext decide
      * the error condition is severe enough to halt processing.
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  public void error(XPathContext xctxt, int msg, Object args[])
  +  public void error(XPathContext xctxt, String msg, Object args[])
             throws javax.xml.transform.TransformerException
     {
   
  @@ -447,14 +447,14 @@
      * Warn the user of a problem.
      *
      * @param xctxt The XPath runtime state.
  -   * @param msg Warning message code
  +   * @param msg Warning message key
      * @param args Arguments to be used in the warning message
      * @throws XSLProcessorException thrown if the active ProblemListener and 
XPathContext decide
      * the error condition is severe enough to halt processing.
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  public void warn(XPathContext xctxt, int msg, Object args[])
  +  public void warn(XPathContext xctxt, String msg, Object args[])
             throws javax.xml.transform.TransformerException
     {
   
  
  
  
  1.16.10.2 +2 -2      
xml-xalan/java/src/org/apache/xalan/templates/FuncFormatNumb.java
  
  Index: FuncFormatNumb.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/FuncFormatNumb.java,v
  retrieving revision 1.16.10.1
  retrieving revision 1.16.10.2
  diff -u -r1.16.10.1 -r1.16.10.2
  --- FuncFormatNumb.java       29 Jul 2002 00:01:19 -0000      1.16.10.1
  +++ FuncFormatNumb.java       17 Jan 2003 00:48:26 -0000      1.16.10.2
  @@ -186,14 +186,14 @@
      * Warn the user of a problem.
      *
      * @param xctxt The XPath runtime state.
  -   * @param msg Warning message code
  +   * @param msg Warning message key
      * @param args Arguments to be used in warning message
      * @throws XSLProcessorException thrown if the active ProblemListener and 
XPathContext decide
      * the error condition is severe enough to halt processing.
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  public void warn(XPathContext xctxt, int msg, Object args[])
  +  public void warn(XPathContext xctxt, String msg, Object args[])
             throws javax.xml.transform.TransformerException
     {
   
  
  
  
  1.20.10.4 +11 -80    
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.20.10.3
  retrieving revision 1.20.10.4
  diff -u -r1.20.10.3 -r1.20.10.4
  --- OutputProperties.java     26 Nov 2002 20:26:26 -0000      1.20.10.3
  +++ OutputProperties.java     17 Jan 2003 00:48:26 -0000      1.20.10.4
  @@ -57,29 +57,22 @@
   package org.apache.xalan.templates;
   
   import java.io.BufferedInputStream;
  -import java.io.InputStream;
   import java.io.IOException;
  -
  -import java.util.Vector;
  +import java.io.InputStream;
  +import java.util.Enumeration;
   import java.util.Hashtable;
   import java.util.Properties;
  -import java.util.Enumeration;
  -
  -import java.lang.Cloneable;
  +import java.util.Vector;
   
  -import org.w3c.dom.Document;
  +import javax.xml.transform.OutputKeys;
  +import javax.xml.transform.TransformerException;
   
  -import org.apache.xml.utils.QName;
  +import org.apache.xalan.res.XSLMessages;
  +import org.apache.xalan.res.XSLTErrorResources;
  +import org.apache.xalan.serialize.Method;
   import org.apache.xml.utils.FastStringBuffer;
  +import org.apache.xml.utils.QName;
   import org.apache.xml.utils.WrappedRuntimeException;
  -import org.apache.xalan.serialize.Method;
  -import org.apache.xalan.extensions.ExtensionHandler;
  -import org.apache.xalan.res.XSLTErrorResources;
  -import org.apache.xalan.res.XSLMessages;
  -
  -
  -import javax.xml.transform.TransformerException;
  -import javax.xml.transform.OutputKeys;
   
   /**
    * This class provides information from xsl:output elements. It is mainly
  @@ -933,7 +926,6 @@
   
       super.compose(sroot);
   
  -    m_propertiesLevels = null;
     }
   
     /**
  @@ -1011,64 +1003,12 @@
     public void copyFrom(OutputProperties opsrc)
       throws TransformerException
     {
  -    checkDuplicates(opsrc);
  +   // Bugzilla 6157: recover from xsl:output statements
  +    // checkDuplicates(opsrc);
       copyFrom(opsrc.getProperties());
     }
   
     /**
  -   * Check to see if a set of properties is at the same import level as the
  -   * last set of properties set that was passed as an argument to this 
method.
  -   * This operation assumes that the OutputProperties are being called
  -   * from most important to least important, in document order.
  -   *
  -   * @param newProps non-null reference to OutputProperties that is about to
  -   *                 be added to this set.
  -   */
  -  private void checkDuplicates(OutputProperties newProps)
  -    throws TransformerException
  -  {
  -
  -    if (null == m_propertiesLevels)
  -      m_propertiesLevels = new Hashtable();
  -
  -    // This operation assumes that the OutputProperties are being called 
  -    // from most important to least important, in reverse document order.
  -
  -    int newPrecedence = 
newProps.getStylesheetComposed().getImportCountComposed();
  -
  -    Properties p = newProps.getProperties();
  -    Enumeration enum = p.keys();
  -
  -    while (enum.hasMoreElements())
  -    {
  -      String key = (String) enum.nextElement();
  -
  -      if (key.equals(OutputKeys.CDATA_SECTION_ELEMENTS))
  -        continue;
  -
  -      // Do we already have this property? Call hashtable operation, 
  -      // since we don't want to look at default properties.
  -      Integer oldPrecedence = (Integer) m_propertiesLevels.get(key);
  -      if (null == oldPrecedence)
  -      {
  -        m_propertiesLevels.put(key, new Integer(newPrecedence));
  -      }
  -      else if (newPrecedence >= oldPrecedence.intValue())
  -      {
  -        String oldValue = (String) this.m_properties.get(key);
  -        String newValue = (String) newProps.m_properties.get(key);
  -        if ( ((oldValue == null) && (newValue != null)) || 
!oldValue.equals(newValue) )
  -        {
  -          String msg = key + " can not be multiply defined at the same "
  -                       + "import level! Old value = " 
  -                       + oldValue + "; New value = " + newValue;
  -          throw new TransformerException(msg, newProps);
  -        }
  -      }
  -    }
  -}
  -
  -  /**
      * Report if the key given as an argument is a legal xsl:output key.
      *
      * @param key non-null reference to key name.
  @@ -1090,15 +1030,6 @@
               || key.equals(OutputKeys.VERSION)
               || (key.length() > 0) && (key.charAt(0) == '{'));
     }
  -
  -  /**
  -   *  This ugly field is used during recomposition to track the import 
precedence
  -   *  at which each attribute was first specified, so we can flag errors 
about values being
  -   *  set multiple time at the same precedence level. Note that this field 
is only used
  -   *  during recomposition, with the OutputProperties object owned by the
  -   *  [EMAIL PROTECTED] org.apache.xalan.templates.StylesheetRoot} object.
  -   */
  -  private transient Hashtable m_propertiesLevels;
   
     /** The output properties.
      *  @serial */
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.10.16.1 +14 -12    
xml-xalan/java/src/org/apache/xalan/transformer/MsgMgr.java
  
  Index: MsgMgr.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/MsgMgr.java,v
  retrieving revision 1.10
  retrieving revision 1.10.16.1
  diff -u -r1.10 -r1.10.16.1
  --- MsgMgr.java       26 Jan 2001 01:46:01 -0000      1.10
  +++ MsgMgr.java       17 Jan 2003 00:48:26 -0000      1.10.16.1
  @@ -130,7 +130,7 @@
      *
      * @throws TransformerException
      */
  -  public void warn(SourceLocator srcLctr, int msg) throws 
TransformerException
  +  public void warn(SourceLocator srcLctr, String msg) throws 
TransformerException
     {
       warn(srcLctr, null, null, msg, null);
     }
  @@ -146,7 +146,7 @@
      *
      * @throws TransformerException
      */
  -  public void warn(SourceLocator srcLctr, int msg, Object[] args) throws 
TransformerException
  +  public void warn(SourceLocator srcLctr, String msg, Object[] args) throws 
TransformerException
     {
       warn(srcLctr, null, null, msg, args);
     }
  @@ -164,7 +164,7 @@
      *
      * @throws TransformerException
      */
  -  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
int msg)
  +  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
String msg)
             throws TransformerException
     {
       warn(srcLctr, styleNode, sourceNode, msg, null);
  @@ -183,7 +183,7 @@
      *
      * @throws TransformerException
      */
  -  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
int msg, Object args[])
  +  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
String msg, Object args[])
             throws TransformerException
     {
   
  @@ -196,7 +196,7 @@
         System.out.println(formattedMsg);
     }
   
  -  /**
  +  /* This method is not properly i18nized. We need to use the following 
method
      * <meta name="usage" content="internal"/>
      * Tell the user of an error, and probably throw an
      * exception.
  @@ -206,7 +206,7 @@
      * the error condition is severe enough to halt processing.
      *
      * @throws TransformerException
  -   */
  +   *
     public void error(SourceLocator srcLctr, String msg) throws 
TransformerException
     {
   
  @@ -222,6 +222,8 @@
         throw new TransformerException(msg, srcLctr);
     }
   
  + */
  +
     /**
      * <meta name="usage" content="internal"/>
      * Tell the user of an error, and probably throw an
  @@ -233,7 +235,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, int msg) throws 
TransformerException
  +  public void error(SourceLocator srcLctr, String msg) throws 
TransformerException
     {
       error(srcLctr, null, null, msg, null);
     }
  @@ -250,7 +252,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, int msg, Object[] args) throws 
TransformerException
  +  public void error(SourceLocator srcLctr, String msg, Object[] args) throws 
TransformerException
     {
       error(srcLctr, null, null, msg, args);
     }
  @@ -267,7 +269,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, int msg, Exception e) throws 
TransformerException
  +  public void error(SourceLocator srcLctr, String msg, Exception e) throws 
TransformerException
     {
       error(srcLctr, msg, null, e);
     }
  @@ -285,7 +287,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, int msg, Object args[], Exception 
e) throws TransformerException
  +  public void error(SourceLocator srcLctr, String msg, Object args[], 
Exception e) throws TransformerException
     {
   
       //msg  = (null == msg) ? XSLTErrorResources.ER_PROCESSOR_ERROR : msg;
  @@ -316,7 +318,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
int msg)
  +  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
String msg)
             throws TransformerException
     {
       error(srcLctr, styleNode, sourceNode, msg, null);
  @@ -336,7 +338,7 @@
      *
      * @throws TransformerException
      */
  -  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
int msg, Object args[])
  +  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, 
String msg, Object args[])
             throws TransformerException
     {
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.9.12.3  +13 -173   xml-xalan/java/src/org/apache/xml/dtm/DTMManager.java
  
  Index: DTMManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/DTMManager.java,v
  retrieving revision 1.9.12.2
  retrieving revision 1.9.12.3
  diff -u -r1.9.12.2 -r1.9.12.3
  --- DTMManager.java   29 Jul 2002 00:01:30 -0000      1.9.12.2
  +++ DTMManager.java   17 Jan 2003 00:48:26 -0000      1.9.12.3
  @@ -56,22 +56,10 @@
    */
   package org.apache.xml.dtm;
   
  -import java.io.IOException;
  -import java.io.File;
  -import java.io.FileInputStream;
  -import java.io.InputStream;
  -import java.io.InputStreamReader;
  -import java.io.BufferedReader;
  -
  -import java.util.Properties;
  -import java.util.Enumeration;
  -
  -import org.apache.xml.utils.PrefixResolver;
  -import org.apache.xml.utils.XMLString;
  -import org.apache.xml.utils.XMLStringFactory;
  -
   import org.apache.xalan.res.XSLMessages;
   import org.apache.xalan.res.XSLTErrorResources;
  +import org.apache.xml.utils.PrefixResolver;
  +import org.apache.xml.utils.XMLStringFactory;
   
   /**
    * A DTMManager instance can be used to create DTM and
  @@ -180,33 +168,21 @@
              throws DTMConfigurationException
     {
   
  -    String classname = findFactory(defaultPropName, defaultClassName);
  +     DTMManager factoryImpl = null;
  +     try {
  +        factoryImpl = (DTMManager) FactoryFinder.find(defaultPropName,
  +              /* The fallback implementation class name */
  +                                                      defaultClassName);
  +     } catch (FactoryFinder.ConfigurationError e) {
  +           throw new 
DTMConfigurationException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_DEFAULT_IMPL,
 null)); //"No default implementation found");
  +     }
   
  -    if (classname == null)
  +
  +    if (factoryImpl == null)
       {
         throw new 
DTMConfigurationException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_DEFAULT_IMPL,
 null)); //"No default implementation found");
       }
   
  -    DTMManager factoryImpl;
  -
  -    try
  -    {
  -      Class clazz = Class.forName(classname);
  -
  -      factoryImpl = (DTMManager) clazz.newInstance();
  -    }
  -    catch (ClassNotFoundException cnfe)
  -    {
  -      throw new DTMConfigurationException(cnfe);
  -    }
  -    catch (IllegalAccessException iae)
  -    {
  -      throw new DTMConfigurationException(iae);
  -    }
  -    catch (InstantiationException ie)
  -    {
  -      throw new DTMConfigurationException(ie);
  -    }
       factoryImpl.setXMLStringFactory(xsf);
   
       return factoryImpl;
  @@ -368,14 +344,7 @@
   
     // -------------------- private methods --------------------
   
  -  /**
  -   * Avoid reading all the files when the findFactory
  -   * method is called the second time (cache the result of
  -   * finding the default impl).
  -   */
  -  private static String foundFactory = null;
  -
  -  /**
  +   /**
      * Temp debug code - this will be removed after we test everything
      */
     private static boolean debug;
  @@ -388,135 +357,6 @@
       }
       catch (SecurityException ex){}
     }
  -
  -  /**
  -   * Private implementation method - will find the implementation
  -   * class in the specified order.
  -   *
  -   * @param factoryId   Name of the factory interface.
  -   * @param xmlProperties Name of the properties file based on JAVA/lib.
  -   * @param defaultFactory Default implementation, if nothing else is found.
  -   *
  -   * @return The factory class name.
  -   */
  -  private static String findFactory(String factoryId, String defaultFactory)
  -  {
  -
  -    // Use the system property first
  -    try
  -    {
  -      String systemProp = null;
  -
  -      try
  -      {
  -        systemProp = System.getProperty(factoryId);
  -      }
  -      catch (SecurityException se){}
  -
  -      if (systemProp != null)
  -      {
  -        if (debug)
  -        {
  -          System.err.println("DTM: found system property" + systemProp);
  -        }
  -
  -        return systemProp;
  -      }
  -    }
  -    catch (SecurityException se){}
  -
  -    if (foundFactory != null)
  -    {
  -      return foundFactory;
  -    }
  -
  -    // try to read from $java.home/lib/jaxp.properties
  -    try
  -    {
  -      String javah = System.getProperty("java.home");
  -      String configFile = javah + File.separator + "lib" + File.separator
  -                          + "jaxp.properties";
  -      File f = new File(configFile);
  -
  -      if (f.exists())
  -      {
  -        Properties props = new Properties();
  -
  -        props.load(new FileInputStream(f));
  -
  -        foundFactory = props.getProperty(factoryId);
  -
  -        if (debug)
  -        {
  -          System.err.println("DTM: found java.home property " + 
foundFactory);
  -        }
  -
  -        if (foundFactory != null)
  -        {
  -          return foundFactory;
  -        }
  -      }
  -    }
  -    catch (Exception ex)
  -    {
  -      if (debug)
  -      {
  -        ex.printStackTrace();
  -      }
  -    }
  -
  -    String serviceId = "META-INF/services/" + factoryId;
  -
  -    // try to find services in CLASSPATH
  -    try
  -    {
  -      ClassLoader cl = DTMManager.class.getClassLoader();
  -      InputStream is = null;
  -
  -      if (cl == null)
  -      {
  -        is = ClassLoader.getSystemResourceAsStream(serviceId);
  -      }
  -      else
  -      {
  -        is = cl.getResourceAsStream(serviceId);
  -      }
  -
  -      if (is != null)
  -      {
  -        if (debug)
  -        {
  -          System.err.println("DTM: found  " + serviceId);
  -        }
  -
  -        BufferedReader rd = new BufferedReader(new InputStreamReader(is, 
"UTF-8"));
  -
  -        foundFactory = rd.readLine();
  -
  -        rd.close();
  -
  -        if (debug)
  -        {
  -          System.err.println("DTM: loaded from services: " + foundFactory);
  -        }
  -
  -        if ((foundFactory != null) &&!"".equals(foundFactory))
  -        {
  -          return foundFactory;
  -        }
  -      }
  -    }
  -    catch (Exception ex)
  -    {
  -      if (debug)
  -      {
  -        ex.printStackTrace();
  -      }
  -    }
  -
  -    return defaultFactory;
  -  }
  -
   
     /** This value, set at compile time, controls how many bits of the
      * DTM node identifier numbers are used to identify a node within a
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.4.10.1  +4 -4      xml-xalan/java/src/org/apache/xml/utils/UnImplNode.java
  
  Index: UnImplNode.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/UnImplNode.java,v
  retrieving revision 1.4
  retrieving revision 1.4.10.1
  diff -u -r1.4 -r1.4.10.1
  --- UnImplNode.java   29 Jun 2001 17:40:58 -0000      1.4
  +++ UnImplNode.java   17 Jan 2003 00:48:26 -0000      1.4.10.1
  @@ -77,9 +77,9 @@
     /**
      * Throw an error.
      *
  -   * @param msg Message code for the error
  +   * @param msg Message Key for the error
      */
  -  public void error(int msg)
  +  public void error(String msg)
     {
   
       System.out.println("DOM ERROR! class: " + this.getClass().getName());
  @@ -90,10 +90,10 @@
     /**
      * Throw an error.
      *
  -   * @param msg Message code for the error
  +   * @param msg Message Key for the error
      * @param args Array of arguments to be used in the error message
      */
  -  public void error(int msg, Object[] args)
  +  public void error(String msg, Object[] args)
     {
   
       System.out.println("DOM ERROR! class: " + this.getClass().getName());
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.3.10.1  +2 -2      
xml-xalan/java/src/org/apache/xml/utils/res/XResources_zh_CN.java
  
  Index: XResources_zh_CN.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/utils/res/XResources_zh_CN.java,v
  retrieving revision 1.3
  retrieving revision 1.3.10.1
  diff -u -r1.3 -r1.3.10.1
  --- XResources_zh_CN.java     8 Nov 2001 16:34:00 -0000       1.3
  +++ XResources_zh_CN.java     17 Jan 2003 00:48:27 -0000      1.3.10.1
  @@ -49,8 +49,8 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, Lotus
  - * Development Corporation., http://www.lotus.com.  For more
  + * originally based on software copyright (c) 2002, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  
  
  
  1.3.10.1  +2 -2      
xml-xalan/java/src/org/apache/xml/utils/res/XResources_zh_TW.java
  
  Index: XResources_zh_TW.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/utils/res/XResources_zh_TW.java,v
  retrieving revision 1.3
  retrieving revision 1.3.10.1
  diff -u -r1.3 -r1.3.10.1
  --- XResources_zh_TW.java     8 Nov 2001 16:34:00 -0000       1.3
  +++ XResources_zh_TW.java     17 Jan 2003 00:48:27 -0000      1.3.10.1
  @@ -49,8 +49,8 @@
    *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation and was
  - * originally based on software copyright (c) 1999, Lotus
  - * Development Corporation., http://www.lotus.com.  For more
  + * originally based on software copyright (c) 2002, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.1  +4 -4      xml-xalan/java/src/org/apache/xpath/Expression.java
  
  Index: Expression.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/Expression.java,v
  retrieving revision 1.18
  retrieving revision 1.18.2.1
  diff -u -r1.18 -r1.18.2.1
  --- Expression.java   22 Mar 2002 01:04:42 -0000      1.18
  +++ Expression.java   17 Jan 2003 00:48:27 -0000      1.18.2.1
  @@ -418,7 +418,7 @@
      * Warn the user of an problem.
      *
      * @param xctxt The XPath runtime context.
  -   * @param msg An error number that corresponds to one of the numbers found
  +   * @param msg An error msgkey that corresponds to one of the conststants 
found
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which
  @@ -429,7 +429,7 @@
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  public void warn(XPathContext xctxt, int msg, Object[] args)
  +  public void warn(XPathContext xctxt, String msg, Object[] args)
             throws javax.xml.transform.TransformerException
     {
   
  @@ -473,7 +473,7 @@
      * exception.
      *
      * @param xctxt The XPath runtime context.
  -   * @param msg An error number that corresponds to one of the numbers found
  +   * @param msg An error msgkey that corresponds to one of the constants 
found
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which
  @@ -484,7 +484,7 @@
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  public void error(XPathContext xctxt, int msg, Object[] args)
  +  public void error(XPathContext xctxt, String msg, Object[] args)
             throws javax.xml.transform.TransformerException
     {
   
  
  
  
  1.23.2.3  +4 -4      xml-xalan/java/src/org/apache/xpath/XPath.java
  
  Index: XPath.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/XPath.java,v
  retrieving revision 1.23.2.2
  retrieving revision 1.23.2.3
  diff -u -r1.23.2.2 -r1.23.2.3
  --- XPath.java        5 Nov 2002 10:41:49 -0000       1.23.2.2
  +++ XPath.java        17 Jan 2003 00:48:27 -0000      1.23.2.3
  @@ -493,7 +493,7 @@
      *
      * @param xctxt The XPath runtime context.
      * @param sourceNode Not used.
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -503,7 +503,7 @@
      *                              throw an exception.
      */
     public void warn(
  -          XPathContext xctxt, int sourceNode, int msg, Object[] args)
  +          XPathContext xctxt, int sourceNode, String msg, Object[] args)
               throws javax.xml.transform.TransformerException
     {
   
  @@ -546,7 +546,7 @@
      *
      * @param xctxt The XPath runtime context.
      * @param sourceNode Not used.
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -556,7 +556,7 @@
      *                              throw an exception.
      */
     public void error(
  -          XPathContext xctxt, int sourceNode, int msg, Object[] args)
  +          XPathContext xctxt, int sourceNode, String msg, Object[] args)
               throws javax.xml.transform.TransformerException
     {
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.27.2.3  +4 -4      
xml-xalan/java/src/org/apache/xpath/compiler/Compiler.java
  
  Index: Compiler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/compiler/Compiler.java,v
  retrieving revision 1.27.2.2
  retrieving revision 1.27.2.3
  diff -u -r1.27.2.2 -r1.27.2.3
  --- Compiler.java     22 Oct 2002 14:52:41 -0000      1.27.2.2
  +++ Compiler.java     17 Jan 2003 00:48:27 -0000      1.27.2.3
  @@ -1151,7 +1151,7 @@
     /**
      * Warn the user of an problem.
      *
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -1160,7 +1160,7 @@
      * @throws TransformerException if the current ErrorListoner determines to 
      *                              throw an exception.
      */
  -  public void warn(int msg, Object[] args) throws TransformerException
  +  public void warn(String msg, Object[] args) throws TransformerException
     {
   
       java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);
  @@ -1204,7 +1204,7 @@
      * Tell the user of an error, and probably throw an
      * exception.
      *
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -1213,7 +1213,7 @@
      * @throws TransformerException if the current ErrorListoner determines to 
      *                              throw an exception.
      */
  -  public void error(int msg, Object[] args) throws TransformerException
  +  public void error(String msg, Object[] args) throws TransformerException
     {
   
       java.lang.String fmsg = XSLMessages.createXPATHMessage(msg, args);
  
  
  
  1.10.10.3 +2 -2      xml-xalan/java/src/org/apache/xpath/compiler/OpMap.java
  
  Index: OpMap.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/compiler/OpMap.java,v
  retrieving revision 1.10.10.2
  retrieving revision 1.10.10.3
  diff -u -r1.10.10.2 -r1.10.10.3
  --- OpMap.java        22 Oct 2002 14:52:41 -0000      1.10.10.2
  +++ OpMap.java        17 Jan 2003 00:48:27 -0000      1.10.10.3
  @@ -338,7 +338,7 @@
      * Tell the user of an error, and probably throw an
      * exception.
      *
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -347,7 +347,7 @@
      * @throws TransformerException if the current ErrorListoner determines to 
      *                              throw an exception.
      */
  -  public void error(int msg, Object[] args) throws 
javax.xml.transform.TransformerException
  +  public void error(String msg, Object[] args) throws 
javax.xml.transform.TransformerException
     {
   
       java.lang.String fmsg = 
org.apache.xalan.res.XSLMessages.createXPATHMessage(msg, args);
  
  
  
  1.19.2.4  +4 -4      
xml-xalan/java/src/org/apache/xpath/compiler/XPathParser.java
  
  Index: XPathParser.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/compiler/XPathParser.java,v
  retrieving revision 1.19.2.3
  retrieving revision 1.19.2.4
  diff -u -r1.19.2.3 -r1.19.2.4
  --- XPathParser.java  22 Oct 2002 14:52:41 -0000      1.19.2.3
  +++ XPathParser.java  17 Jan 2003 00:48:27 -0000      1.19.2.4
  @@ -578,7 +578,7 @@
     /**
      * Warn the user of a problem.
      *
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -587,7 +587,7 @@
      * @throws TransformerException if the current ErrorListoner determines to 
      *                              throw an exception.
      */
  -  void warn(int msg, Object[] args) throws TransformerException
  +  void warn(String msg, Object[] args) throws TransformerException
     {
   
       String fmsg = XSLMessages.createXPATHWarning(msg, args);
  @@ -631,7 +631,7 @@
      * Notify the user of an error, and probably throw an
      * exception.
      *
  -   * @param msg An error number that corresponds to one of the numbers found 
  +   * @param msg An error msgkey that corresponds to one of the constants 
found 
      *            in [EMAIL PROTECTED] 
org.apache.xpath.res.XPATHErrorResources}, which is 
      *            a key for a format string.
      * @param args An array of arguments represented in the format string, 
which 
  @@ -640,7 +640,7 @@
      * @throws TransformerException if the current ErrorListoner determines to 
      *                              throw an exception.
      */
  -  void error(int msg, Object[] args) throws TransformerException
  +  void error(String msg, Object[] args) throws TransformerException
     {
   
       String fmsg = XSLMessages.createXPATHMessage(msg, args);
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.2  +6 -1      xml-xalan/java/src/org/apache/xpath/objects/XNumber.java
  
  Index: XNumber.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XNumber.java,v
  retrieving revision 1.13.2.1
  retrieving revision 1.13.2.2
  diff -u -r1.13.2.1 -r1.13.2.2
  --- XNumber.java      13 Nov 2002 18:37:00 -0000      1.13.2.1
  +++ XNumber.java      17 Jan 2003 00:48:28 -0000      1.13.2.2
  @@ -342,7 +342,12 @@
       int e = s.indexOf('E');
   
       if (e < 0)
  -      return s;
  +    {
  +      if (s.charAt(len - 1) == '0')
  +        return s.substring(0, len - 1);
  +      else
  +        return s;
  +    }
   
       int exp = Integer.parseInt(s.substring(e + 1));
       String sign;
  
  
  
  1.20.2.1  +2 -2      xml-xalan/java/src/org/apache/xpath/objects/XObject.java
  
  Index: XObject.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XObject.java,v
  retrieving revision 1.20
  retrieving revision 1.20.2.1
  diff -u -r1.20 -r1.20.2.1
  --- XObject.java      29 Mar 2002 15:18:39 -0000      1.20
  +++ XObject.java      17 Jan 2003 00:48:28 -0000      1.20.2.1
  @@ -711,7 +711,7 @@
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  protected void error(int msg)
  +  protected void error(String msg)
             throws javax.xml.transform.TransformerException
     {
       error(msg, null);
  @@ -726,7 +726,7 @@
      *
      * @throws javax.xml.transform.TransformerException
      */
  -  protected void error(int msg, Object[] args)
  +  protected void error(String msg, Object[] args)
             throws javax.xml.transform.TransformerException
     {
   
  
  
  
  1.5.2.2   +6 -3      
xml-xalan/java/src/org/apache/xpath/objects/XRTreeFragSelectWrapper.java
  
  Index: XRTreeFragSelectWrapper.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XRTreeFragSelectWrapper.java,v
  retrieving revision 1.5.2.1
  retrieving revision 1.5.2.2
  diff -u -r1.5.2.1 -r1.5.2.2
  --- XRTreeFragSelectWrapper.java      20 Sep 2002 22:11:58 -0000      1.5.2.1
  +++ XRTreeFragSelectWrapper.java      17 Jan 2003 00:48:28 -0000      1.5.2.2
  @@ -53,7 +53,10 @@
     {
        m_selected = ((Expression)m_obj).execute(xctxt);
        m_selected.allowDetachToRelease(m_allowRelease);
  -     return m_selected;
  +     if (m_selected.getType() == CLASS_STRING)
  +       return m_selected;
  +     else
  +       return new XString(m_selected.str());
     }
       
     /**
  @@ -112,11 +115,11 @@
     /**
      * Tell what kind of class this is.
      *
  -   * @return the type of the select expression
  +   * @return the string type
      */
     public int getType()
     {
  -    return m_selected.getType();
  +    return CLASS_STRING;
     }
   
     /**
  
  
  
  1.15.2.2  +31 -82    
xml-xalan/java/src/org/apache/xpath/objects/XStringForFSB.java
  
  Index: XStringForFSB.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XStringForFSB.java,v
  retrieving revision 1.15.2.1
  retrieving revision 1.15.2.2
  diff -u -r1.15.2.1 -r1.15.2.2
  --- XStringForFSB.java        29 Jul 2002 00:01:34 -0000      1.15.2.1
  +++ XStringForFSB.java        17 Jan 2003 00:48:28 -0000      1.15.2.2
  @@ -990,91 +990,40 @@
      * if the string can not be converted.  */
     public double toDouble()
     {
  -    int end = m_length+m_start;
  -    if(0 == end)
  +    if(m_length == 0)
         return Double.NaN;
  -
  -    int start = m_start;
  -    FastStringBuffer fsb = fsb();
  -      
  -    long longResult=0;
  -    boolean isNegative=false;
  -    boolean trailingSpace=false;
  -    int[] digitsFound={0,0}; // intpart,fracpart
  -    int digitType=0;    // Index to which kind of digit we're accumulating
  -    double doubleResult;
  +    int i;
  +    char c;
  +    String valueString = fsb().getString(m_start,m_length);
       
  -    // Scan past leading whitespace characters
  -    while(start< end &&
  -          XMLCharacterRecognizer.isWhiteSpace( fsb.charAt(start) )
  -          )
  -      ++start;
  +    // The following are permitted in the Double.valueOf, but not by the 
XPath spec:
  +    // - a plus sign
  +    // - The use of e or E to indicate exponents
  +    // - trailing f, F, d, or D
  +    // See function comments; not sure if this is slower than actually doing 
the
  +    // conversion ourselves (as was before).
       
  -    if (start < end && fsb.charAt(start) == '-')
  -    {
  -      isNegative=true;
  -      start++;
  -    }
  -    
  -    // parse the string from left to right converting as an integer.
  -    for (int i = start; i < end; i++)
  -    {
  -      char c = fsb.charAt(i);
  -
  -      if(XMLCharacterRecognizer.isWhiteSpace(c))
  -      {
  -                             trailingSpace=true;
  -        break;                  // Trailing whitespace is ignored
  -      }
  -      else if(trailingSpace)
  -     return Double.NaN;      // Nonspace after space is poorly formed
  -     
  -      switch(c)
  -      {
  -      case '.':
  -        if(digitType==0)
  -          digitType=1;
  -        else
  -          return Double.NaN;    // Second period is error
  -     break;
  -     
  -      case '0':                      // NOT Unicode isDigit();  ASCII digits 
_only_
  -      case '1':
  -      case '2':
  -      case '3':
  -      case '4':
  -      case '5':
  -      case '6':
  -      case '7':
  -      case '8':
  -      case '9':
  -        longResult = longResult * 10 + (c - '0'); // Accumulate as int
  -        ++digitsFound[digitType]; // Remember scaling
  -     break;
  -
  -      default:
  -        return Double.NaN;      // Nonnumeric is error
  -      }
  -    }
  -
  -    if(0 ==digitsFound[0]&& 0==digitsFound[1])
  +    for (i=0;i<m_length;i++)
  +      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))
  +        break;
  +    if (valueString.charAt(i) == '-')
  +      i++;
  +    for (;i<m_length;i++) {
  +      c = valueString.charAt(i);
  +      if (c != '.' && (c < '0' || c > '9'))
  +        break;
  +    }                
  +    for (;i<m_length;i++)
  +      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))
  +        break;
  +    if (i != m_length)
         return Double.NaN;
  -
  -    // Convert from scaled integer to floating point. This will come close. 
  -    // There's an alternative solution involving Double.longBitsToDouble
  -    // followed by a combined renormalize/scale operation... but I honestly
  -    // think the more straightforward solution comes out to just about
  -    // the same thing.
  -                
  -    long scale=1;               // AFAIK, java doesn't have an easier 10^n 
operation
  -    for(int i=digitsFound[1];i>0;--i) 
  -      scale*=10;
  -                
  -    doubleResult=((double)longResult)/scale;
  -                
  -    if(isNegative)
  -      doubleResult *= -1;
  -    return doubleResult;
  +     
  +    try {
  +      return new Double(valueString).doubleValue();
  +    } catch (NumberFormatException nfe) {
  +      // This should catch double periods, empty strings.
  +      return Double.NaN;
  +    }
     }
  -
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.10.8.4  +892 -325  
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.10.8.3
  retrieving revision 1.10.8.4
  diff -u -r1.10.8.3 -r1.10.8.4
  --- XPATHErrorResources.java  5 Nov 2002 10:41:50 -0000       1.10.8.3
  +++ XPATHErrorResources.java  17 Jan 2003 00:48:28 -0000      1.10.8.4
  @@ -56,566 +56,1212 @@
    */
   package org.apache.xpath.res;
   
  -import java.io.IOException;
  -import java.io.InputStream;
  +
  +
  +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"/>
    * Set up error messages.
    * We build a two dimensional array of message keys and
    * message strings. In order to add a new message here,
  - * you need to first update the count of messages(MAX_CODE)or
  - * the count of warnings(MAX_WARNING). The array will be
  - * automatically filled in with the keys, but you need to
  - * fill in the actual message string. Follow the instructions
  - * below.
  + * you need to first add a Static string constant for the
  + * Key and update the contents array with Key, Value pair
  +  * Also you need to  update the count of messages(MAX_CODE)or
  + * the count of warnings(MAX_WARNING) [ Information purpose only]
    */
  -public class XPATHErrorResources extends PropertyResourceBundle
  +public class XPATHErrorResources extends ListResourceBundle
   {
  -  
  -  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";
  +/*
  + * General notes to translators:
  + *
  + * This file contains error and warning messages related to XPath Error
  + * Handling.
  + *
  + *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
  + *     components.
  + *     XSLT is an acronym for "XML Stylesheet Language: Transformations".
  + *     XSLTC is an acronym for XSLT Compiler.
  + *
  + *  2) A stylesheet is a description of how to transform an input XML 
document
  + *     into a resultant XML document (or HTML document or text).  The
  + *     stylesheet itself is described in the form of an XML document.
  + *
  + *  3) A template is a component of a stylesheet that is used to match a
  + *     particular portion of an input document and specifies the form of the
  + *     corresponding portion of the output document.
  + *
  + *  4) An element is a mark-up tag in an XML document; an attribute is a
  + *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
  + *     "elem" is an element name, "attr" and "attr2" are attribute names with
  + *     the values "val" and "val2", respectively.
  + *
  + *  5) A namespace declaration is a special attribute that is used to 
associate
  + *     a prefix with a URI (the namespace).  The meanings of element names 
and
  + *     attribute names that use that prefix are defined with respect to that
  + *     namespace.
  + *
  + *  6) "Translet" is an invented term that describes the class file that
  + *     results from compiling an XML stylesheet into a Java class.
  + *
  + *  7) XPath is a specification that describes a notation for identifying
  + *     nodes in a tree-structured representation of an XML document.  An
  + *     instance of that notation is referred to as an XPath expression.
  + *
  + *  8) The context node is the node in the document with respect to which an
  + *     XPath expression is being evaluated.
  + *
  + *  9) An iterator is an object that traverses nodes in the tree, one at a 
time.
  + *
  + *  10) NCName is an XML term used to describe a name that does not contain a
  + *     colon (a "no-colon name").
  + *
  + *  11) QName is an XML term meaning "qualified name".
  + */
  +
  +  /** Field MAX_CODE          */
  +  public static final int MAX_CODE = 116;  // this is needed to keep track 
of the number of messages          
   
  -  /** Field WARNING_SUFFIX          */
  -  public static final String WARNING_SUFFIX = "WR";
  +  /** 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;
  +
  +
  +  /* 
  +   * static variables
  +   */
  +  public static final String ERROR0000 = "ERROR0000";
  +  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = 
  +      "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
  +  public static final String ER_CURRENT_TAKES_NO_ARGS = 
  +      "ER_CURRENT_TAKES_NO_ARGS";
  +  public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
  +  public static final String ER_CONTEXT_HAS_NO_OWNERDOC = 
  +      "ER_CONTEXT_HAS_NO_OWNERDOC";
  +  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = 
  +      "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
  +  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 
  +      "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
  +  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 
  +      "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
  +  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = 
  +      "ER_NUMBER_HAS_TOO_MANY_ARGS";
  +  public static final String ER_NAME_HAS_TOO_MANY_ARGS = 
  +      "ER_NAME_HAS_TOO_MANY_ARGS";
  +  public static final String ER_STRING_HAS_TOO_MANY_ARGS = 
  +      "ER_STRING_HAS_TOO_MANY_ARGS";
  +  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 
  +      "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
  +  public static final String ER_TRANSLATE_TAKES_3_ARGS = 
  +      "ER_TRANSLATE_TAKES_3_ARGS";
  +  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = 
  +      "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
  +  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 
  +      "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
  +  public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
  +  public static final String ER_UNKNOWN_MATCH_OPERATION = 
  +      "ER_UNKNOWN_MATCH_OPERATION";
  +  public static final String ER_INCORRECT_ARG_LENGTH 
="ER_INCORRECT_ARG_LENGTH";
  +  public static final String ER_CANT_CONVERT_TO_NUMBER = 
  +      "ER_CANT_CONVERT_TO_NUMBER";
  +  public static final String ER_CANT_CONVERT_TO_NODELIST = 
  +      "ER_CANT_CONVERT_TO_NODELIST";
  +  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = 
  +      "ER_CANT_CONVERT_TO_MUTABLENODELIST";
  +  public static final String ER_CANT_CONVERT_TO_TYPE 
="ER_CANT_CONVERT_TO_TYPE";
  +  public static final String ER_EXPECTED_MATCH_PATTERN = 
  +      "ER_EXPECTED_MATCH_PATTERN";
  +  public static final String ER_COULDNOT_GET_VAR_NAMED = 
  +      "ER_COULDNOT_GET_VAR_NAMED";
  +  public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
  +  public static final String ER_EXTRA_ILLEGAL_TOKENS 
="ER_EXTRA_ILLEGAL_TOKENS";
  +  public static final String ER_EXPECTED_DOUBLE_QUOTE = 
  +      "ER_EXPECTED_DOUBLE_QUOTE";
  +  public static final String ER_EXPECTED_SINGLE_QUOTE = 
  +      "ER_EXPECTED_SINGLE_QUOTE";
  +  public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
  +  public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
  +  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = 
  +      "ER_INCORRECT_PROGRAMMER_ASSERTION";
  +  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 
  +      "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
  +  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 
  +      "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
  +  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 
  +      "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
  +  public static final String ER_PREDICATE_ILLEGAL_SYNTAX = 
  +      "ER_PREDICATE_ILLEGAL_SYNTAX";
  +  public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
  +  public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
  +  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 
  +      "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
  +  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 
  +      "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
  +  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 
  +      "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
  +  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = 
  +      "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
  +  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 
  +      "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
  +  public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
  +  public static final String ER_ILLEGAL_VARIABLE_REFERENCE = 
  +      "ER_ILLEGAL_VARIABLE_REFERENCE";
  +  public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
  +  public static final String ER_KEY_HAS_TOO_MANY_ARGS = 
  +      "ER_KEY_HAS_TOO_MANY_ARGS";
  +  public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
  +  public static final String ER_COULDNOT_FIND_FUNCTION = 
  +      "ER_COULDNOT_FIND_FUNCTION";
  +  public static final String ER_UNSUPPORTED_ENCODING 
="ER_UNSUPPORTED_ENCODING";
  +  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = 
  +      "ER_PROBLEM_IN_DTM_NEXTSIBLING";
  +  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 
  +      "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
  +  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = 
  +      "ER_SETDOMFACTORY_NOT_SUPPORTED";
  +  public static final String ER_PREFIX_MUST_RESOLVE = 
"ER_PREFIX_MUST_RESOLVE";
  +  public static final String ER_PARSE_NOT_SUPPORTED = 
"ER_PARSE_NOT_SUPPORTED";
  +  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = 
  +      "ER_CREATEDOCUMENT_NOT_SUPPORTED";
  +  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = 
  +      "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
  +  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 
  +      "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
  +  public static final String ER_SAX_API_NOT_HANDLED = 
"ER_SAX_API_NOT_HANDLED";
  +public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 
  +      "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
  +  public static final String ER_DTM_CANNOT_HANDLE_NODES = 
  +      "ER_DTM_CANNOT_HANDLE_NODES";
  +  public static final String ER_XERCES_CANNOT_HANDLE_NODES = 
  +      "ER_XERCES_CANNOT_HANDLE_NODES";
  +  public static final String ER_XERCES_PARSE_ERROR_DETAILS = 
  +      "ER_XERCES_PARSE_ERROR_DETAILS";
  +  public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
  +  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 
  +      "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
  +  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 
  +      "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
  +  public static final String ER_INVALID_UTF16_SURROGATE = 
  +      "ER_INVALID_UTF16_SURROGATE";
  +  public static final String ER_OIERROR = "ER_OIERROR";
  +  public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
  +  public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
  + public static final String ER_FUNCTION_TOKEN_NOT_FOUND = 
  +      "ER_FUNCTION_TOKEN_NOT_FOUND";
  + public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
  +  public static final String ER_CANNOT_DEAL_XPATH_TYPE = 
  +      "ER_CANNOT_DEAL_XPATH_TYPE";
  +  public static final String ER_NODESET_NOT_MUTABLE = 
"ER_NODESET_NOT_MUTABLE";
  +  public static final String ER_NODESETDTM_NOT_MUTABLE = 
  +      "ER_NODESETDTM_NOT_MUTABLE";
  +   /**  Variable not resolvable:   */
  +  public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
  +   /** Null error handler  */
  + public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
  +   /**  Programmer's assertion: unknown opcode  */
  +  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = 
  +      "ER_PROG_ASSERT_UNKNOWN_OPCODE";
  +   /**  0 or 1   */
  +  public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
  +   /**  rtf() not supported by XRTreeFragSelectWrapper   */
  +  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 
  +      "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
  +   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */
  +  public static final String 
ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 
"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
  +   /**  fsb() not supported for XStringForChars   */
  +  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 
  +      "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
  +   /**  Could not find variable with the name of   */
  + public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
  +   /**  XStringForChars can not take a string for an argument   */
  + public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 
  +      "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
  +   /**  The FastStringBuffer argument can not be null   */
  + public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 
  +      "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
  +   /**  2 or 3   */
  +  public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
  +   /** Variable accessed before it is bound! */
  +  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = 
  +      "ER_VARIABLE_ACCESSED_BEFORE_BIND";
  +   /** XStringForFSB can not take a string for an argument! */
  + public static final String ER_FSB_CANNOT_TAKE_STRING = 
  +      "ER_FSB_CANNOT_TAKE_STRING";
  +   /** Error! Setting the root of a walker to null! */
  +  public static final String ER_SETTING_WALKER_ROOT_TO_NULL = 
  +      "ER_SETTING_WALKER_ROOT_TO_NULL";
  +   /** This NodeSetDTM can not iterate to a previous node! */
  +  public static final String ER_NODESETDTM_CANNOT_ITERATE = 
  +      "ER_NODESETDTM_CANNOT_ITERATE";
  +  /** This NodeSet can not iterate to a previous node! */
  + public static final String ER_NODESET_CANNOT_ITERATE = 
  +      "ER_NODESET_CANNOT_ITERATE";
  +  /** This NodeSetDTM can not do indexing or counting functions! */
  +  public static final String ER_NODESETDTM_CANNOT_INDEX = 
  +      "ER_NODESETDTM_CANNOT_INDEX";
  +  /** This NodeSet can not do indexing or counting functions! */
  +  public static final String ER_NODESET_CANNOT_INDEX = 
  +      "ER_NODESET_CANNOT_INDEX";
  +  /** Can not call setShouldCacheNodes after nextNode has been called! */
  +  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = 
  +      "ER_CANNOT_CALL_SETSHOULDCACHENODE";
  +  /** {0} only allows {1} arguments */
  + public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
  +  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
  +  public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
  +  /** Problem with RelativeLocationPath */
  +  public static final String ER_EXPECTED_REL_LOC_PATH = 
  +      "ER_EXPECTED_REL_LOC_PATH";
  +  /** Problem with LocationPath */
  +  public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
  +  /** Problem with Step */
  +  public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
  +  /** Problem with NodeTest */
  +  public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
  +  /** Expected step pattern */
  +  public static final String ER_EXPECTED_STEP_PATTERN = 
  +     "ER_EXPECTED_STEP_PATTERN";
  +  /** Expected relative path pattern */
  +  public static final String ER_EXPECTED_REL_PATH_PATTERN = 
  +      "ER_EXPECTED_REL_PATH_PATTERN";
  +  /** localname in QNAME should be a valid NCName */
  +  public static final String ER_ARG_LOCALNAME_INVALID = 
  +      "ER_ARG_LOCALNAME_INVALID";
  +  /** prefix in QNAME should be a valid NCName */
  +  public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
  +  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */
  +  public static final String ER_CANT_CONVERT_TO_BOOLEAN = 
  +      "ER_CANT_CONVERT_TO_BOOLEAN";
  +  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */
  +  public static final String ER_CANT_CONVERT_TO_SINGLENODE = 
  +      "ER_CANT_CONVERT_TO_SINGLENODE";
  +  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
  +  public static final String ER_CANT_GET_SNAPSHOT_LENGTH = 
  +      "ER_CANT_GET_SNAPSHOT_LENGTH";
  +  /** Field ER_NON_ITERATOR_TYPE                */
  +  public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
  +  /** Field ER_DOC_MUTATED                      */
  +  public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED";
  +  public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
  +  public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
  +  public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
  +  public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
  +  public static final String ER_CANT_CONVERT_TO_STRING = 
  +      "ER_CANT_CONVERT_TO_STRING";
  +  public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
  +  public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
  +  /* Note to translators:  The XPath expression cannot be evaluated with 
respect
  +   * to this type of node.
  +   */
  +  /** Field ER_WRONG_NODETYPE                    */
  +  public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
  +  public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR";
  +
  +  public static final String WG_LOCALE_NAME_NOT_HANDLED = 
  +      "WG_LOCALE_NAME_NOT_HANDLED";
  +  public static final String WG_PROPERTY_NOT_SUPPORTED = 
  +      "WG_PROPERTY_NOT_SUPPORTED";
  +  public static final String WG_DONT_DO_ANYTHING_WITH_NS = 
  +      "WG_DONT_DO_ANYTHING_WITH_NS";
  +  public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
  +  public static final String WG_QUO_NO_LONGER_DEFINED = 
  +      "WG_QUO_NO_LONGER_DEFINED";
  +  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 
  +      "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
  +  public static final String WG_FUNCTION_TOKEN_NOT_FOUND = 
  +      "WG_FUNCTION_TOKEN_NOT_FOUND";
  +  public static final String WG_COULDNOT_FIND_FUNCTION = 
  +      "WG_COULDNOT_FIND_FUNCTION";
  +  public static final String WG_CANNOT_MAKE_URL_FROM 
="WG_CANNOT_MAKE_URL_FROM";
  +  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = 
  +      "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
  +  public static final String WG_ILLEGAL_VARIABLE_REFERENCE = 
  +      "WG_ILLEGAL_VARIABLE_REFERENCE";
  +  public static final String WG_UNSUPPORTED_ENCODING 
="WG_UNSUPPORTED_ENCODING";
   
  -//  /** 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];
  -
  -  /*
  -  * Now fill in the message text.
  -  * First create an int for the message code. Make sure you
  -  * update MAX_CODE for error messages and MAX_WARNING for warnings
  -  * Then fill in the message text for that message code in the
  -  * array. Use the new error code as the index into the array.
  -  */
   
     // Error messages...
   
  +  public static final Object[][] contents = {
  +
     /** Field ERROR0000          */
  -  public static final int ERROR0000 = 0;
  +
  +//  public static final int ERROR0000 = 0;
  +
  +  { "ERROR0000" , "{0}" },
  +
   
     /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */
  -  public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
  +//  public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
   
  +  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "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;
  +  //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
   
  +  { ER_CURRENT_TAKES_NO_ARGS, "The current() function does not accept 
arguments!" },
   
     /** Field ER_DOCUMENT_REPLACED          */
  -  public static final int ER_DOCUMENT_REPLACED = 3;
  -
  +//  public static final int ER_DOCUMENT_REPLACED = 3;
  +  { ER_DOCUMENT_REPLACED,
  +      "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;
  + // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
   
  +  { ER_CONTEXT_HAS_NO_OWNERDOC,
  +      "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;
  + // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
   
  +  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
  +      "local-name() has too many arguments."},
   
     /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
  + //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
   
  +  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
  +      "namespace-uri() has too many arguments."},
   
     /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
  -
  +//  public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
  +  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
  +      "normalize-space() has too many arguments."},
   
     /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
  +//  public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
   
  +  { ER_NUMBER_HAS_TOO_MANY_ARGS,
  +      "number() has too many arguments."},
   
     /** Field ER_NAME_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
  +//  public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
   
  +  { ER_NAME_HAS_TOO_MANY_ARGS,
  +     "name() has too many arguments."},
   
     /** Field ER_STRING_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
  +//  public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
   
  +  { ER_STRING_HAS_TOO_MANY_ARGS,
  +      "string() has too many arguments."},
   
     /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */
  -  public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
  +//  public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
   
  +  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
  +      "string-length() has too many arguments."},
   
     /** Field ER_TRANSLATE_TAKES_3_ARGS          */
  -  public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
  +//  public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
   
  +  { ER_TRANSLATE_TAKES_3_ARGS,
  +      "The translate() function takes three arguments!"},
   
     /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */
  -  public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
  +//  public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
   
  +  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
  +      "The unparsed-entity-uri function should take one argument!"},
   
     /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */
  -  public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
  +//  public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
   
  +  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
  +      "namespace axis not implemented yet!"},
   
     /** Field ER_UNKNOWN_AXIS          */
  -  public static final int ER_UNKNOWN_AXIS = 15;
  +//  public static final int ER_UNKNOWN_AXIS = 15;
   
  +  { ER_UNKNOWN_AXIS,
  +     "unknown axis: {0}"},
   
     /** Field ER_UNKNOWN_MATCH_OPERATION          */
  -  public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
  +//  public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
   
  +  { ER_UNKNOWN_MATCH_OPERATION,
  +     "unknown match operation!"},
   
     /** Field ER_INCORRECT_ARG_LENGTH          */
  -  public static final int ER_INCORRECT_ARG_LENGTH = 17;
  +//  public static final int ER_INCORRECT_ARG_LENGTH = 17;
   
  +  { ER_INCORRECT_ARG_LENGTH,
  +      "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;
  +//  public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
   
  +  { ER_CANT_CONVERT_TO_NUMBER,
  +      "Can not convert {0} to a number"},
   
     /** Field ER_CANT_CONVERT_TO_NODELIST          */
  -  public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
  +  //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
   
  +  { ER_CANT_CONVERT_TO_NODELIST,
  +      "Can not convert {0} to a NodeList!"},
   
     /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */
  -  public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
  +//  public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
   
  +  { ER_CANT_CONVERT_TO_MUTABLENODELIST,
  +      "Can not convert {0} to a NodeSetDTM!"},
   
     /** Field ER_CANT_CONVERT_TO_TYPE          */
  -  public static final int ER_CANT_CONVERT_TO_TYPE = 21;
  +//  public static final int ER_CANT_CONVERT_TO_TYPE = 21;
   
  +  { ER_CANT_CONVERT_TO_TYPE,
  +      "Can not convert {0} to a type#{1}"},
   
     /** Field ER_EXPECTED_MATCH_PATTERN          */
  -  public static final int ER_EXPECTED_MATCH_PATTERN = 22;
  +//  public static final int ER_EXPECTED_MATCH_PATTERN = 22;
   
  +  { ER_EXPECTED_MATCH_PATTERN,
  +      "Expected match pattern in getMatchScore!"},
   
     /** Field ER_COULDNOT_GET_VAR_NAMED          */
  -  public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
  +//  public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
   
  +  { ER_COULDNOT_GET_VAR_NAMED,
  +      "Could not get variable named {0}"},
   
     /** Field ER_UNKNOWN_OPCODE          */
  -  public static final int ER_UNKNOWN_OPCODE = 24;
  +//  public static final int ER_UNKNOWN_OPCODE = 24;
   
  +  { ER_UNKNOWN_OPCODE,
  +     "ERROR! Unknown op code: {0}"},
   
     /** Field ER_EXTRA_ILLEGAL_TOKENS          */
  -  public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
  +//  public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
   
  +  { ER_EXTRA_ILLEGAL_TOKENS,
  +     "Extra illegal tokens: {0}"},
   
     /** Field ER_EXPECTED_DOUBLE_QUOTE          */
  -  public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
  +//  public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
   
  +  { ER_EXPECTED_DOUBLE_QUOTE,
  +      "misquoted literal... expected double quote!"},
   
     /** Field ER_EXPECTED_SINGLE_QUOTE          */
  -  public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
  +//  public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
   
  +  { ER_EXPECTED_SINGLE_QUOTE,
  +      "misquoted literal... expected single quote!"},
   
     /** Field ER_EMPTY_EXPRESSION          */
  -  public static final int ER_EMPTY_EXPRESSION = 28;
  +//  public static final int ER_EMPTY_EXPRESSION = 28;
   
  +  { ER_EMPTY_EXPRESSION,
  +     "Empty expression!"},
   
     /** Field ER_EXPECTED_BUT_FOUND          */
  -  public static final int ER_EXPECTED_BUT_FOUND = 29;
  +//  public static final int ER_EXPECTED_BUT_FOUND = 29;
   
  +  { ER_EXPECTED_BUT_FOUND,
  +     "Expected {0}, but found: {1}"},
   
     /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */
  -  public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
  +//  public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
   
  +  { ER_INCORRECT_PROGRAMMER_ASSERTION,
  +      "Programmer assertion is incorrect! - {0}"},
   
     /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */
  -  public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
  +//  public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
   
  +  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
  +      "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;
  +//  public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
   
  +  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
  +      "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;
  +//  public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
   
  +  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
  +      "Found ',' but no following argument!"},
   
     /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */
  -  public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
  +//  public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
   
  +  { ER_PREDICATE_ILLEGAL_SYNTAX,
  +      "'..[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;
  +//  public static final int ER_ILLEGAL_AXIS_NAME = 35;
   
  +  { ER_ILLEGAL_AXIS_NAME,
  +     "illegal axis name: {0}"},
   
     /** Field ER_UNKNOWN_NODETYPE          */
  -  public static final int ER_UNKNOWN_NODETYPE = 36;
  +//  public static final int ER_UNKNOWN_NODETYPE = 36;
   
  +  { ER_UNKNOWN_NODETYPE,
  +     "Unknown nodetype: {0}"},
   
     /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */
  -  public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
  +//  public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
   
  +  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
  +      "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;
  +//  public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
   
  +  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
  +      "{0} could not be formatted to a number!"},
   
     /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */
  -  public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
  +//  public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
   
  +  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
  +      "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;
  +//  public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
   
  +  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
  +      "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;
  +//  public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
   
  +  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
  +      "ERROR! Could not find ENDOP after OP_LOCATIONPATH"},
   
     /** Field ER_ERROR_OCCURED          */
  -  public static final int ER_ERROR_OCCURED = 42;
  +//  public static final int ER_ERROR_OCCURED = 42;
   
  +  { ER_ERROR_OCCURED,
  +     "Error occured!"},
   
     /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */
  -  public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
  +//  public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
   
  +  { ER_ILLEGAL_VARIABLE_REFERENCE,
  +      "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;
  +//  public static final int ER_AXES_NOT_ALLOWED = 44;
   
  +  { ER_AXES_NOT_ALLOWED,
  +      "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;
  +//  public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
   
  +  { ER_KEY_HAS_TOO_MANY_ARGS,
  +      "key() has an incorrect number of arguments."},
   
     /** Field ER_COUNT_TAKES_1_ARG          */
  -  public static final int ER_COUNT_TAKES_1_ARG = 46;
  +//  public static final int ER_COUNT_TAKES_1_ARG = 46;
   
  +  { ER_COUNT_TAKES_1_ARG,
  +      "The count function should take one argument!"},
   
     /** Field ER_COULDNOT_FIND_FUNCTION          */
  -  public static final int ER_COULDNOT_FIND_FUNCTION = 47;
  +//  public static final int ER_COULDNOT_FIND_FUNCTION = 47;
   
  +  { ER_COULDNOT_FIND_FUNCTION,
  +     "Could not find function: {0}"},
   
     /** Field ER_UNSUPPORTED_ENCODING          */
  -  public static final int ER_UNSUPPORTED_ENCODING = 48;
  +//  public static final int ER_UNSUPPORTED_ENCODING = 48;
   
  +  { ER_UNSUPPORTED_ENCODING,
  +     "Unsupported encoding: {0}"},
   
     /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */
  -  public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
  +//  public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
   
  +  { ER_PROBLEM_IN_DTM_NEXTSIBLING,
  +      "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;
  +//  public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
   
  +  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
  +      "Programmer error: EmptyNodeList can not be written to."},
   
     /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */
  -  public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
  +//  public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
   
  +  { ER_SETDOMFACTORY_NOT_SUPPORTED,
  +      "setDOMFactory is not supported by XPathContext!"},
   
     /** Field ER_PREFIX_MUST_RESOLVE          */
  -  public static final int ER_PREFIX_MUST_RESOLVE = 52;
  +//  public static final int ER_PREFIX_MUST_RESOLVE = 52;
   
  +  { ER_PREFIX_MUST_RESOLVE,
  +      "Prefix must resolve to a namespace: {0}"},
   
     /** Field ER_PARSE_NOT_SUPPORTED          */
  -  public static final int ER_PARSE_NOT_SUPPORTED = 53;
  +//  public static final int ER_PARSE_NOT_SUPPORTED = 53;
   
  +  { ER_PARSE_NOT_SUPPORTED,
  +      "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;
  +//  public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
   
  +  { ER_CREATEDOCUMENT_NOT_SUPPORTED,
  +      "createDocument() not supported in XPathContext!"},
   
     /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */
  -  public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
  +//  public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
   
  +  { ER_CHILD_HAS_NO_OWNER_DOCUMENT,
  +      "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;
  +//  public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
   
  +  { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
  +      "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;
  +//  public static final int ER_SAX_API_NOT_HANDLED = 57;
   
  +  { ER_SAX_API_NOT_HANDLED,
  +      "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;
  +//public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
   
  +  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
  +      "ignorableWhitespace(char ch[]... not handled by the DTM!"},
   
     /** Field ER_DTM_CANNOT_HANDLE_NODES          */
  -  public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
  +//  public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
   
  +  { ER_DTM_CANNOT_HANDLE_NODES,
  +      "DTMLiaison can not handle nodes of type {0}"},
   
     /** Field ER_XERCES_CANNOT_HANDLE_NODES          */
  -  public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
  +//  public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
   
  +  { ER_XERCES_CANNOT_HANDLE_NODES,
  +      "DOM2Helper can not handle nodes of type {0}"},
   
     /** Field ER_XERCES_PARSE_ERROR_DETAILS          */
  -  public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
  +//  public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
   
  +  { ER_XERCES_PARSE_ERROR_DETAILS,
  +      "DOM2Helper.parse error: SystemID - {0} line - {1}"},
   
     /** Field ER_XERCES_PARSE_ERROR          */
  -  public static final int ER_XERCES_PARSE_ERROR = 62;
  +//  public static final int ER_XERCES_PARSE_ERROR = 62;
   
  +  { ER_XERCES_PARSE_ERROR,
  +     "DOM2Helper.parse error"},
   
     /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */
  -  public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
  +//  public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
   
  +  { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
  +      "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;
  +//  public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
   
  +  { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
  +      "Can't have more than one root on a DOM!"},
   
     /** Field ER_INVALID_UTF16_SURROGATE          */
  -  public static final int ER_INVALID_UTF16_SURROGATE = 65;
  +//  public static final int ER_INVALID_UTF16_SURROGATE = 65;
   
  +  { ER_INVALID_UTF16_SURROGATE,
  +      "Invalid UTF-16 surrogate detected: {0} ?"},
   
     /** Field ER_OIERROR          */
  -  public static final int ER_OIERROR = 66;
  +  //public static final int ER_OIERROR = 66;
   
  +  { ER_OIERROR,
  +     "IO error"},
   
     /** Field ER_CANNOT_CREATE_URL          */
  -  public static final int ER_CANNOT_CREATE_URL = 67;
  +  //public static final int ER_CANNOT_CREATE_URL = 67;
   
  +  { ER_CANNOT_CREATE_URL,
  +     "Cannot create url for: {0}"},
   
     /** Field ER_XPATH_READOBJECT          */
  -  public static final int ER_XPATH_READOBJECT = 68;
  +//  public static final int ER_XPATH_READOBJECT = 68;
   
  +  { ER_XPATH_READOBJECT,
  +     "In XPath.readObject: {0}"},
     
     /** Field ER_XPATH_READOBJECT         */
  -  public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
  +// public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
   
  +  { ER_FUNCTION_TOKEN_NOT_FOUND,
  +      "function token not found."},
     
      /**  Argument 'localName' is null  */
  -  public static final int ER_ARG_LOCALNAME_NULL = 70;
  +// public static final int ER_ARG_LOCALNAME_NULL = 70;
   
  +  { ER_FUNCTION_TOKEN_NOT_FOUND,
  +       "Argument 'localName' is null"},
     
      /**  Can not deal with XPath type:   */
  -  public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
  +//  public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
   
  +  { ER_CANNOT_DEAL_XPATH_TYPE,
  +       "Can not deal with XPath type: {0}"},
     
      /**  This NodeSet is not mutable  */
  -  public static final int ER_NODESET_NOT_MUTABLE = 72;
  + // public static final int ER_NODESET_NOT_MUTABLE = 72;
   
  +  { ER_NODESET_NOT_MUTABLE,
  +       "This NodeSet is not mutable"},
     
      /**  This NodeSetDTM is not mutable  */
  -  public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
  +//  public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
   
  +  { ER_NODESETDTM_NOT_MUTABLE,
  +       "This NodeSetDTM is not mutable"},
     
      /**  Variable not resolvable:   */
  -  public static final int ER_VAR_NOT_RESOLVABLE = 74;
  +//  public static final int ER_VAR_NOT_RESOLVABLE = 74;
   
  +  { ER_VAR_NOT_RESOLVABLE,
  +        "Variable not resolvable: {0}"},
     
      /** Null error handler  */
  -  public static final int ER_NULL_ERROR_HANDLER = 75;
  +// public static final int ER_NULL_ERROR_HANDLER = 75;
   
  +  { ER_NULL_ERROR_HANDLER,
  +        "Null error handler"},
     
      /**  Programmer's assertion: unknown opcode  */
  -  public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
  + // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
   
  +  { ER_PROG_ASSERT_UNKNOWN_OPCODE,
  +       "Programmer''s assertion: unknown opcode: {0}"},
     
      /**  0 or 1   */
  -  public static final int ER_ZERO_OR_ONE = 77;
  +//  public static final int ER_ZERO_OR_ONE = 77;
   
  +  { ER_ZERO_OR_ONE,
  +       "0 or 1"},
     
     
      /**  rtf() not supported by XRTreeFragSelectWrapper   */
  -  public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
  +  //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 
78;
   
  +  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  +       "rtf() not supported by XRTreeFragSelectWrapper"},
     
      /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */
  -  public static final int 
ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
  +  //public static final int 
ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
   
  +  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
  +       "asNodeIterator() not supported by XRTreeFragSelectWrapper"},
     
      /**  fsb() not supported for XStringForChars   */
  -  public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
  + // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
   
  +  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
  +       "fsb() not supported for XStringForChars"},
     
      /**  Could not find variable with the name of   */
  -  public static final int ER_COULD_NOT_FIND_VAR = 81;
  +// public static final int ER_COULD_NOT_FIND_VAR = 81;
   
  +  { ER_COULD_NOT_FIND_VAR,
  +      "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;
  +// public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
   
  +  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
  +      "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;
  +// public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
   
  -  
  +  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
  +      "The FastStringBuffer argument can not be null"},
  +
  +  /* MANTIS_XALAN CHANGE: BEGIN */ 
      /**  2 or 3   */
  -  public static final int ER_TWO_OR_THREE = 84;
  +//  public static final int ER_TWO_OR_THREE = 84;
   
  -  
  -// 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!
  -  public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
  -  
  -  // 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!
  -  public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
  -  
  -  // This NodeSet can not iterate to a previous node!
  -  public static final int ER_NODESET_CANNOT_ITERATE = 89;
  +  { ER_TWO_OR_THREE,
  +       "2 or 3"},
   
  -  // 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!
  -  public static final int ER_NODESET_CANNOT_INDEX = 91;
  +   /** Variable accessed before it is bound! */
  +//  public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
  +
  +  { ER_VARIABLE_ACCESSED_BEFORE_BIND,
  +       "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;
  +
  +  { ER_FSB_CANNOT_TAKE_STRING,
  +       "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;
  +
  +  { ER_SETTING_WALKER_ROOT_TO_NULL,
  +       "\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;
  +
  +  { ER_NODESETDTM_CANNOT_ITERATE,
  +       "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;
  +
  +  { ER_NODESET_CANNOT_ITERATE,
  +       "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;
  +
  +  { ER_NODESETDTM_CANNOT_INDEX,
  +       "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;
  +
  +  { ER_NODESET_CANNOT_INDEX,
  +       "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;
  +
  +  { ER_CANNOT_CALL_SETSHOULDCACHENODE,
  +       "Can not call setShouldCacheNodes after nextNode has been called!"},
  +
  +  /** {0} only allows {1} arguments */
  +// public static final int ER_ONLY_ALLOWS = 93;
  +
  +  { ER_ONLY_ALLOWS,
  +       "{0} only allows {1} arguments"},
  +
  +  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
  +//  public static final int ER_UNKNOWN_STEP = 94;
  +
  +  { ER_UNKNOWN_STEP,
  +       "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.
   
  -  // Can not call setShouldCacheNodes after nextNode has been called!
  -  public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
  -  
  -  // {0} only allows {1} arguments
  -  public static final int ER_ONLY_ALLOWS = 93;
  -  
  -  // Programmer's assertion in getNextStepPos: unknown stepType: {0}
  -  public static final int ER_UNKNOWN_STEP = 94;
  -  
     /** Problem with RelativeLocationPath */
  -  public static final int ER_EXPECTED_REL_LOC_PATH = 95;
  +//  public static final int ER_EXPECTED_REL_LOC_PATH = 95;
   
  +  { ER_EXPECTED_REL_LOC_PATH,
  +      "A relative location path was expected following the '/' or '//' 
token."},
   
  -   /** Problem with LocationPath */
  -  public static final int ER_EXPECTED_LOC_PATH = 96;
  +  // 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 */
  +//  public static final int ER_EXPECTED_LOC_PATH = 96;
   
  -   /** Problem with Step */
  -  public static final int ER_EXPECTED_LOC_STEP = 97;
  +  { ER_EXPECTED_LOC_PATH,
  +       "A location path was expected, but the following token was 
encountered\u003a  {0}"},
   
  +  // 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 NodeTest */
  -  public static final int ER_EXPECTED_NODE_TEST = 98;
  +  /** Problem with Step */
  +//  public static final int ER_EXPECTED_LOC_STEP = 97;
   
  +  { ER_EXPECTED_LOC_STEP,
  +       "A location step was expected following the '/' or '//' token."},
   
  -   /** Expected step pattern */
  -  public static final int ER_EXPECTED_STEP_PATTERN = 99;
  +  // 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.
   
  -  
  -   /** Expected relative path pattern */
  -  public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
  -  
  -  /** localname in QNAME should be a valid NCName */  
  -  public static final int ER_ARG_LOCALNAME_INVALID = 101;
  +  /** Problem with NodeTest */
  +//  public static final int ER_EXPECTED_NODE_TEST = 98;
   
  -  /** prefix in QNAME should be a valid NCName */
  -  public static final int ER_ARG_PREFIX_INVALID = 102;
  +  { ER_EXPECTED_NODE_TEST,
  +       "A node test that matches either NCName:* or QName was expected."},
   
  +  // 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;
  +
  +  { ER_EXPECTED_STEP_PATTERN,
  +       "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.
    
  -/** 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;  
  +  /** Expected relative path pattern */
  +//  public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
   
  -/** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
  -  public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
  -  
  -/** Field ER_NON_ITERATOR_TYPE                */
  -  public static final int ER_NON_ITERATOR_TYPE        = 106;
  +  { ER_EXPECTED_REL_PATH_PATTERN,
  +       "A relative path pattern was expected."},
   
  -/** Field ER_DOC_MUTATED                      */
  -  public static final int ER_DOC_MUTATED              = 107;
  -  
  -/** Field ER_INVALID_XPATH_TYPE               */
  -  public static final int ER_INVALID_XPATH_TYPE       = 108;
  -  
  -/** Field ER_EMPTY_XPATH_RESULT                */
  -  public static final int ER_EMPTY_XPATH_RESULT       = 109;
  +  // 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.
   
  -/** Field ER_INCOMPATIBLE_TYPES                */
  -  public static final int ER_INCOMPATIBLE_TYPES       = 110;  
  -  
  -/** Field ER_NULL_RESOLVER                     */
  -  public static final int ER_NULL_RESOLVER            = 111;
  +  /** localname in QNAME should be a valid NCName */
  +//  public static final int ER_ARG_LOCALNAME_INVALID = 101;
   
  -/** Field ER_CANT_CONVERT_TO_STRING            */
  -  public static final int ER_CANT_CONVERT_TO_STRING   = 112;
  +  { ER_ARG_LOCALNAME_INVALID,
  +       "Localname in QNAME should be a valid NCName"},
     
  -/** Field ER_NON_SNAPSHOT_TYPE                 */
  -  public static final int ER_NON_SNAPSHOT_TYPE       = 113;
  +  // 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;
  +
  +  { ER_ARG_PREFIX_INVALID,
  +       "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;
  +
  +  { ER_CANT_CONVERT_TO_BOOLEAN,
  +       "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;
  +
  +  { ER_CANT_CONVERT_TO_SINGLENODE,
  +       "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;
  +
  +  { ER_CANT_GET_SNAPSHOT_LENGTH,
  +       "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;
  +
  +  { ER_NON_ITERATOR_TYPE,
  +       "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;
  +
  +  { ER_DOC_MUTATED,
  +       "Document mutated since result was returned. Iterator is invalid."},
  +
  +  /** Field ER_INVALID_XPATH_TYPE               */
  +//  public static final int ER_INVALID_XPATH_TYPE       = 108;
  +
  +  { ER_INVALID_XPATH_TYPE,
  +       "Invalid XPath type argument: {0}"},
  +
  +  /** Field ER_EMPTY_XPATH_RESULT                */
  +//  public static final int ER_EMPTY_XPATH_RESULT       = 109;
  +
  +  { ER_EMPTY_XPATH_RESULT,
  +       "Empty XPath result object"},
  +
  +  /** Field ER_INCOMPATIBLE_TYPES                */
  +//  public static final int ER_INCOMPATIBLE_TYPES       = 110;
  +
  +  { ER_INCOMPATIBLE_TYPES,
  +       "The returned type: {0} cannot be coerced into the specified type: 
{1}"},
  +
  +  /** Field ER_NULL_RESOLVER                     */
  + // public static final int ER_NULL_RESOLVER            = 111;
  +
  +  { ER_NULL_RESOLVER,
  +       "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;
  +
  +  { ER_CANT_CONVERT_TO_STRING,
  +       "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;
  +
  +  { ER_NON_SNAPSHOT_TYPE,
  +       "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;
  +
  +  { ER_WRONG_DOCUMENT,
  +       "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;
  +
  +  { ER_WRONG_NODETYPE,
  +       "The context node type is not supported."},
  +
  +  /** Field ER_XPATH_ERROR                       */
  +//  public static final int ER_XPATH_ERROR             = 116;
  +
  +  { ER_XPATH_ERROR,
  +       "Unknown error in XPath."},
  +
   
  -/** 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                       */  
  -  public static final int ER_XPATH_ERROR             = 116;
  -  
     // Warnings...
   
     /** Field WG_LOCALE_NAME_NOT_HANDLED          */
  -  public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
  +//  public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
   
  +  { WG_LOCALE_NAME_NOT_HANDLED,
  +      "locale name in the format-number function not yet handled!"},
   
     /** Field WG_PROPERTY_NOT_SUPPORTED          */
  -  public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
  +//  public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
   
  +  { WG_PROPERTY_NOT_SUPPORTED,
  +      "XSL Property not supported: {0}"},
   
     /** Field WG_DONT_DO_ANYTHING_WITH_NS          */
  -  public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
  +//  public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
   
  +  { WG_DONT_DO_ANYTHING_WITH_NS,
  +      "Do not currently do anything with namespace {0} in property: {1}"},
   
     /** Field WG_SECURITY_EXCEPTION          */
  -  public static final int WG_SECURITY_EXCEPTION = 4;
  +// public static final int WG_SECURITY_EXCEPTION = 4;
   
  +  { WG_SECURITY_EXCEPTION,
  +      "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;
  +//  public static final int WG_QUO_NO_LONGER_DEFINED = 5;
   
  +  { WG_QUO_NO_LONGER_DEFINED,
  +      "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;
  +// public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
   
  +  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
  +      "XPath needs a derived object to implement nodeTest!"},
   
     /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */
  -  public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
  +//  public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
   
  +  { WG_FUNCTION_TOKEN_NOT_FOUND,
  +      "function token not found."},
   
     /** Field WG_COULDNOT_FIND_FUNCTION          */
  -  public static final int WG_COULDNOT_FIND_FUNCTION = 8;
  +//  public static final int WG_COULDNOT_FIND_FUNCTION = 8;
   
  +  { WG_COULDNOT_FIND_FUNCTION,
  +      "Could not find function: {0}"},
   
     /** Field WG_CANNOT_MAKE_URL_FROM          */
  -  public static final int WG_CANNOT_MAKE_URL_FROM = 9;
  +//  public static final int WG_CANNOT_MAKE_URL_FROM = 9;
   
  +  { WG_CANNOT_MAKE_URL_FROM,
  +      "Can not make URL from: {0}"},
   
     /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */
  -  public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
  +//  public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
   
  +  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
  +      "-E option not supported for DTM parser"},
   
     /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */
  -  public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
  +//  public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
   
  +  { WG_ILLEGAL_VARIABLE_REFERENCE,
  +      "VariableReference given for variable out of context or without 
definition!  Name = {0}"},
   
     /** Field WG_UNSUPPORTED_ENCODING          */
  -  public static final int WG_UNSUPPORTED_ENCODING = 12;
  +//  public static final int WG_UNSUPPORTED_ENCODING = 12;
  +
  +  { WG_UNSUPPORTED_ENCODING,
  +     "Unsupported encoding: {0}"},
  +
   
   
     // Other miscellaneous text used inside the code...
  +  { "ui_language", "en"},
  +  { "help_language", "en"},
  +  { "language", "en"},
  +  { "BAD_CODE", "Parameter to createMessage was out of bounds"},
  +  { "FORMAT_FAILED", "Exception thrown during messageFormat call"},
  +  { "version", ">>>>>>> Xalan Version "},
  +  { "version2", "<<<<<<<"},
  +  { "yes", "yes"},
  +  { "line", "Line #"},
  +  { "column", "Column #"},
  +  { "xsldone", "XSLProcessor: done"},
  +  { "xpath_option", "xpath options: "},
  +  { "optionIN", "   [-in inputXMLURL]"},
  +  { "optionSelect", "   [-select xpath expression]"},
  +  { "optionMatch", "   [-match match pattern (for match diagnostics)]"},
  +  { "optionAnyExpr", "Or just an xpath expression will do a diagnostic 
dump"},
  +  { "noParsermsg1", "XSL Process was not successful."},
  +  { "noParsermsg2", "** Could not find parser **"},
  +  { "noParsermsg3", "Please check your classpath."},
  +  { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can 
download it from"},
  +  { "noParsermsg5", "IBM's AlphaWorks: 
http://www.alphaworks.ibm.com/formula/xml"},
  +  { "gtone", ">1" },
  +  { "zero", "0" },
  +  { "one", "1" },
  +  { "two" , "2" },
  +  { "three", "3" }
  +
  +  };
  +
   
     // ================= INFRASTRUCTURE ======================
   
  @@ -647,15 +1293,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 +1314,7 @@
      * @return the ResourceBundle
      * @throws MissingResourceException
      */
  -  public static final ResourceBundle loadResourceBundle(String className)
  +  public static final XPATHErrorResources loadResourceBundle(String 
className)
             throws MissingResourceException
     {
   
  @@ -679,7 +1325,7 @@
       {
   
         // first try with the given locale
  -      return ResourceBundle.getBundle(className
  +      return (XPATHErrorResources) ResourceBundle.getBundle(className
                 + suffix, locale);
       }
       catch (MissingResourceException e)
  @@ -689,7 +1335,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)
  @@ -723,83 +1369,4 @@
       return suffix;
     }
   
  -  /**
  -   * Get the error string associated with the error code
  -   *
  -   * @param errorCode Error code
  -   *
  -   * @return error string associated with the given error code
  -   */
  -  public static String getMessageKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return ERROR_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get the warning string associated with the error code
  -   *
  -   * @param errorCode Error code
  -   * 
  -   * @return warning string associated with the given error code
  -   */
  -  public static String getWarningKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return WARNING_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get the key string for an error based on the integer representation.
  -   *
  -   * @param errorCode Error code
  -   * 
  -   * @return key string that may be used for lookup in the association table.
  -   */
  -  public static String getMKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_CODE)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return ERROR_SUFFIX + df.format(errorCode);
  -    }
  -  }
  -
  -  /**
  -   * Get the key string for an warning based on the integer representation.
  -   *
  -   * @param errorCode Error code
  -   * 
  -   * @return key string that may be used for lookup in the association table.
  -   */
  -  public static String getWKey(int errorCode)
  -  {
  -
  -//    if (errorCode > MAX_WARNING)
  -//      return null;
  -//    else
  -    {
  -      DecimalFormat df = new DecimalFormat("0000");
  -
  -      return WARNING_SUFFIX + df.format(errorCode);
  -    }
  -  }
   }
  
  
  

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

Reply via email to