xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject cvs commit: xml-xerces/c/src/parsers DOMParser.cpp
Date Wed, 11 Apr 2001 14:01:41 GMT
tng         01/04/11 07:01:40

  Modified:    c/src/parsers DOMParser.cpp
  Log:
  Attribute default values not printed in document type internal subset interface.
  
  Revision  Changes    Path
  1.44      +10 -9     xml-xerces/c/src/parsers/DOMParser.cpp
  
  Index: DOMParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/DOMParser.cpp,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- DOMParser.cpp	2001/03/30 16:53:03	1.43
  +++ DOMParser.cpp	2001/04/11 14:01:40	1.44
  @@ -59,7 +59,7 @@
   *  handler with the scanner. In these handler methods, appropriate DOM nodes
   *  are created and added to the DOM tree.
   *
  -* $Id: DOMParser.cpp,v 1.43 2001/03/30 16:53:03 tng Exp $
  +* $Id: DOMParser.cpp,v 1.44 2001/04/11 14:01:40 tng Exp $
   *
   */
   
  @@ -822,14 +822,6 @@
                       }
                       anotherEnumString.appendData(chCloseParen);
                       attString.appendData(anotherEnumString);
  -
  -                    enumString = attDef.getValue();
  -                    if ( enumString != 0) {
  -                        attString.appendData(chSpace);
  -                        attString.appendData(chDoubleQuote);
  -                        attString.appendData(XMLString::transcode(attDef.getValue()));
  -                        attString.appendData(chDoubleQuote);
  -                    }
                   }
                   break;
               }
  @@ -850,6 +842,15 @@
                   attString.appendData(XMLUni::fgFixedString);
                   break;
               }
  +
  +            const XMLCh* defaultValue = attDef.getValue();
  +            if (defaultValue != 0) {
  +                attString.appendData(chSpace);
  +                attString.appendData(chDoubleQuote);
  +                attString.appendData(XMLString::transcode(defaultValue));
  +                attString.appendData(chDoubleQuote);
  +            }
  +
               attString.appendData(chCloseAngle);
               fDocumentType->internalSubset.appendData(attString);
           }
  
  
  

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


Mime
View raw message