equal
deleted
inserted
replaced
467 return false; |
467 return false; |
468 } |
468 } |
469 |
469 |
470 // 3.2.3.2 |
470 // 3.2.3.2 |
471 if (declaration->valueConstraint() && declaration->valueConstraint()->variety() == XsdElement::ValueConstraint::Fixed) { |
471 if (declaration->valueConstraint() && declaration->valueConstraint()->variety() == XsdElement::ValueConstraint::Fixed) { |
472 error(QtXmlPatterns::tr("Fixed value constrained not allowed if element is nillable.")); |
472 error(QtXmlPatterns::tr("Fixed value constraint not allowed if element is nillable.")); |
473 return false; |
473 return false; |
474 } |
474 } |
475 } |
475 } |
476 |
476 |
477 isNilled = nil->as<Boolean>()->value(); |
477 isNilled = nil->as<Boolean>()->value(); |
697 |
697 |
698 // additional check |
698 // additional check |
699 if (complexType->contentType()->variety() == XsdComplexType::ContentType::Mixed) { |
699 if (complexType->contentType()->variety() == XsdComplexType::ContentType::Mixed) { |
700 if (declaration->valueConstraint() && declaration->valueConstraint()->variety() == XsdElement::ValueConstraint::Fixed) { |
700 if (declaration->valueConstraint() && declaration->valueConstraint()->variety() == XsdElement::ValueConstraint::Fixed) { |
701 if (hasChildElement()) { |
701 if (hasChildElement()) { |
702 error(QtXmlPatterns::tr("Element %1 can not contain other elements, as it has a fixed content.").arg(formatKeyword(declaration->displayName(m_namePool)))); |
702 error(QtXmlPatterns::tr("Element %1 cannot contain other elements, as it has a fixed content.").arg(formatKeyword(declaration->displayName(m_namePool)))); |
703 return false; |
703 return false; |
704 } |
704 } |
705 |
705 |
706 const XsdFacet::Hash facets = XsdTypeChecker::mergedFacetsForType(complexType->contentType()->simpleType(), m_context); |
706 const XsdFacet::Hash facets = XsdTypeChecker::mergedFacetsForType(complexType->contentType()->simpleType(), m_context); |
707 QString actualValue; |
707 QString actualValue; |