You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/11/08 20:38:16 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java

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: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org