mmidy       2002/07/08 15:05:57

  Modified:    java/src/org/apache/xalan/processor StylesheetHandler.java
                        XSLTAttributeDef.java
  Log:
  resource error messages
  
  Revision  Changes    Path
  1.53      +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.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- StylesheetHandler.java    10 Jun 2002 21:34:40 -0000      1.52
  +++ StylesheetHandler.java    8 Jul 2002 22:05:56 -0000       1.53
  @@ -422,8 +422,8 @@
       }
   
       if (null == elemProcessor)
  -      error(rawName + " is not allowed in this position in the stylesheet!",
  -            null);
  +      
error(XSLMessages.createMessage(XSLTErrorResources.ER_NOT_ALLOWED_IN_POSITION, 
new Object[]{rawName}),null);//rawName + " is not allowed in this position in 
the stylesheet!",
  +            
                   
       return elemProcessor;
     }
  @@ -740,8 +740,8 @@
         // If it's whitespace, just ignore it, otherwise flag an error.
         if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length))
           error(
  -          "Non-whitespace text is not allowed in this position in the 
stylesheet!",
  -          null);
  +          
XSLMessages.createMessage(XSLTErrorResources.ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
 null),null);//"Non-whitespace text is not allowed in this position in the 
stylesheet!",
  +          
       }
       else
         elemProcessor.characters(this, ch, start, length);
  
  
  
  1.22      +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
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XSLTAttributeDef.java     22 Mar 2002 01:04:40 -0000      1.21
  +++ XSLTAttributeDef.java     8 Jul 2002 22:05:56 -0000       1.22
  @@ -522,7 +522,7 @@
       if (value.length() != 1)
       {
         handler.error(
  -        "An XSLT attribute of type T_CHAR must be only 1 character!", null);
  +        
XSLMessages.createMessage(XSLTErrorResources.ER_ATTR_T_CHAR_ONE_CHAR, null), 
null); //"An XSLT attribute of type T_CHAR must be only 1 character!", null);
       }
   
       return new Character(value.charAt(0));
  
  
  

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

Reply via email to