f:object-properties

f:object-properties — Returns the properties of an object.

Function:
{http://docbook.org/ns/docbook/functions}object-properties#1
{http://docbook.org/ns/docbook/functions}object-properties#2
Defined in:
modules/objects.xsl (2)
Used in:
modules/objects.xsl
Used by:

Synopsis

f:object-properties($uri as xs:string) as map(xs:string, xs:anyAtomicType)
f:object-properties($uri as xs:string,
$image-file as xs:boolean) as map(xs:string, xs:anyAtomicType)

Description

If the extension functions are available, the stylesheets will interrogate images for their properties. The goal is to return, at a minimum, the height and width of the image. This is used to compute viewport and scaling factors. If the image metadata extension is available, then considerably more information my be returned in the map.

For example, the image metadata properties of the Amaryllis photograph in Figure 1, “An amaryllis” are:

Property nameProperty value a
blue-colorant(0.1431, 0.0606, 0.7141)
blue-trc0.0, 0.0000763, 0.0001526, 0.000228…
classDisplay Device
cmm-typeLino
color-spaceRGB
component-1Y component: Quantization table 0, …
component-2Cb component: Quantization table 1,…
component-3Cr component: Quantization table 1,…
compression-typeBaseline
data-precision8 bits
detected-file-type-long-nameJoint Photographic Experts Group
detected-file-type-nameJPEG
detected-mime-typeimage/jpeg
device-manufacturerIEC
device-mfg-descriptionIEC http://www.iec.ch
device-modelsRGB
device-model-descriptionIEC 61966-2.1 Default RGB colour sp…
expected-file-name-extensionjpg
green-colorant(0.3851, 0.7169, 0.0971)
green-trc0.0, 0.0000763, 0.0001526, 0.000228…
image-height336 pixels
image-width500 pixels
luminance(76.0365, 80, 87.1246)
measurement1931 2° Observer, Backing (0, 0, 0)…
media-black-point(0, 0, 0)
media-white-point(0.9505, 1, 1.0891)
number-of-components3
number-of-tables4 Huffman tables
primary-platformMicrosoft Corporation
profile-connection-spaceXYZ
profile-copyrightCopyright (c) 1998 Hewlett-Packard …
profile-date/time1998-02-09T06:49:00
profile-descriptionsRGB IEC61966-2.1
profile-size3144
red-colorant(0.4361, 0.2225, 0.0139)
red-trc0.0, 0.0000763, 0.0001526, 0.000228…
resolution-unitsinch
signatureacsp
tag-count17
technologyCRT
thumbnail-height-pixels0
thumbnail-width-pixels0
version2.1.0
viewing-conditionsview (0x76696577): 36 bytes
viewing-conditions-descriptionReference Viewing Condition in IEC6…
x-resolution72 dots
xyz-values0.964 1 0.825
y-resolution72 dots
aSome values have been truncated to prevent the table from becoming unwieldy. These values an be identified by a trailing ellipsis (…).

Several rich, red amaryllis blossoms on a black background.

A photograph of an amaryllis
Figure 1An amaryllis