Patent ID: 7549118

Claim:
A method comprising: building a package that defines a document, the package comprising a plurality of parts that make up the document and which are described in markup that refers to different representations of the document, each part of the plurality of parts having an associated content type including at least one member of a group comprising a text type and an image type, wherein at least some of the different representations include the same content, the package further containing a plurality of relationship elements, each relationship element being associated with one of the plurality of parts and defining a relationship between the one of the plurality of parts and one or more of another of the plurality of parts, and enabling the relationship to be discoverable independently of the content of the associated part; including, in the package, one or more composition parts including at least one member of a group of parts comprising selector type and sequence type, wherein the selector type composition part selects between a plurality of other parts based on the content types associated with the plurality of other parts, and the sequence type composition part sequences the plurality of other parts based, at least in part, on whether software is available that understands a particular content type of the plurality of other parts; processing the package to identify the one or more composition parts; and performing an action associated with one or more of the composition parts.