13.2 Package Structure

13.2 Package Structure

A PresentationML package shall contain a package-relationship item and a content-type item. The package- relationship item shall have implicit relationships with targets of the following type:

  • One Presentation part (13.3.6).

The package-relationship item

have

is permitted to

implicit relationships with targets of the following type:

  • Digital Signature Origin (15.2.7)
  • File Property parts (15.2.12) (Application-Defined File Properties,
  • Properties), as appropriate.
  • Thumbnail (15.2.16).

File

Core File Properties, and Custom

The required and optional relationships between parts are defined in 13.3 and its subordinate clauses.

[Example: The following package represents the minimal conformant PresentationML package as defined by ISO/IEC 29500:

First, the content type for relationship parts and the Main Presentation part (the only required part) must be defined (physically located at /[Content_Types].xml in the package):

<Types xmlns="…">
  <Default Extension="rels"
    ContentType="application/vnd.openxmlformats-
      package.relationships+xml"/>
  <Override PartName="/presentation.xml"
    ContentType="application/vnd.openxmlformats-
      officedocument.presentationml.presentation.main+xml"/>
</Types>

Next, the single required relationship (the package-level relationship to the Main Presentation part) must be defined (physically located at /_rels/.rels in the package):

<Relationships xmlns="…">
  <Relationship Id="rId1"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument"
    Target="presentation.xml"/>
</Relationships>

Finally, the minimum content for the Main Presentation part must be defined (physically located at /presentation.xml in the package):

<p:presentation xmlns:p="…">
  <p:notesSz cx="913607" cy="913607"/>
</p:presentation>

end example]

[Example: Consider a simple PresentationML document containing two slides, which both use an image as a template. Here’s an example of the hierarchical folder structure that might be used for the ZIP items in the package for that document. As shown, a number of parts have their own relationship items:

/_rels/.rels
/[Content_Types].xml
/docProps/app.xml
part
/docProps/core.xml
/docProps/custom.xml
/docProps/thumbnail.wmf
/ppt/presentation.xml
/ppt/_rels/presentation.xml.rels
/ppt/presProps.xml
/ppt/tableStyles.xml
/ppt/viewProps.xml
/ppt/handoutMasters/handoutMaster1.xml Handout Master part
/ppt/handoutMasters/_rels/handoutMaster1.xml.rels
  Part-relationship item
/ppt/media/image1.jpeg Slide template image
/ppt/notesMasters/notesMaster1.xml Notes Master part
/ppt/notesMasters/_rels/notesMaster1.xml.rels
  Part-relationship item
/ppt/notesSlides/notesSlide1.xml Notes Slide parts
/ppt/notesSlides/notesSlide2.xml
/ppt/notesSlides/_rels/notesSlide1.xml.rels
  Part-relationship items
/ppt/notesSlides/_rels/notesSlide2.xml.rels
/ppt/slideLayouts/slideLayout1.xml Slide Layout parts 1–6
/ppt/slideLayouts/slideLayout2.xml
/ppt/slideLayouts/slideLayout3.xml
/ppt/slideLayouts/slideLayout4.xml
/ppt/slideLayouts/slideLayout5.xml
/ppt/slideLayouts/slideLayout6.xml
/ppt/slideLayouts/_rels/slideLayout1.xml.rels
  Part-relationship items
/ppt/slideLayouts/_rels/slideLayout2.xml.rels
/ppt/slideLayouts/_rels/slideLayout3.xml.rels
/ppt/slideLayouts/_rels/slideLayout4.xml.rels
/ppt/slideLayouts/_rels/slideLayout5.xml.rels
/ppt/slideLayouts/_rels/slideLayout6.xml.rels
/ppt/slideMasters/slideMaster1.xml Slide Master part
/ppt/slideMasters/_rels/slideMaster1.xml.rels
  Part-relationship item
/ppt/slides/slide1.xml Slide parts
/ppt/slides/slide2.xml
/ppt/slides/_rels/slide1.xml.rels Part-relationship items
/ppt/slides/_rels/slide2.xml.rels
/ppt/theme/theme1.xml Theme parts
/ppt/theme/theme2.xml
/ppt/theme/theme3.xml
/ppt/theme/themeOverride1.xml
/ppt/theme/themeOverride2.xml
/ppt/theme/themeOverride3.xml
/ppt/theme/themeOverride4.xml
/ppt/theme/themeOverride5.xml
/ppt/theme/themeOverride6.xml
/ppt/theme/themeOverride7.xml
/ppt/theme/themeOverride8.xml
/ppt/theme/themeOverride9.xml
/ppt/theme/themeOverride10.xml

The package-relationship item contains the following:

<Relationships xmlns="…">
  <Relationship Id="rId1"
    Type="http://…/officeDocument" Target="ppt/presentation.xml"/>
  <Relationship Id="rId3"
    Type="http://…/core-properties" Target="docProps/core.xml"/>
  <Relationship Id="rId2"
    Type="http://…/thumbnail" Target="docProps/thumbnail.wmf"/>
  <Relationship Id="rId4"
    Type="http://…/extended-properties" Target="docProps/app.xml"/>
</Relationships>

end example]

Last updated on