From a980038ec34a7f552d9dffd171ffcc4799e4f6d0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 11 Apr 2009 17:11:48 +0200 Subject: Use the max cardinality value of the actual compositor --- xsde/cxx/parser/element-validation-source.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xsde/cxx') diff --git a/xsde/cxx/parser/element-validation-source.cxx b/xsde/cxx/parser/element-validation-source.cxx index a7a433a..8a23e28 100644 --- a/xsde/cxx/parser/element-validation-source.cxx +++ b/xsde/cxx/parser/element-validation-source.cxx @@ -785,7 +785,7 @@ namespace CXX // it contains optional particle) and maxOccurs > 1. We need // to call the next callback. // - if (ps->min () != 0 && max != 1 && + if (ps->min () != 0 && ps->max () != 1 && ps->context ().get ("p:effective-min") == 0) { UnsignedLong state ( @@ -1098,7 +1098,7 @@ namespace CXX // it contains optional particle) and maxOccurs > 1. We need // to call the next callback. // - if (ps->min () != 0 && max != 1 && + if (ps->min () != 0 && ps->max () != 1 && ps->context ().get ("p:effective-min") == 0) { UnsignedLong state ( @@ -1677,7 +1677,7 @@ namespace CXX // it contains optional particle) and maxOccurs > 1. We need // to call the next callback. // - if (ps->min () != 0 && max != 1 && + if (ps->min () != 0 && ps->max () != 1 && ps->context ().get ("p:effective-min") == 0) { UnsignedLong state ( -- cgit v1.1