Name

f:resolve-object-uri — Returns the (relative) path to a mediaobject.

Function:
{http://docbook.org/ns/docbook/functions}resolve-object-uri#1
Defined in:
modules/objects.xsl
Used in:
modules/objects.xsl

Synopsis

f:resolve-object-uri($uri as xs:string) as xs:string

Description

Working out the correct URI for a media objects (images, videos, audio) can be quite complicated. For the author, it may be useful or necessary that the URI in the fileref attribute correctly point to the object at authoring time. But that URI may not be correct for the generated HTML. In particular, authors may put source files in different directories, media objects may be stored in a common location for several documents even though those documents are published in different locations, etc.

The f:resolve-object-uri() takes the URI of the media object as it appears in the source and attempts to resolve that into an appropriate URI for the generated HTML.