Re: javascript file in docbook generated html
Bob Stayton <[email protected]>
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
If you just want to change the @type attribute value for all scripts, there's a param for that: http://docbook.sourceforge.net/release/xsl/current/doc/html/html.script.type.html Bob Stayton [email protected] On 4/18/2020 5:01 AM, Niels Müller Larsen wrote: > Hi all > You may customize docbook to include a certain javascript into all your generated html files (chunked) by including > > <xsl:param name="html.script">nmlQuery.js</xsl:param> > > is there a way you can make this appear in the html as > > <script src="nmlQuery.js" type="module"/> > > it would be very convenient by allowing you to structure your js in a more moderne way. > > BTW ...type="text/javascript" is not necessary in this day and age. >