From 739c88223bec5a43f549f9f2552cbae8e2dbc85d Mon Sep 17 00:00:00 2001 From: Khaled Noaman <knoaman@apache.org> Date: Mon, 29 Dec 2003 17:06:31 +0000 Subject: [PATCH] PSVI: return value constraint only if global declaration git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175624 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/framework/psvi/XSAttributeDeclaration.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp b/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp index a1e1f24f3..a7a708e67 100644 --- a/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp +++ b/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp @@ -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 @@ XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType() const const XMLCh *XSAttributeDeclaration::getConstraintValue() { - return fAttDef->getValue(); + if (fScope == XSConstants::SCOPE_GLOBAL) + return fAttDef->getValue(); + + return 0; } bool XSAttributeDeclaration::getRequired() const -- GitLab