mmidy       00/08/30 12:46:23

  Modified:    java/src/org/apache/xalan/res XSLTErrorResources.java
  Log:
  Error if have two templates with same name and import precedence
  
  Revision  Changes    Path
  1.4       +6 -1      
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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSLTErrorResources.java   2000/08/23 16:05:11     1.3
  +++ XSLTErrorResources.java   2000/08/30 19:46:22     1.4
  @@ -81,7 +81,7 @@
   public static final String ERROR_SUFFIX = "ER";  
   public static final String WARNING_SUFFIX = "WR";
   
  -public static final int MAX_CODE = 104;                  // this is needed 
to keep track of the number of messages          
  +public static final int MAX_CODE = 105;                  // this is needed 
to keep track of the number of messages          
   public static final int MAX_WARNING = 26;             // this is needed to 
keep track of the number of warnings
   public static final int MAX_OTHERS = 41;
   public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING +1;
  @@ -640,6 +640,11 @@
   public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT = 104;
   static {contents[ER_IN_ELEMTEMPLATEELEM_READOBJECT][1] 
             = "In ElemTemplateElement.readObject: {0}";      
  +}
  +
  +public static final int ER_DUPLICATE_NAMED_TEMPLATE = 105;
  +static {contents[ER_DUPLICATE_NAMED_TEMPLATE][1] 
  +          = "Found more than one template named: {0}";      
   }
   
   // Warnings...
  
  
  

Reply via email to