sandygao    2002/11/28 10:17:14

  Modified:    java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java
  Log:
  Fixing bug 14939: the default attribute value was incorrect.
  
  Revision  Changes    Path
  1.123     +2 -2      
xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
  
  Index: XMLSchemaValidator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- XMLSchemaValidator.java   18 Nov 2002 23:11:54 -0000      1.122
  +++ XMLSchemaValidator.java   28 Nov 2002 18:17:14 -0000      1.123
  @@ -2757,7 +2757,7 @@
               // if the attribute is not specified, then apply the value constraint
               if (!isSpecified && constType != XSConstants.VC_NONE) {
                   attName = new QName(null, currDecl.fName, currDecl.fName, 
currDecl.fTargetNamespace);
  -                String normalized = (defaultValue!=null)?defaultValue.toString():"";
  +                String normalized = 
(defaultValue!=null)?defaultValue.stringValue():"";
                   int attrIndex = attributes.addAttribute(attName, "CDATA", 
normalized);
                   if (attributes instanceof XMLAttributesImpl) {
                       XMLAttributesImpl attrs = (XMLAttributesImpl)attributes;
  
  
  

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

Reply via email to