Author: mukulg
Date: Wed Mar 31 04:32:44 2010
New Revision: 929378
URL: http://svn.apache.org/viewvc?rev=929378&view=rev
Log:
fixed for JIRA issue, XERCESJ-1434. patch thanks to, Kun Xu.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java?rev=929378&r1=929377&r2=929378&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
Wed Mar 31 04:32:44 2010
@@ -1702,6 +1702,14 @@ public class XSSimpleTypeDecl implements
fFractionDigits = fBase.fFractionDigits;
fractionDigitsAnnotation = fBase.fractionDigitsAnnotation;
}
+
+ // inherit assertion. added for XML Schema 1.1
+ if (((fBase.fFacetsDefined & FACET_ASSERT) != 0)
+ && !((fFacetsDefined & FACET_ASSERT) != 0)) {
+ fFacetsDefined |= FACET_ASSERT;
+ fAssertion = fBase.fAssertion;
+ }
+
//inherit tokeytype
if ((fPatternType == SPECIAL_PATTERN_NONE ) && (fBase.fPatternType !=
SPECIAL_PATTERN_NONE)) {
fPatternType = fBase.fPatternType ;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]