Skip to content

Commit

Permalink
Merge pull request #608 from openSUSE/fix-3column-layout
Browse files Browse the repository at this point in the history
Fix missing 3 column layout
  • Loading branch information
tomschr authored Feb 16, 2024
2 parents 1701d23 + dc6833a commit 1d1d985
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions suse2022-ns/xhtml/docbook.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,10 @@


<!-- ############################################################## -->
<xsl:template match="d:book|d:article|d:set" priority="2" mode="process.root">

<xsl:template match="/" mode="process.root">
<xsl:apply-imports/>
<xsl:if test="$rootid = @xml:id and $is.chunk = 0">
<xsl:choose>
<xsl:choose>
<xsl:when test="$dcfilename != ''">
<xsl:call-template name="generate-json-ld-external">
<xsl:with-param name="node" select="." />
Expand All @@ -717,19 +717,11 @@
<xsl:text>JSON-LD</xsl:text>
</xsl:with-param>
<xsl:with-param name="message">
<xsl:text>The parameter $dcfile is unset. Cannot find the DC file in Docserv config.</xsl:text>
<xsl:text>The parameter $dcfilename is unset. Cannot create the external JSON file.</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>

<xsl:template match="/" priority="2" mode="process.root">
<xsl:apply-imports/>
<xsl:call-template name="generate-json-ld-external">
<xsl:with-param name="node" select="/*"/>
</xsl:call-template>
</xsl:template>

<xsl:template match="*" mode="process.root">
Expand Down

0 comments on commit 1d1d985

Please sign in to comment.