From c2040c371eaa677e2bacbd0d3dca21ede06b759b Mon Sep 17 00:00:00 2001
From: Neil Graham <neilg@apache.org>
Date: Tue, 30 Dec 2003 20:41:06 +0000
Subject: [PATCH] do not report anything about default/fixed values for
 non-global attribute declarations

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175633 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/framework/psvi/XSAttributeDeclaration.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp b/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
index a7a708e67..f7a01fdea 100644
--- a/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
+++ b/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.10  2003/12/30 20:41:06  neilg
+ * do not report anything about default/fixed values for non-global attribute declarations
+ *
  * Revision 1.9  2003/12/29 17:06:31  knoaman
  * PSVI: return value constraint only if global declaration
  *
@@ -152,6 +155,8 @@ unsigned int XSAttributeDeclaration::getId() const
 
 XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType() const
 {
+    if (fScope != XSConstants::SCOPE_GLOBAL)
+        return XSConstants::VC_NONE;
     if (fAttDef->getDefaultType() & XMLAttDef::Default)
         return XSConstants::VC_DEFAULT;
 
-- 
GitLab