You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2003/12/29 18:06:31 UTC

cvs commit: xml-xerces/c/src/xercesc/framework/psvi XSAttributeDeclaration.cpp

knoaman     2003/12/29 09:06:31

  Modified:    c/src/xercesc/framework/psvi XSAttributeDeclaration.cpp
  Log:
  PSVI: return value constraint only if global declaration
  
  Revision  Changes    Path
  1.9       +7 -1      xml-xerces/c/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
  
  Index: XSAttributeDeclaration.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XSAttributeDeclaration.cpp	29 Dec 2003 16:15:42 -0000	1.8
  +++ XSAttributeDeclaration.cpp	29 Dec 2003 17:06:31 -0000	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2003/12/29 17:06:31  knoaman
  + * PSVI: return value constraint only if global declaration
  + *
    * Revision 1.8  2003/12/29 16:15:42  knoaman
    * More PSVI updates
    *
  @@ -161,7 +164,10 @@
   
   const XMLCh *XSAttributeDeclaration::getConstraintValue()
   {
  -    return fAttDef->getValue();
  +    if (fScope == XSConstants::SCOPE_GLOBAL)
  +        return fAttDef->getValue();
  +
  +    return 0;
   }
   
   bool XSAttributeDeclaration::getRequired() const
  
  
  

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