]> granicus.if.org Git - docbook-dsssl/commitdiff
Completing adding all doc for HTML PIs. Added "see also" sections
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 5 Jul 2007 15:13:03 +0000 (15:13 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 5 Jul 2007 15:13:03 +0000 (15:13 +0000)
with links to related global params, plus links to DocBook XSL: TCG
Also tried out adding some additional doc to param doc for the
textinsert.extension param that back-references the PI
documentation, plus added some TCG links there too.

xsl/html/pi.xsl
xsl/params/textinsert.extension.xml

index 2f8216557df8ad465e1398548c33efc116bb1d42..edd77487212614c5c9e4191e82a96e8223620a18 100644 (file)
   <refsee role="params">
     <para><parameter>base.dir</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Chunking.html#dbhtmlDirPI"
-        >dbhtml dir processing instruction</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/" >DocBook XSL:
-        The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Chunking.html#dbhtmlDirPI"
+        >dbhtml dir processing instruction</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_dir">
   <refsee role="params">
     <para><parameter>use.id.as.filename</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Chunking.html#DbhtmlFilenames"
-        >dbhtml filenames</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
-        XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Chunking.html#DbhtmlFilenames"
+        >dbhtml filenames</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_filename">
   <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 role="tcg">
+    <para><ulink role="tcg"
+        url="GraphicsLocations.html#UsingFileref"
+        >Using fileref</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_img.src.path">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/BGcolor.html"
-        >Background color</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
-        XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="BGcolor.html"
+        >Background color</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_background-color">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/BGtableColor.html#CellBGColor"
-        >Cell background color</ulink> section in Bob Stayton’s
-      book <ulink url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="BGtableColor.html#CellBGColor"
+        >Cell background color</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_bgcolor">
   <refsee role="params">
     <para><parameter>html.cellpadding</parameter></para>
   </refsee>
-  <refsee>
-    <itemizedlist>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/CellSpacing.html"
-            >Cell spacing and cell padding</ulink> section in Bob
-          Stayton’s book <ulink
-            url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/QandAformat.html"
-            >Q and A formatting</ulink> section in Bob Stayton’s
-          book <ulink url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-    </itemizedlist>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="CellSpacing.html"
+        >Cell spacing and cell padding</ulink>,
+      <ulink role="tcg" url="QandAformat.html"
+        >Q and A formatting</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_cellpadding">
   <refsee role="params">
     <para><parameter>html.cellspacing</parameter></para>
   </refsee>
-  <refsee>
-    <itemizedlist>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/CellSpacing.html"
-            >Cell spacing and cell padding</ulink> section in Bob
-          Stayton’s book <ulink
-            url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/QandAformat.html"
-            >Q and A formatting</ulink> section in Bob Stayton’s
-          book <ulink url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-    </itemizedlist>
-  </refsee>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="CellSpacing.html"
+        >Cell spacing and cell padding</ulink>,
+      <ulink role="tcg"
+        url="QandAformat.html"
+        >Q and A formatting</ulink></para>
+    </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_cellspacing">
   <xsl:param name="node" select="."/>
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/CSSTableCells.html"
-        >Table styles in HTML output</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="CSSTableCells.html"
+        >Table styles in HTML output</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_class">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/QandAformat.html"
-        >Q and A formatting</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="QandAformat.html"
+        >Q and A formatting</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_label-width">
   <refsee role="params">
     <para><parameter>linenumbering.everyNth</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering"
-        >Line numbering</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
-        XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="AnnotateListing.html#LineNumbering"
+        >Line numbering</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_linenumbering.everyNth">
   <refsee role="params">
     <para><parameter>linenumbering.separator</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering"
-        >Line numbering</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
-        XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="AnnotateListing.html#LineNumbering"
+        >Line numbering</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_linenumbering.separator">
   <refsee role="params">
     <para><parameter>linenumbering.width</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering"
-        >Line numbering</ulink> section in Bob Stayton’s book
-      <ulink url="http://www.sagehill.net/docbookxsl/" >DocBook
-        XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="AnnotateListing.html#LineNumbering"
+        >Line numbering</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_linenumbering.width">
       </listitem>
     </itemizedlist>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-        >Variable list formatting in HTML</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_list-presentation">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-        >Variable list formatting in HTML</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_list-width">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/RowHeight.html"
-        >Row height</ulink> section in Bob Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="RowHeight.html"
+        >Row height</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_row-height">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <itemizedlist>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-            >Variable list formatting in HTML</ulink> section in Bob
-          Stayton’s book <ulink
-            url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/TableSummary.html"
-            >Table summary text</ulink> section in Bob
-          Stayton’s book <ulink
-            url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-    </itemizedlist>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink>,
+      <ulink role="tcg" url="TableSummary.html"
+        >Table summary text</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_table-summary">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Tables.html#TableWidth"
-        >Table width</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/" >DocBook XSL:
-        The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Tables.html#TableWidth"
+        >Table width</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_table-width">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-        >Variable list formatting in HTML</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_term-presentation">
   <refsee role="params">
     <para><parameter>variablelist.term.separator</parameter></para>
   </refsee>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-        >Variable list formatting in HTML</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_term-separator">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <para><ulink
-        url="http://www.sagehill.net/docbookxsl/Variablelists.html#VarListFormatting"
-        >Variable list formatting in HTML</ulink> section in Bob
-      Stayton’s book <ulink
-        url="http://www.sagehill.net/docbookxsl/"
-        >DocBook XSL: The Complete Guide</ulink></para>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="Variablelists.html#VarListFormatting"
+        >Variable list formatting in HTML</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_term-width">
       </varlistentry>
     </variablelist>
   </refparameter>
-  <refsee>
-    <itemizedlist>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/QandAtoc.html"
-            >Q and A list of questions</ulink> section in Bob
-          Stayton’s book <ulink
-            url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-      <listitem>
-        <para><ulink
-            url="http://www.sagehill.net/docbookxsl/QandAformat.html"
-            >Q and A formatting</ulink> section in Bob Stayton’s
-          book <ulink url="http://www.sagehill.net/docbookxsl/"
-            >DocBook XSL: The Complete Guide</ulink></para>
-      </listitem>
-    </itemizedlist>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="QandAtoc.html"
+        >Q and A list of questions</ulink>,
+      <ulink role="tcg"
+        url="QandAformat.html"
+        >Q and A formatting</ulink></para>
   </refsee>
 </doc:pi>
 <xsl:template name="pi.dbhtml_toc">
   </dl>
 </xsl:template>
 
+<doc:pi name="dbhtml-include_href" xmlns="">
+  <refpurpose>Copies an external well-formed HTML/XML file into current doc</refpurpose>
+  <refdescription>
+    <para>Use the <tag>dbhtml-include href</tag> PI anywhere in a
+      document to cause the contents of the file referenced by the
+      <code>href</code> pseudo-attribute to be copied/inserted “as
+      is” into your HTML output at the point in document order
+      where the PI occurs in the source.</para>
+    <note>
+      <para>The referenced file may contain plain text (as long as
+        it is “wrapped” in an <tag>html</tag> element — see the
+        note below) or markup in any arbitrary vocabulary,
+        including HTML — but it must conform to XML
+        well-formedness constraints (because the feature in XSLT
+        1.0 for opening external files, the
+        <function>document()</function> function, can only handle
+        files that meet XML well-formedness constraints).</para>
+      <para>Among other things, XML well-formedness constraints
+        require a document to have <emphasis>a single root
+          element</emphasis>. So if the content you want to
+        include is plain text or is markup that does
+        <emphasis>not</emphasis> have a single root element,
+        <emphasis role="strong">wrap the content in an
+          <tag>html</tag> element</emphasis>. The stylesheets will
+        strip out that surrounding <tag>html</tag> “wrapper” when
+        they find it, leaving just the content you want to
+        insert.</para>
+    </note>
+  </refdescription>
+  <refsynopsisdiv>
+    <synopsis><tag class="xmlpi">dbhtml href="<replaceable>URI</replaceable>"</tag></synopsis>
+  </refsynopsisdiv>
+  <refparameter>
+    <variablelist>
+      <varlistentry><term>href="<replaceable>URI</replaceable>"</term>
+        <listitem>
+          <para>Specifies the URI for the file to include; the URI
+            can be, for example, a remote <literal>http:</literal>
+            URI, or a local filesystem <literal>file:</literal>
+            URI</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refparameter>
+  <refsee role="params">
+    <para><parameter>textinsert.extension</parameter></para>
+  </refsee>
+  <refsee role="tcg">
+    <para><ulink role="tcg"
+        url="InsertExtHtml.html"
+        >Inserting external HTML code</ulink>,
+      <ulink
+        url="ExternalCode.html"
+        >External code files</ulink></para>
+  </refsee>
+</doc:pi>
+<xsl:template name="pi.dbhtml-include">
+  <xsl:param name="href">
+    <xsl:call-template name="dbhtml-attribute">
+      <xsl:with-param name="pis" select="."/>
+      <xsl:with-param name="attribute">href</xsl:with-param>
+    </xsl:call-template>
+  </xsl:param>
+
+  <xsl:choose>
+    <xsl:when test="$href != ''">
+      <xsl:variable name="content" select="document($href,/)"/>
+      <xsl:choose>
+        <xsl:when test="$content/*">
+          <xsl:choose>
+            <xsl:when test="$content/*[1][self::html]">
+              <!-- include just the children of html wrapper -->
+              <xsl:copy-of select="$content/*[1]/node()"/>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:copy-of select="$content"/>
+            </xsl:otherwise>
+          </xsl:choose>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:message>
+            <xsl:text>ERROR: dbhtml-include processing instruction </xsl:text>
+            <xsl:text>href has no content.</xsl:text>
+          </xsl:message>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:message>
+        <xsl:text>ERROR: dbhtml-include processing instruction has </xsl:text>
+        <xsl:text>missing or empty href value.</xsl:text>
+      </xsl:message>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <!-- ==================================================================== -->
 
 <xsl:template name="dbhtml-attribute">
 
 <!-- ==================================================================== -->
 
-<!-- Copy well-formed external HTML content to the output. -->
-<!-- An optional <html> wrapper will be removed before content is copied 
-     to support multiple elements in output without a wrapper.
-     No other processing is done to the content. -->
 <xsl:template match="processing-instruction('dbhtml-include')">
-  <xsl:param name="href">
-    <xsl:call-template name="dbhtml-attribute">
-      <xsl:with-param name="pis" select="."/>
-      <xsl:with-param name="attribute">href</xsl:with-param>
-    </xsl:call-template>
-  </xsl:param>
-
-  <xsl:choose>
-    <xsl:when test="$href != ''">
-      <xsl:variable name="content" select="document($href,/)"/>
-      <xsl:choose>
-        <xsl:when test="$content/*">
-          <xsl:choose>
-            <xsl:when test="$content/*[1][self::html]">
-              <!-- include just the children of html wrapper -->
-              <xsl:copy-of select="$content/*[1]/node()"/>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:copy-of select="$content"/>
-            </xsl:otherwise>
-          </xsl:choose>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:message>
-            <xsl:text>ERROR: dbhtml-include processing instruction </xsl:text>
-            <xsl:text>href has no content.</xsl:text>
-          </xsl:message>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:message>
-        <xsl:text>ERROR: dbhtml-include processing instruction has </xsl:text>
-        <xsl:text>missing or empty href value.</xsl:text>
-      </xsl:message>
-    </xsl:otherwise>
-  </xsl:choose>
+  <xsl:call-template name="pi.dbhtml-include"/>
 </xsl:template>
 
 <!-- ==================================================================== -->
index 4a9d4afe325d3f28e6fd336fb32eaaa74892294e..4d637115ecc880b14f5ccfb8c7e5607f783b9a5d 100644 (file)
@@ -1,27 +1,58 @@
 <refentry xmlns="http://docbook.org/ns/docbook"
-          xmlns:xlink="http://www.w3.org/1999/xlink"
-          xmlns:xi="http://www.w3.org/2001/XInclude"
-          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
-          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-          version="5.0" xml:id="textinsert.extension">
-<refmeta>
-<refentrytitle>textinsert.extension</refentrytitle>
-<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
-</refmeta>
-<refnamediv>
-<refname>textinsert.extension</refname>
-<refpurpose>Enable the textinsert extension element</refpurpose>
-</refnamediv>
-
-<refsynopsisdiv>
-<src:fragment xml:id="textinsert.extension.frag"><xsl:param name="textinsert.extension" select="'1'"/></src:fragment>
-</refsynopsisdiv>
-
-<refsection><info><title>Description</title></info>
-
-<para>The textinsert extension element inserts the contents of a
-a file into the result tree (as text).
-</para>
-
-</refsection>
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  version="5.0" xml:id="textinsert.extension">
+  <refmeta>
+    <refentrytitle>textinsert.extension</refentrytitle>
+    <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
+  </refmeta>
+  <refnamediv>
+    <refname>textinsert.extension</refname>
+    <refpurpose>Enable the textinsert extension element</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <src:fragment xml:id="textinsert.extension.frag"><xsl:param name="textinsert.extension" select="'1'"/></src:fragment>
+  </refsynopsisdiv>
+  <refsection><info><title>Description</title></info>
+    <para>The textinsert extension element inserts the contents of
+      a file into the result tree (as text).</para>
+    <note>
+      <para>To use the textinsert extension element, you must use
+        either Saxon or Xalan as your XSLT processor (it doesn’t
+        work with xsltproc), along with either the <link
+          role="tcg" xlink:href="InstallingAProcessor.html#SaxonExtensions"
+          >DocBook Saxon Extensions</link> or <link
+          role="tcg" xlink:href="InstallingAProcessor.html#XalanExtensions"
+          >DocBook Xalan Extensions</link>, and you must set both
+        the <parameter>use.extensions</parameter> and
+        <parameter>textinsert.extension</parameter> parameters to
+        <literal>1</literal>.</para>
+      <para>As an alternative to using the textinsert element,
+        consider using an Xinclude element with the
+        <literal>parse="text"</literal> attribute and value
+        specified, as detailed in <link
+          role="tcg" xlink:href="ExternalCode.html#XIncludeCode"
+          >Using XInclude for text inclusions</link>.</para>
+    </note>
+  </refsection>
+  <refsection><info><title>See Also</title></info>
+    <para>You can also use the <tag
+        class="xmlpi">dbhtml-include href</tag> processing
+      instruction to insert external files — both files containing
+      plain text and files with markup content (including HTML
+      content).</para>
+  </refsection>
+  <refsection><info><title>More information</title></info>
+    <para>For how-to documentation on inserting contents of
+      external code files and other text files into output, see
+      <link
+        role="tcg" xlink:href="ExternalCode.html"
+        >External code files</link>.</para>
+    <para>For guidelines on inserting contents of
+      HTML files into output, see <link
+        role="tcg" xlink:href="InsertExtHtml.html"
+        >Inserting external HTML code</link>.</para>
+  </refsection>
 </refentry>