commit: a429f4c8d7f2b662d4a5eeb8f014ef769cfdbbec
Author: Markus Meier <maekke <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 23 20:13:48 2014 +0000
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Wed Jul 23 20:13:48 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=a429f4c8
Use bootstrap tables
- Use css table class for <table>s
- Drop custom <th> magic and use bootstrap native one
---
devbook.xsl | 8 +++-----
1 file 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 -->