$v:highlight-js-head-elements

$v:highlight-js-head-elements — CSS and JavaScript to support highlight.js.

Variable:
{http://docbook.org/ns/docbook/variables}highlight-js-head-elements
Defined in:
modules/variable.xsl
Used in:
main.xsl

Synopsis

  |<xsl:variable name="v:highlight-js-head-elements"
  |              as="element()*">
  |   <link rel="stylesheet"
  |         href="{$resource-base-uri}css/highlight-11.6.0.min.css"/>
  |   <script src="{$resource-base-uri}js/highlight-11.6.0.min.js"/>
  |   <script>hljs.highlightAll();</script>
  |</xsl:variable>

Description

If the highlight.js syntax highlighter is selected (see $verbatim-syntax-highlighter), these elements are added to the head element to load and configure the highlighter.

Starting with the DocBook xslTNG Stylesheets version 1.4.1, any link elements will be added to the head element before links to user-defined CSS files so that property overrides may be specified.