The OOXML XML Schemas use xml:import incorrectly. Stylesheets contain multiple import statements, each giving the same namespace, but different schemaLocation hints. It is ambiguous whether this is legal XML Schema, but it goes against the intention of the XML Schema specification (Noah Mendelsohn), is not supported by several major validation tools (e.g. XSV, Xerces 2.9, at least some versions of Tibco Turbo, and older versions of MSXML), and is not an approach recommended by XML Schema experts (Jeni Tennison, Michael Kay).

Remedy: Build an “adapter schema” which is imported in place of the multiple existing imports, which uses xs:include directives to include all the schemas that reference the same namespace. Affects files: dml-chart.xsd, dml-chartDrawing.xsd, dml-compatibility.xsd, dml-diagramColorTransform.xsd, dml-diagramDataModel.xsd, dml-diagramDefinition.xsd, dml-diagramElementPropertySet.xsd, dml-diagramElementPropertySet.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-diagramStyleDefinition.xsd, dml-lockedCanvas.xsd, dml-picture.xsd, dml-spreadsheetDrawing.xsd, dml-spreadsheetDrawing.xsd, dml-spreadsheetDrawing.xsd, dml-spreadsheetDrawing.xsd, dml-spreadsheetDrawing.xsd, dml-wordprocessingDrawing.xsd, pml-animationInfo.xsd, pml-comments.xsd, pml-embedding.xsd, pml-presentation.xsd, pml-presentation.xsd, pml-presentation.xsd, pml-presentationProperties.xsd, pml-slide.xsd, pml-viewProperties.xsd

Incorrect use of xml:import

te

Proposed Disposition of DIS 29500 Comment GB-0621 (Modified: 2007-11-15) Agreed. Currently some of the W3C XML schema files for part 4 make use of the xsd:import functionality to import additional XSD files that all combine to define one namespace. There are multiple import statements pointing to the different locations for each XSD file. There is some ambiguity as to whether or not this method is appropriate, and many XML parsers do not support it. As a result, many of the schema files from part 4 will not work in these parsers. We will modify the schemas that use this inclusion feature in order to enable this standard’s XML schema files to be handled by Xerces-J and MSV, at least. It is possible to modify the schema files without impacting the document instances validated by the current version of the schemas. The following schema files will be combined to form one schema file, dml-main.xsd: dml-audioVideo.xsd dml-baseStylesheet.xsd dml-baseTypes.xsd dml-documentProperties.xsd dml-graphicalObject.xsd dml-graphicalObjectAnimation.xsd dml-graphicalObjectFormat.xsd dml-gvml.xsd dml-shape3DCamera.xsd dml-shape3DLighting.xsd dml-shape3DScene.xsd dml-shape3DScenePlane.xsd dml-shape3DStyles.xsd dml-shapeEffects.xsd dml-shapeGeometry.xsd dml-shapeLineProperties.xsd dml-shapeMiscellaneous.xsd dml-shapeStyle.xsd dml-styleDefaults.xsd dml-table.xsd dml-tableStyle.xsd dml-text.xsd dml-textBullet.xsd dml-textCharacter.xsd dml-textParagraph.xsd dml-textRun.xsd The following schema files will be combined to form one schema file, dml-diagram.xsd: dml-diagramColorTransform.xsd dml-diagramDataModel.xsd dml-diagramDefinition.xsd dml-diagramElementPropertySet.xsd dml-diagramLayoutVariables.xsd dml-diagramStyleDefinition.xsd dml-diagramTypes.xsd The following schema files will be combined to form one schema file, pml.xsd file: pml-animationInfo.xsd pml-baseTypes.xsd pml-comments.xsd pml-embedding.xsd pml-presentation.xsd pml-presentationProperties.xsd pml-slide.xsd pml-slideSynchronizationData.xsd pml-userDefinedTags.xsd pml-viewProperties.xsd The following schema files will be combined to form one schema file, sml.xsd: sml-autoFilter.xsd sml-baseTypes.xsd sml-calculationChain.xsd sml-comments.xsd sml-customXmlMappings.xsd sml-externalConnection.xsd sml-pivotTable.xsd sml-pivotTableshared.xsd sml-queryTable.xsd sml-sharedStringTable.xsd sml-sharedWorkbookRevisions.xsd sml-sharedWorkbookUserNames.xsd sml-sheet.xsd sml-sheetMetadata.xsd sml-singleCellTable.xsd sml-styles.xsd sml-supplementaryWorkbooks.xsd sml-table.xsd sml-volatibleDependencies.xsd sml-workbook.xsd In addition to this, Part 4, Annex F will be changed, as follows: This clause is informative. This clause provides the location of each part’s root element (as identified in ยง1) within the set of normative XML Schema files provided in Annex A, based on both its part name and its XML Schema: F.1 Grouped by Part Name Part Schema Element Name DrawingML Chart dml-chart.xsd chartSpace DrawingML Chart Drawing dml-chart.xsd userShapes DrawingML Diagram Colors dml- diagram diagramColorTransform .xsd colorsDef DrawingML Diagram Data dml- diagram diagramDefinition .xsd dataModel DrawingML Diagram Layout Definition dml- diagram diagramDefinition .xsd layoutDef DrawingML Diagram Style dml- diagram diagramStyleDefinition .xsd styleDef DrawingML Table Styles dml- tableStyle main .xsd tblStyleLst DrawingML Theme dml- main stylesheet .xsd theme DrawingML Theme Override dml- main stylesheet .xsd themeOverride Part Schema Element Name PresentationML Comment Authors pml -comments .xsd cmAuthorLst PresentationML Comments pml -comments .xsd cmLst PresentationML Handout Master pml -slide .xsd handoutMaster PresentationML Notes Master pml -slide .xsd notesMaster PresentationML Notes Slide pml -slide .xsd notes PresentationML Presentation pml -presentation .xsd presentation Part Schema Element Name PresentationML Presentation Properties pml -presentationProperties .xsd presentationPr PresentationML Slide pml -slide .xsd sld PresentationML Slide Layout pml -slide .xsd sldLayout PresentationML Slide Master pml -slide .xsd sldMaster PresentationML Slide Synchronization Data pml -slideSynchronizationData .xsd sldSyncPr PresentationML User-Defined Tags pml -userDefinedTags .xsd tagLst PresentationML View Properties pml -viewProperties .xsd viewPr Part Schema Element Shared Additional Characteristics shared-additionalCharacteristics.xsd additionalCharacteristics Shared Extended File Properties shared-documentPropertiesExtended.xsd Properties Shared Bibliography shared-bibliography.xsd Sources Shared Custom File Properties shared-documentPropertiesCustom.xsd Properties Shared Custom XML Data Storage Properties shared-customXmlDataProperties.xsd datastoreItem Part Schema Element Name SpreadsheetML Calculation Chain sml -calculationChain .xsd calcChain SpreadsheetML Chartsheet sml -sheet .xsd chartsheet SpreadsheetML Comments sml -comments .xsd comments SpreadsheetML Connections sml -externalConnections .xsd connections SpreadsheetML Custom XML Mappings sml -customXmlMappings .xsd MapInfo SpreadsheetML Dialogsheet sml -sheet .xsd dialogsheet SpreadsheetML Drawing dml-spreadsheetDrawing.xsd wsDr SpreadsheetML External Workbook References sml -supplementaryWorkbooks .xsd externalLink SpreadsheetML Metadata sml -sheetMetadata .xsd metadata SpreadsheetML Pivot Table sml -pivotTable .xsd pivotTableDefiniti on SpreadsheetML Pivot Table Cache Definition sml -pivotTable .xsd pivotCacheDefinition Part Schema Element Name SpreadsheetML Pivot Table Cache Records sml -pivotTable .xsd pivotCacheRecords SpreadsheetML Query Table sml -queryTable .xsd queryTable SpreadsheetML Shared String Table sml -sharedStringTable .xsd sst SpreadsheetML Shared Workbook Revision Headers sml -sharedWorkbookRevisions .xsd header SpreadsheetML Shared Workbook Revision Log sml -sharedWorkbookRevisions .xsd revisions SpreadsheetML Shared Workbook User Data sml - sharedWorkbookUserNames .xsd users SpreadsheetML Single Cell Table Definitions sml -singleCellTable .xsd singleXmlCells SpreadsheetML Styles sml -styles .xsd styleSheet SpreadsheetML Table Definitions sml -table .xsd table SpreadsheetML Volatile Dependencies sml -volatileDependencies .xsd volTypes SpreadsheetML Workbook sml -workbook .xsd workbook SpreadsheetML Worksheet sml -sheet .xsd worksheet Part Schema Element Name WordprocessingML Comments wml.xsd comments WordprocessingML Document Settings wml.xsd settings WordprocessingML Endnotes wml.xsd endnotes WordprocessingML Font Table wml.xsd fonts WordprocessingML Footer wml.xsd ftr WordprocessingML Footnotes wml.xsd footnotes WordprocessingML Glossary Document wml.xsd glossaryDocument WordprocessingML Header wml.xsd hdr WordprocessingML Mail Merge Recipient Data wml.xsd recipientData WordprocessingML Main Document wml.xsd document WordprocessingML Numbering Definitions wml.xsd numbering WordprocessingML Style Definitions wml.xsd styles WordprocessingML Web Settings wml.xsd webSettings F.1 Grouped by Schema Name Schema Part Name Element dml-chart.xsd DrawingML Chart chartSpace DrawingML Chart Drawing userShapes dml- diagramColorTransform diagram .xsd DrawingML Diagram Colors colorsDef dml- diagram diagramDefinition .xsd DrawingML Diagram Data dataModel DrawingML Diagram Layout Definition layoutDef dml- diagram diagramStyleDefinition .xsd DrawingML Diagram Style styleDef dml-spreadsheetDrawing.xsd SpreadsheetML Drawing wsDr dml- stylesheet main .xsd DrawingML Theme theme DrawingML Theme Override themeOverride dml- main tableStyle .xsd DrawingML Table Styles tblStyleLst Schema Part Name Element pml -comments .xsd pml-presentation.xsd pml-presentationProperties.xsd pml-slide.xsd pml-slideSynchronizationData.xsd pml-userDefinedTags.xsd pml-viewProperties.xsd PresentationML Comment Authors cmAuthorLst PresentationML Comments cmLst PresentationML Presentation presentation PresentationML Presentation Properties presentationPr PresentationML Handout Master handoutMaster PresentationML Notes Master notesMaster PresentationML Notes Slide notes PresentationML Slide sld PresentationML Slide Layout sldLayout PresentationML Slide Master sldMaster PresentationML Slide Synchronization Data sldSyncPr PresentationML User-Defined Tags tagLst PresentationML View Properties viewPr Schema Part Name Element shared-additionalCharacteristics.xsd Shared Additional Characteristics additionalChara cteristics shared-bibliography.xsd Shared Bibliography Sources Schema Part Name Element shared-customXmlDataProperties.xsd Shared Custom XML Data Storage Properties datastoreItem shared-documentPropertiesCustom.xsd Shared Custom File Properties Properties shared-documentPropertiesExtended.xsd Shared Application-Defined File Properties Properties Schema Part Name Element sml -calculationChain .xsd sml -comments .xsd sml-customXmlMappings.xsd sml-externalConnections.xsd sml-pivotTable.xsd sml-queryTable.xsd sml-sharedStringTable.xsd sml-sharedWorkbookRevisions.xsd sml-sharedWorkbookUserNames.xsd sml-sheet.xsd sml-sheetMetadata.xsd sml-singleCellTable.xsd sml-styles.xsd sml-supplementaryWorkbooks.xsd sml-table.xsd sml-volatileDependencies.xsd sml-workbook.xsd SpreadsheetML Calculation Chain calcChain SpreadsheetML Comments comments SpreadsheetML Custom XML Mappings MapInfo SpreadsheetML Connections connections SpreadsheetML Pivot Table pivotTableDefiniti on SpreadsheetML Pivot Table Cache Definition pivotCacheDefiniti on SpreadsheetML Pivot Table Cache Records pivotCacheRecord s SpreadsheetML Query Table queryTable SpreadsheetML Shared String Table sst SpreadsheetML Shared Workbook Revision Headers header SpreadsheetML Shared Workbook Revision Log revisions SpreadsheetML Shared Workbook User Data users SpreadsheetML Chartsheet chartsheet SpreadsheetML Dialogsheet dialogsheet SpreadsheetML Worksheet worksheet SpreadsheetML Metadata metadata SpreadsheetML Single Cell Table Definitions singleXmlCells SpreadsheetML Styles styleSheet SpreadsheetML External Workbook References externalLink SpreadsheetML Table Definitions table SpreadsheetML Volatile Dependencies volTypes Schema Part Name Element SpreadsheetML Workbook workbook Schema Part Name Element wml.xsd WordprocessingML Comments comments WordprocessingML Document Settings settings WordprocessingML Endnotes endnotes WordprocessingML Font Table fonts WordprocessingML Footer ftr WordprocessingML Footnotes footnotes WordprocessingML Glossary Document glossaryDocument WordprocessingML Header hdr WordprocessingML Mail Merge Recipient Data recipientData WordprocessingML Main Document document WordprocessingML Numbering Definitions numbering WordprocessingML Style Definitions styles WordprocessingML Web Settings webSettings End of informative text. Similar Comments: ECMA-0013 , JP-0002

Tag and Go

1 Comment

  1. Alan Bell December 3, 2007 @ 11:31 pm

    dupe of ECMA-13

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

  • Argentina (1)
  • Australia (30)
  • Austria (1)
  • Belgium (1)
  • Brazil (64)
  • Bulgaria (3)
  • Canada (79)
  • Chile (217)
  • China (1)
  • Colombia (237)
  • Czech Republic (75)
  • Denmark (168)
  • Ecma (76)
  • Ecuador (1)
  • Finland (15)
  • France (592)
  • Germany (162)
  • Ghana (12)
  • Greece (113)
  • India (82)
  • Iran (58)
  • Ireland (12)
  • Israel (33)
  • Italy (2)
  • Japan (82)
  • Jordan (1)
  • Kenya (81)
  • Malaysia (23)
  • Malta (5)
  • Mexico (7)
  • New Zealand (54)
  • Norway (12)
  • Peru (10)
  • Philippines (7)
  • Poland (4)
  • Portugal (118)
  • Singapore (2)
  • South Africa (17)
  • South Korea (25)
  • Spain (1)
  • Switzerland (19)
  • Thailand (1)
  • Tunisia (3)
  • Turkey (1)
  • UK (635)
  • Uruguay (18)
  • USA (288)
  • Venezuela (73)