aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2014-07-23 22:13:48 +0200
committerMarkus Meier <maekke@gentoo.org>2014-07-23 22:13:48 +0200
commita429f4c8d7f2b662d4a5eeb8f014ef769cfdbbec (patch)
tree77d755f9a7a8d732d1a594fe8311dc269f3dcbed /devbook.xsl
parentuse bootstrap alerts for important, note, todo and warning tags (diff)
downloaddevmanual-a429f4c8d7f2b662d4a5eeb8f014ef769cfdbbec.tar.gz
devmanual-a429f4c8d7f2b662d4a5eeb8f014ef769cfdbbec.tar.bz2
devmanual-a429f4c8d7f2b662d4a5eeb8f014ef769cfdbbec.zip
Use bootstrap tables
- Use css table class for <table>s - Drop custom <th> magic and use bootstrap native one
Diffstat (limited to 'devbook.xsl')
-rw-r--r--devbook.xsl8
1 files changed, 3 insertions, 5 deletions
diff --git a/devbook.xsl b/devbook.xsl
index 81d9ad1..1f6bfed 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -85,7 +85,7 @@
<!-- Tables -->
<!-- From the Gentoo GuideXML Stylesheet -->
<xsl:template match="table">
- <table><xsl:apply-templates/></table>
+ <table class="table"><xsl:apply-templates/></table>
</xsl:template>
<xsl:template match="tr">
@@ -111,7 +111,7 @@
<!-- Table Heading -->
<xsl:template match="th">
- <td class="devbook">
+ <th>
<xsl:if test="@colspan">
<xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute>
<!-- Center only when item spans several columns as
@@ -124,10 +124,8 @@
<xsl:if test="@rowspan">
<xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute>
</xsl:if>
- <b>
<xsl:apply-templates/>
- </b>
- </td>
+ </th>
</xsl:template>
<!-- End Table Jojo -->