Changeset 769 for trunk/src/xmlpatterns/schema/qxsdschemaparser.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/xmlpatterns/schema/qxsdschemaparser.cpp
r651 r769 265 265 } 266 266 267 void XsdSchemaParser::addIncludedSchemas(const NamespaceSet &schemas) 268 { 269 m_includedSchemas += schemas; 270 } 271 267 272 void XsdSchemaParser::setIncludedSchemas(const NamespaceSet &schemas) 268 273 { … … 270 275 } 271 276 277 void XsdSchemaParser::addImportedSchemas(const NamespaceSet &schemas) 278 { 279 m_importedSchemas += schemas; 280 } 281 272 282 void XsdSchemaParser::setImportedSchemas(const NamespaceSet &schemas) 273 283 { 274 284 m_importedSchemas = schemas; 285 } 286 287 void XsdSchemaParser::addRedefinedSchemas(const NamespaceSet &schemas) 288 { 289 m_redefinedSchemas += schemas; 275 290 } 276 291 … … 298 313 m_includedSchemas.insert(uri); 299 314 m_importedSchemas.insert(uri); 315 m_redefinedSchemas.insert(uri); 300 316 } 301 317 … … 595 611 parser.setImportedSchemas(m_importedSchemas); 596 612 parser.setRedefinedSchemas(m_redefinedSchemas); 597 if (!parser.parse(XsdSchemaParser::IncludeParser)) 613 if (!parser.parse(XsdSchemaParser::IncludeParser)) { 598 614 return; 615 } else { 616 // add indirectly loaded schemas to the list of already loaded ones 617 addIncludedSchemas(parser.m_includedSchemas); 618 addImportedSchemas(parser.m_importedSchemas); 619 addRedefinedSchemas(parser.m_redefinedSchemas); 620 } 599 621 } 600 622 } … … 685 707 parser.setImportedSchemas(m_importedSchemas); 686 708 parser.setRedefinedSchemas(m_redefinedSchemas); 687 if (!parser.parse(XsdSchemaParser::ImportParser)) 709 if (!parser.parse(XsdSchemaParser::ImportParser)) { 688 710 return; 711 } else { 712 // add indirectly loaded schemas to the list of already loaded ones 713 addIncludedSchemas(parser.m_includedSchemas); 714 addImportedSchemas(parser.m_importedSchemas); 715 addRedefinedSchemas(parser.m_redefinedSchemas); 716 } 689 717 } 690 718 } … … 703 731 parser.setImportedSchemas(m_importedSchemas); 704 732 parser.setRedefinedSchemas(m_redefinedSchemas); 705 if (!parser.parse(XsdSchemaParser::ImportParser)) 733 if (!parser.parse(XsdSchemaParser::ImportParser)) { 706 734 return; 735 } else { 736 // add indirectly loaded schemas to the list of already loaded ones 737 addIncludedSchemas(parser.m_includedSchemas); 738 addImportedSchemas(parser.m_importedSchemas); 739 addRedefinedSchemas(parser.m_redefinedSchemas); 740 } 707 741 } 708 742 } … … 840 874 parser.setImportedSchemas(m_importedSchemas); 841 875 parser.setRedefinedSchemas(m_redefinedSchemas); 842 if (!parser.parse(XsdSchemaParser::RedefineParser)) 876 if (!parser.parse(XsdSchemaParser::RedefineParser)) { 843 877 return; 878 } else { 879 // add indirectly loaded schemas to the list of already loaded ones 880 addIncludedSchemas(parser.m_includedSchemas); 881 addImportedSchemas(parser.m_importedSchemas); 882 addRedefinedSchemas(parser.m_redefinedSchemas); 883 } 844 884 845 885 delete reply; … … 4833 4873 if (isSchemaTag(XsdSchemaToken::Annotation, token, namespaceToken)) { 4834 4874 const XsdAnnotation::Ptr annotation = parseAnnotation(); 4835 element->addAnnotation(annotation);4875 term->addAnnotation(annotation); 4836 4876 } else if (isSchemaTag(XsdSchemaToken::SimpleType, token, namespaceToken)) { 4837 4877 if (hasRefAttribute) {
Note:
See TracChangeset
for help on using the changeset viewer.