3.3 Images
In this example, the database template contains a definition of Form ([MS-AXL] section 2.1.2) that contains a Shared Image ([MS-AXL] section 2.1.6) of type Image (section 2.1.4.6).
The following figure shows the Image in the Form:
Figure 7 Shared Resource Image in Form
The following Image exists with the file name FormLogo-2-name.jpg:
Figure 8 Image FormLogo-2-name.jpg
A Resource part (section 2.1.4.21) named FormLogo-2-name.txt contains the name of the shared resource Image. The contents of FormLogo-2-name.txt are as follows:
-
Form Logo
The Template Metadata (section 2.2) Part (section 2.1.2) contains an entry in Relationship (section 2.1.4.19) Part called template.xml.rels, where FormLogo-2-name.jpg is the target. The XML for the Relationship is as follows:
-
<Relationship Id="FormLogo-2" Type="http://schemas.microsoft.com/office/2007/relationships/shared-image" Target="database/resources/FormLogo-2.jpg" />
The Resource Part contains an entry in Relationship Part called FormLogo-2.jpg.rels, where FormLogo-2-name.txt is the target. The XML for the Relationship is as follows:
-
<Relationship Id="name" Type="http://schemas.microsoft.com/office/2007/relationships/resource-name" Target="FormLogo-2-name.txt" />