aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-10-21 18:27:05 +0200
committerUlrich Müller <ulm@gentoo.org>2023-10-22 10:53:33 +0200
commit5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac (patch)
tree7045d8ad55297b629dcfcde62f8de117142cc62c /devbook.xsl
parentdevbook.xsl: Force end tag for empty li elements (diff)
downloaddevmanual-5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac.tar.gz
devmanual-5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac.tar.bz2
devmanual-5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac.zip
devbook.xsl: Support type and start attributes for ordered lists
Simply copy them to the HTML output. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r--devbook.xsl7
1 files changed, 6 insertions, 1 deletions
diff --git a/devbook.xsl b/devbook.xsl
index 9289eab..426b2fd 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -186,7 +186,12 @@
</xsl:template>
<xsl:template match="ol">
- <ol><xsl:apply-templates/></ol>
+ <ol>
+ <xsl:if test="@type">
+ <xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates/>
+ </ol>
</xsl:template>
<xsl:template match="ul">