1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-22 16:18:11 +00:00
bitcoinbook/theme/epub/epub.xsl

21 lines
797 B
XML
Raw Normal View History

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="h">
<!-- Add title heading elements for different admonition types that do not already have headings in markup -->
<xsl:param name="add.title.heading.for.admonitions" select="1"/>
<!-- Drop @width attributes from table headers if present -->
<xsl:template match="h:th/@width"/>
<!-- Drop @width attributes from images if present -->
<xsl:template match="h:img/@width"/>
2023-11-02 20:15:15 +00:00
<!-- Drop @alt attribute content from images if present -->
<xsl:template match="h:img/@alt">
<xsl:attribute name="alt"/>
</xsl:template>
</xsl:stylesheet>