knoaman 2003/12/19 07:09:47
Modified: c/src/xercesc/framework/psvi XSComplexTypeDefinition.cpp
Log:
PSVI: process 'final' information
Revision Changes Path
1.10 +13 -0
xml-xerces/c/src/xercesc/framework/psvi/XSComplexTypeDefinition.cpp
Index: XSComplexTypeDefinition.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSComplexTypeDefinition.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XSComplexTypeDefinition.cpp 15 Dec 2003 17:23:48 -0000 1.9
+++ XSComplexTypeDefinition.cpp 19 Dec 2003 15:09:47 -0000 1.10
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.10 2003/12/19 15:09:47 knoaman
+ * PSVI: process 'final' information
+ *
* Revision 1.9 2003/12/15 17:23:48 cargilld
* psvi updates; cleanup revisits and bug fixes
*
@@ -134,6 +137,16 @@
if (blockset & SchemaSymbols::XSD_RESTRICTION)
fProhibitedSubstitution |= XSConstants::DERIVATION_RESTRICTION;
+ }
+
+ int finalSet = fComplexTypeInfo->getFinalSet();
+ if (finalSet)
+ {
+ if (finalSet & SchemaSymbols::XSD_EXTENSION)
+ fFinal |= XSConstants::DERIVATION_EXTENSION;
+
+ if (finalSet & SchemaSymbols::XSD_RESTRICTION)
+ fFinal |= XSConstants::DERIVATION_RESTRICTION;
}
if (headAnnot)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]