Script: images-element
The purpose of this element is to administrate images.
Keep them in one or a few catalogs, and access them easily by id, with an image PI, see
Image
The images-elements must be contained in the definitions-element.
<images location=""/>
location(mandatory) |
An URI which is absolute or relative to the script anchor.
This is the location of a file with image descriptions, as below.
|
Examples:
<images location="myimages.xml"/>
A sample images file:
<?xml version="1.0" encoding="utf-8"?>
<images catalog="http://www.ia.hiof.no/~borres/self">
<image id="bs-orig1">
<location>bs1.png</location>
<subtext>Selfportrait- 1</subtext>
</image>
<image id="bs-orig2">
<location>bs2.png</location>
</image>
</images>
The catalog-attribute is optional. If not included the catalog containg the file
is used as anchor. Note also that image locations may be absolute.
The link is any URI, for instance the location of another image that appears on mouseclick.
You may also specify width, height, and alt elements in an image.
See
Images
for a full description.
Images files are validated according to this schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="image">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="location"/>
<xs:element name="link" minOccurs="0" maxOccurs="1"/>
<xs:element name="width" minOccurs="0" maxOccurs="1"/>
<xs:element name="height" minOccurs="0" maxOccurs="1"/>
<xs:element name="subtext" minOccurs="0" maxOccurs="1"/>
<xs:element name="alt" minOccurs="0" maxOccurs="1"/>
</xs:choice>
<xs:attribute name="id" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="images">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="image" minOccurs="1" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="catalog" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:schema>