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

Defined in:
Used in:


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


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.