sandygao    2002/11/08 11:38:16

  Modified:    java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java
  Log:
  Need to expose type information for default attributes.
  Don't know why the spec didn't ask for the attribute declaration.
  
  Revision  Changes    Path
  1.121     +4 -1      
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.120
  retrieving revision 1.121
  diff -u -r1.120 -r1.121
  --- XMLSchemaValidator.java   25 Oct 2002 16:42:38 -0000      1.120
  +++ XMLSchemaValidator.java   8 Nov 2002 19:38:16 -0000       1.121
  @@ -2775,6 +2775,9 @@
                       AttributePSVImpl attrPSVI = new AttributePSVImpl();
                       augs.putItem(Constants.ATTRIBUTE_PSVI, attrPSVI);
   
  +                    attrPSVI.fDeclaration = currDecl;
  +                    attrPSVI.fTypeDecl = currDecl.fType;
  +                    attrPSVI.fMemberType = defaultValue.memberType;
                       attrPSVI.fNormalizedValue = normalized;
                       attrPSVI.fSchemaDefault = normalized;
                       attrPSVI.fValidationContext = fValidationRoot;
  
  
  

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

Reply via email to