You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by il...@apache.org on 2002/09/23 21:51:56 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/res XSLTErrorResources.java XSLTErrorResources.properties

ilene       2002/09/23 12:51:56

  Modified:    java/src/org/apache/xalan/templates ElemAttribute.java
               java/src/org/apache/xalan/res XSLTErrorResources.java
                        XSLTErrorResources.properties
  Log:
  Patch for bugzilla #10384.  There's still a problem with attribseterr08 which
  is covered in bugzilla #3969.
  
  Revision  Changes    Path
  1.19      +1 -1      xml-xalan/java/src/org/apache/xalan/templates/ElemAttribute.java
  
  Index: ElemAttribute.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemAttribute.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ElemAttribute.java	10 Jul 2002 16:06:31 -0000	1.18
  +++ ElemAttribute.java	23 Sep 2002 19:51:55 -0000	1.19
  @@ -134,7 +134,7 @@
         int sourceNode = xctxt.getCurrentNode();
         String attrName = m_name_avt.evaluate(xctxt, sourceNode, this);
         transformer.getMsgMgr().warn(this,
  -                                   XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE,
  +                                   XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_POSITION,
                                      new Object[]{ attrName });
   
         if (TransformerImpl.S_DEBUG)
  
  
  
  1.30      +3 -0      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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- XSLTErrorResources.java	24 Jul 2002 14:15:03 -0000	1.29
  +++ XSLTErrorResources.java	23 Sep 2002 19:51:56 -0000	1.30
  @@ -1211,6 +1211,9 @@
     /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */
     public static final int WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME = 28;  
     
  +  /** 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!
  
  
  
  1.11      +2 -1      xml-xalan/java/src/org/apache/xalan/res/XSLTErrorResources.properties
  
  Index: XSLTErrorResources.properties
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/res/XSLTErrorResources.properties,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XSLTErrorResources.properties	18 Sep 2002 16:54:24 -0000	1.10
  +++ XSLTErrorResources.properties	23 Sep 2002 19:51:56 -0000	1.11
  @@ -561,7 +561,8 @@
   WR0027=processing-instruction name can not be 'xml'
   # WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME
   WR0028=processing-instruction name must be a valid NCName\u003a {0}
  -
  +# WG_ILLEGAL_ATTRIBUTE_POSITION 
  +WR0029=Attribute {0} cannot be added after child nodes.
   
   # INVALID_TCHAR
   WR0239=Illegal value: {1} used for CHAR attribute: {0}.  An attribute of type CHAR must be only 1 character!
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org