From 0c2f4d7c9b9ac283b2804c88ffdb263a3a141691 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Sat, 20 Apr 2024 11:41:26 +0200 Subject: [PATCH] Aligining exercise labels in short lists --- ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl b/ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl index 606e3faa9..e91734f11 100644 --- a/ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl +++ b/ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl @@ -486,23 +486,16 @@ </xsl:variable> <section id="{$primarySectionId}_followupExercise"> - <xsl:choose> - - <xsl:when test="1 = count($followupQandasets)"> - <xsl:apply-templates select="$followupQandasets" mode="createTitleLink"/> - </xsl:when> - - <xsl:otherwise> - <ol> - <xsl:for-each select="$followupQandasets"> - <li> - <xsl:apply-templates select="." mode="createTitleLink"/> - </li> - </xsl:for-each> - </ol> - </xsl:otherwise> - - </xsl:choose> + <ol> + <xsl:attribute name="start"> + <xsl:value-of select="1 + count(preceding::d:qandaset)"/> + </xsl:attribute> + <xsl:for-each select="$followupQandasets"> + <li> + <xsl:apply-templates select="." mode="createTitleLink"/> + </li> + </xsl:for-each> + </ol> </section> </xsl:if> -- GitLab