]> granicus.if.org Git - docbook-dsssl/commitdiff
New param chunked.filename.prefix to separate any such prefix from
authorBob Stayton <bobs@sagehill.net>
Fri, 11 Nov 2011 23:17:20 +0000 (23:17 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 11 Nov 2011 23:17:20 +0000 (23:17 +0000)
the base.dir param, which helps fix bug 3087359.

xsl/params/chunked.filename.prefix.xml [new file with mode: 0644]

diff --git a/xsl/params/chunked.filename.prefix.xml b/xsl/params/chunked.filename.prefix.xml
new file mode 100644 (file)
index 0000000..e4282c2
--- /dev/null
@@ -0,0 +1,41 @@
+<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="chunked.filename.prefix">
+<refmeta>
+<refentrytitle>chunked.filename.prefix</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>chunked.filename.prefix</refname>
+<refpurpose>Filename prefix for chunked files</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="chunked.filename.prefix.frag">
+<xsl:param name="chunked.filename.prefix"></xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>If specified, the <parameter>chunked.filename.prefix</parameter> 
+parameter specifies a prefix string to add to each generated chunk filename.
+For example:</para>
+<programlisting>&lt;xsl:param name="chunked.filename.prefix"&gt;admin-&lt;xsl:param&gt;</programlisting>
+<para>will produce chunked filenames like:</para>
+<programlisting>admin-index.html
+admin-ch01.html
+admin-ch01s01.html
+...
+</programlisting>
+
+<caution><para>Trying to use the <parameter>base.dir</parameter>
+parameter to add a string prefix (by omitting the trailing slash)
+no longer works (it never worked completely anyway). That parameter
+value should contain only a directory path, and
+now gets a trailing slash appended if it was omitted from the param.</para></caution>
+</refsection>
+</refentry>