$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.10.0.min.css"/>
   <script src="{$resource-base-uri}js/highlight-11.10.0.min.js"/>
   <xsl:choose>
      <xsl:when test="f:is-true($verbatim-embellish-linenumbers)">
         <script src="{$resource-base-uri}js/highlightjs-line-numbers-2.9.0.min.js"/>
         <script>hljs.configure({languages:[]}); hljs.highlightAll(); hljs.initLineNumbersOnLoad();</script>
      </xsl:when>
      <xsl:otherwise>
         <script>hljs.configure({languages:[]}); hljs.highlightAll();</script>
      </xsl:otherwise>
   </xsl:choose>
</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.