14.2.3 Diagram Colors Part

14.2.3 Diagram Colors Part

Content Type:

application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml

Root Namespace:

http://purl.oclc.org/ooxml/drawingml/diagram

Source Relationship:

http://purl.oclc.org/ooxml/officeDocument/relationships/diagramColors

An instance of this part type contains color information for a diagram.

A package shall contain exactly one Diagram Colors part per diagram. Each Diagram Colors part shall be the target of an explicit relationship in a WordprocessingML Main Document (11.3.10), SpreadsheetML Drawings (12.3.8), or PresentationML Slide (13.3.8) part.

[Example: The following SpreadsheetML Drawings part-relationship item contains a relationship to two Diagram Colors parts, which are stored in the ZIP items ../graphics/colorsN.xml.

<Relationships xmlns="…">
  <Relationship Id="rId4"
    Type="http://…/diagramColors" Target="../graphics/colors1.xml"/>
  <Relationship Id="rId8"
    Type="http://…/diagramColors" Target="../graphics/colors2.xml"/>
</Relationships>

end example]

The root element for a part of this content type shall be colorsDef.

[Example: colors1.xml contains the following:

<cs:colorsDef xmlns:cs="…" uniqueId="…" minVer="12.0">
  <cs:title lang="" val="Primary Accent 2"/>
  <cs:desc lang="" val="Primary Accent 2"/>
  <cs:catLst>
    <cs:cat type="accent1" pri="11200"/>
  </cs:catLst>
  <cs:styleLbl >
  </cs:styleLbl>
  <cs:styleLbl >
  </cs:styleLbl>
</cs:colorsDef>

end example]

A Diagram Colors part shall be located within the package containing the relationships part (expressed syntactically, the TargetMode attribute of the Relationship element shall be Internal).

A Diagram Colors part shall not have implicit or explicit relationships to any other part defined by ISO/IEC 29500.

Last updated on