Fixed Xerces XSAttributeDeclaration.cpp
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -77,8 +77,8 @@ XSNamespaceItem *XSAttributeDeclaration::getNamespaceItem()
|
|||||||
|
|
||||||
XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType() const
|
XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType() const
|
||||||
{
|
{
|
||||||
if (fScope != XSConstants::SCOPE_GLOBAL)
|
//if (fScope != XSConstants::SCOPE_GLOBAL)
|
||||||
return XSConstants::VALUE_CONSTRAINT_NONE;
|
// return XSConstants::VALUE_CONSTRAINT_NONE;
|
||||||
|
|
||||||
if (fAttDef->getDefaultType() == XMLAttDef::Default)
|
if (fAttDef->getDefaultType() == XMLAttDef::Default)
|
||||||
return XSConstants::VALUE_CONSTRAINT_DEFAULT;
|
return XSConstants::VALUE_CONSTRAINT_DEFAULT;
|
||||||
@@ -92,10 +92,10 @@ XSConstants::VALUE_CONSTRAINT XSAttributeDeclaration::getConstraintType() const
|
|||||||
|
|
||||||
const XMLCh *XSAttributeDeclaration::getConstraintValue()
|
const XMLCh *XSAttributeDeclaration::getConstraintValue()
|
||||||
{
|
{
|
||||||
if (fScope == XSConstants::SCOPE_GLOBAL)
|
//if (fScope == XSConstants::SCOPE_GLOBAL)
|
||||||
return fAttDef->getValue();
|
return fAttDef->getValue();
|
||||||
|
|
||||||
return 0;
|
//return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool XSAttributeDeclaration::getRequired() const
|
bool XSAttributeDeclaration::getRequired() const
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user