Author: sandygao
Date: Thu Apr 3 12:26:37 2008
New Revision: 644448
URL: http://svn.apache.org/viewvc?rev=644448&view=rev
Log:
Fixing a bug in complex type traversal.
When the previous type T1 is derived by extension, and the next complex type T2
doesn't have restriction/extension (which should be viewed as restricting
xs:anyType), then T2 is mistakenly marked as extension.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java?rev=644448&r1=644447&r2=644448&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
(original)
+++
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
Thu Apr 3 12:26:37 2008
@@ -241,6 +241,7 @@
// set the base to the anyType
fBaseType = SchemaGrammar.fAnyType;
+ fDerivedBy = XSConstants.DERIVATION_RESTRICTION;
processComplexContent(child, mixedAtt.booleanValue(), false,
schemaDoc, grammar);
}
@@ -279,6 +280,7 @@
// set the base to the anyType
fBaseType = SchemaGrammar.fAnyType;
+ fDerivedBy = XSConstants.DERIVATION_RESTRICTION;
processComplexContent(child, mixedAtt.booleanValue(), false,
schemaDoc, grammar);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]