From: Bob Stayton Date: Mon, 30 Jan 2012 02:46:48 +0000 (+0000) Subject: Add support for specifying javascript references like css references. X-Git-Tag: release/1.79.1~6^2~570 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56fcccadd0f6ac3bd4036447aa8ecb7c2025cf45;p=docbook-dsssl Add support for specifying javascript references like css references. --- diff --git a/xsl/params/html.script.type.xml b/xsl/params/html.script.type.xml new file mode 100644 index 000000000..44ef900c6 --- /dev/null +++ b/xsl/params/html.script.type.xml @@ -0,0 +1,31 @@ + + +html.script.type +string + + +html.script.type +The type of script used in the generated HTML + + + +text/javascript + + +Description + +The type of script to place in the HTML script element. +Specifically, the value of the script element's type +attribute. +The default value is text/javascript. +This param is used only when the stylesheet parameter +html.script is non-blank and specifies the location of a script. + + + + diff --git a/xsl/params/html.script.xml b/xsl/params/html.script.xml new file mode 100644 index 000000000..60dd9edbd --- /dev/null +++ b/xsl/params/html.script.xml @@ -0,0 +1,36 @@ + + +html.script +string + + +html.script +Name of the script(s) to use in the generated HTML + + + + + + + + +Description + +The html.script parameter is either +empty (default), indicating that no script element should be +generated in the html output, or it is a list of one or more +script locations. + +Multiple script locations are space-delimited. If you need to +reference a script URI that includes a space, encode it with +%20. A separate html script element will +be generated for each script in the order they are listed in the +parameter. + + +