to HTML img src attributes.
<xsl:otherwise>
<xsl:element name="{$tag}">
<xsl:attribute name="src">
+ <xsl:choose>
+ <xsl:when test="$img.src.path != '' and
+ $tag = 'img' and
+ not(starts-with($filename, '/')) and
+ not(contains($filename, '://'))">
+ <xsl:value-of select="$img.src.path"/>
+ </xsl:when>
+ </xsl:choose>
<xsl:value-of select="$filename"/>
</xsl:attribute>
<!ENTITY htmlhelp.title SYSTEM "../params/htmlhelp.title.xml">
<!ENTITY htmlhelp.use.hhk SYSTEM "../params/htmlhelp.use.hhk.xml">
<!ENTITY htmlhelp.window.geometry SYSTEM "../params/htmlhelp.window.geometry.xml">
+<!ENTITY img.src.path SYSTEM "../params/img.src.path.xml">
<!ENTITY index.on.role SYSTEM "../params/index.on.role.xml">
<!ENTITY index.on.type SYSTEM "../params/index.on.type.xml">
<!ENTITY inherit.keywords SYSTEM "../params/inherit.keywords.xml">
</reference>
<reference><title>Graphics</title>
+&img.src.path;
&graphic.default.extension;
&default.image.width;
&nominal.image.width;
<src:fragref linkend="htmlhelp.title.frag"/>
<src:fragref linkend="htmlhelp.use.hhk.frag"/>
<src:fragref linkend="htmlhelp.window.geometry.frag"/>
+<src:fragref linkend="img.src.path.frag"/>
<src:fragref linkend="index.on.role.frag"/>
<src:fragref linkend="index.on.type.frag"/>
<src:fragref linkend="ignore.image.scaling.frag"/>
--- /dev/null
+<refentry id="img.src.path">
+<refmeta>
+<refentrytitle>img.src.path</refentrytitle>
+<refmiscinfo role="type">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>img.src.path</refname>
+<refpurpose>Path to HTML image files</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='img.src.path.frag'><xsl:param name="img.src.path"></xsl:param></src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>Add a path prefix to each HTML
+<sgmltag class="element">img</sgmltag> element's
+<sgmltag class="attribute">src</sgmltag> attribute.
+This path could relative to the directory where the HTML
+files are created, or it could be an absolute URI.
+The default value is empty.
+Be sure to include a trailing slash if needed.
+</para>
+<para>This prefix is not applied to any filerefs that start
+with "/" or contain "//:".
+</para>
+
+</refsect1>
+</refentry>