]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for specifying javascript references like css references.
authorBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 02:46:48 +0000 (02:46 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 02:46:48 +0000 (02:46 +0000)
xsl/params/html.script.type.xml [new file with mode: 0644]
xsl/params/html.script.xml [new file with mode: 0644]

diff --git a/xsl/params/html.script.type.xml b/xsl/params/html.script.type.xml
new file mode 100644 (file)
index 0000000..44ef900
--- /dev/null
@@ -0,0 +1,31 @@
+<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="html.script.type">
+<refmeta>
+<refentrytitle>html.script.type</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>html.script.type</refname>
+<refpurpose>The type of script used in the generated HTML</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="html.script.type.frag"><xsl:param name="html.stylesheet.type">text/javascript</xsl:param></src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>The type of script to place in the HTML <tag>script</tag> element.
+Specifically, the value of the <tag>script</tag> element's <tag>type</tag>
+attribute.
+The default value is <literal>text/javascript</literal>.
+This param is used only when the stylesheet parameter
+<tag>html.script</tag> is non-blank and specifies the location of a script.</para>
+
+
+</refsection>
+</refentry>
diff --git a/xsl/params/html.script.xml b/xsl/params/html.script.xml
new file mode 100644 (file)
index 0000000..60dd9ed
--- /dev/null
@@ -0,0 +1,36 @@
+<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="html.script">
+<refmeta>
+<refentrytitle>html.script</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>html.script</refname>
+<refpurpose>Name of the script(s) to use in the generated HTML</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="html.script.frag">
+<xsl:param name="html.script" ></xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>The <parameter>html.script</parameter> parameter is either
+empty (default), indicating that no <tag>script</tag> element should be
+generated in the html output, or it is a list of one or more
+script locations.</para>
+
+<para>Multiple script locations are space-delimited. If you need to
+reference a script URI that includes a space, encode it with
+<literal>%20</literal>. A separate html <literal>script</literal> element will
+be generated for each script in the order they are listed in the
+parameter.</para>
+
+</refsection>
+</refentry>