]> granicus.if.org Git - docbook-dsssl/commitdiff
Added doc for the dbhtml img.src.path PI.
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 18:09:36 +0000 (18:09 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 18:09:36 +0000 (18:09 +0000)
xsl/html/pi.xsl

index ae1f4868ce3f260ce16d535086628790f7ee87ee..2f8216557df8ad465e1398548c33efc116bb1d42 100644 (file)
@@ -92,7 +92,7 @@
   </xsl:call-template>
 </xsl:template>
 
-<doc:pi name="dbhtml_dir" xmlns="">
+<doc:pi name="dbhtml_filename" xmlns="">
   <refpurpose>Specifies a filename for a chunk</refpurpose>
   <refdescription>
     <para>When chunking output, use the <tag>dbhtml filename</tag>
   </xsl:call-template>
 </xsl:template>
 
+<doc:pi name="dbhtml_img.src.path" xmlns="">
+  <refpurpose>Specifies a path to the location of an image file</refpurpose>
+  <refdescription>
+    <para>Use the <tag>dbhtml img.src.path</tag> PI before or
+      after an image (<tag>graphic</tag>,
+      <tag>inlinegraphic</tag>, <tag>imagedata</tag>, or
+      <tag>videodata</tag> element) as a sibling to the element,
+      to specify a path to the location of the image; in HTML
+      output, the value specified for the
+      <code>img.src.path</code> attribute is prepended to the
+      filename.</para>
+  </refdescription>
+  <refsynopsisdiv>
+    <synopsis><tag class="xmlpi">dbhtml img.src.path="<replaceable>path</replaceable>"</tag></synopsis>
+  </refsynopsisdiv>
+  <refparameter>
+    <variablelist>
+      <varlistentry><term>img.src.path="<replaceable>path</replaceable>"</term>
+        <listitem>
+          <para>Specifies the pathname to prepend to the name of the image file</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refparameter>
+  <refsee role="params">
+    <para><parameter>img.src.path</parameter></para>
+  </refsee>
+  <refsee>
+    <para><ulink
+        url="http://www.sagehill.net/docbookxsl/GraphicsLocations.html#UsingFileref"
+        >Using fileref</ulink> section in Bob Stayton’s book
+      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
+        XSL: The Complete Guide</ulink></para>
+  </refsee>
+</doc:pi>
 <xsl:template name="pi.dbhtml_img.src.path">
   <xsl:param name="node" select="."/>
-  <!-- * called on parent of graphic, inlinegraphic, imagedata, or videodata -->
   <xsl:call-template name="dbhtml-attribute">
     <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     <xsl:with-param name="attribute" select="'img.src.path'"/>