You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by lm...@apache.org on 2001/12/14 21:48:51 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dtd XMLDTDValidator.java

lmartin     01/12/14 12:48:51

  Modified:    java/src/org/apache/xerces/impl/dtd XMLDTDValidator.java
  Log:
  if there is no default attribute value, pass null for value to attributeDecl in the pipeline and ensure consumers can handle it
  
  Revision  Changes    Path
  1.5       +2 -2      xml-xerces/java/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java
  
  Index: XMLDTDValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLDTDValidator.java	2001/11/26 21:45:51	1.4
  +++ XMLDTDValidator.java	2001/12/14 20:48:51	1.5
  @@ -124,7 +124,7 @@
    * @author Andy Clark, IBM
    * @author Jeffrey Rodriguez IBM
    *
  - * @version $Id: XMLDTDValidator.java,v 1.4 2001/11/26 21:45:51 elena Exp $
  + * @version $Id: XMLDTDValidator.java,v 1.5 2001/12/14 20:48:51 lmartin Exp $
    */
   public class XMLDTDValidator
   implements XMLComponent, 
  @@ -1358,7 +1358,7 @@
                                 String defaultType, XMLString defaultValue)
       throws XNIException {
   
  -        if (type != fCDATASymbol) {
  +        if (type != fCDATASymbol && defaultValue != null) {
               normalizeDefaultAttrValue(defaultValue);
           }
   
  
  
  

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