]> granicus.if.org Git - docbook-dsssl/commitdiff
Added a verbatim PI that I missed in last commit.
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 10:21:57 +0000 (10:21 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 10:21:57 +0000 (10:21 +0000)
xsl/html/pi.xsl
xsl/html/verbatim.xsl

index 02a8df72d32791ad2a40ec9b6a7c5c42433b14de..28560eda22d2f52025df83d9a117a25ddacde009 100644 (file)
   </xsl:call-template>
 </xsl:template>
 
+<doc:pi name="dbhtml_linenumbering.width" xmlns="">
+<refpurpose>Specifies the width set aside for line numbers in
+  output of verbatim environments</refpurpose>
+<refdescription>
+  <para>Use the <tag>dbhtml linenumbering.width</tag> PI as a child
+    of a “verbatim” element – <tag>programlisting</tag>,
+    <tag>screen</tag>, <tag>synopsis</tag> — to specify
+    the width set aside for line numbers.</para>
+</refdescription>
+  <refsynopsisdiv>
+    <synopsis><tag class="xmlpi">dbhtml linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
+  </refsynopsisdiv>
+<refparameter>
+  <variablelist>
+    <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
+      <listitem>
+        <para>FIXME: Specifies the width (in what units?)</para>
+      </listitem>
+    </varlistentry>
+  </variablelist>
+</refparameter>
+  <refsee role="params">
+    <para><parameter>linenumbering.width</parameter></para>
+  </refsee>
+</doc:pi>
+<xsl:template name="pi.dbhtml_linenumbering.width">
+  <xsl:param name="node" select="."/>
+  <xsl:call-template name="dbhtml-attribute">
+    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
+    <xsl:with-param name="attribute" select="'linenumbering.width'"/>
+  </xsl:call-template>
+</xsl:template>
+
 <doc:pi name="dbhtml_list-width" xmlns="">
   <refpurpose>Specifies the width of a variablelist or simplelist</refpurpose>
   <refdescription>
index d41ae65c0298bde3cb2f6daec525022e011ac29d..ea5eba285c82d60f01a882d9e9ac5db5c00f34d3 100644 (file)
   </xsl:variable>
 
   <xsl:variable name="pi.linenumbering.width">
-    <xsl:call-template name="dbhtml-attribute">
-      <xsl:with-param name="pis"
-                      select="$pi.context/processing-instruction('dbhtml')"/>
-      <xsl:with-param name="attribute" select="'linenumbering.width'"/>
+    <xsl:call-template name="pi.dbhtml_linenumbering.width">
+      <xsl:with-param name="node" select="$pi.context"/>
     </xsl:call-template>
   </xsl:variable>