diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-10-21 18:27:05 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-10-22 10:53:33 +0200 |
commit | 5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac (patch) | |
tree | 7045d8ad55297b629dcfcde62f8de117142cc62c /devbook.xsl | |
parent | devbook.xsl: Force end tag for empty li elements (diff) | |
download | devmanual-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.xsl | 7 |
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"> |