$mediaobject-input-base-uri

$mediaobject-input-base-uri — Base URI of images and other media in the XML sources.

Parameter:
{}mediaobject-input-base-uri
Defined in:
param.xsl
Used in:
param.xsl, modules/variable.xsl
Used by:
$v:mediaobject-input-base-uri

Synopsis

  |<xsl:param
  |            name="mediaobject-input-base-uri"
  |            as="xs:string">
  |   <xsl:sequence use-when="function-available('ext:cwd')"
  |                  select="resolve-uri(ext:cwd(), static-base-uri())"/>
  |   <xsl:sequence use-when="not(function-available('ext:cwd'))" select="''"/>
  |</xsl:param>

Description

Computing the correct URI for media objects (images, videos, audio files, etc.) is complicated. See Section 4.4.1, Mediaobject URIs. The $mediaobject-input-base-uri is used to compute the absolute base URI of input media objects.

If the “cwd” extension function is available, then the default value of this parameter is the current working directory. Otherwise, the default value is the empty string.

The current working directory is only likely to be a useful value for this parameter if you are running the processor in the same directory where your XML source files are stored. See $v:mediaobject-input-base-uri.