Skip to content

Commit

Permalink
Attempt to fix bug docbook#88 by reordering head elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Feb 11, 2017
1 parent 4838cb4 commit 7c52642
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions xslt/base/html/html.xsl
Expand Up @@ -178,19 +178,6 @@ and a CSS style is specified.</para>
<xsl:template match="*" mode="mp:javascript-head">
<script type="text/javascript"
src="{concat($resource.root, 'js/dbmodnizr.js')}"/>

<xsl:choose>
<xsl:when test="$syntax-highlighter != '0'">
<link href="{concat($resource.root, 'css/prism.css')}" rel="stylesheet"
type="text/css"/>
<link href="{concat($resource.root, 'css/db-prism.css')}" rel="stylesheet"
type="text/css"/>
</xsl:when>
<xsl:otherwise>
<link href="{concat($resource.root, 'css/db-noprism.css')}" rel="stylesheet"
type="text/css"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="*" mode="m:javascript-head">
Expand Down Expand Up @@ -286,13 +273,26 @@ and a CSS style is specified.</para>
<!-- ====================================================================== -->

<xsl:template match="*" mode="mp:css">
<xsl:if test="string($docbook.css) != ''">
<link rel="stylesheet" type="text/css" href="{$docbook.css}"/>
</xsl:if>

<xsl:if test=".//ghost:annotation or .//*[@xlink:type='extended']">
<link rel="stylesheet" type="text/css" href="{$cdn.jqueryui.css}"/>
</xsl:if>

<xsl:choose>
<xsl:when test="$syntax-highlighter != '0'">
<link href="{concat($resource.root, 'css/prism.css')}" rel="stylesheet"
type="text/css"/>
<link href="{concat($resource.root, 'css/db-prism.css')}" rel="stylesheet"
type="text/css"/>
</xsl:when>
<xsl:otherwise>
<link href="{concat($resource.root, 'css/db-noprism.css')}" rel="stylesheet"
type="text/css"/>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="string($docbook.css) != ''">
<link rel="stylesheet" type="text/css" href="{$docbook.css}"/>
</xsl:if>
</xsl:template>

<xsl:template match="*" mode="m:css">
Expand Down

0 comments on commit 7c52642

Please sign in to comment.