]> git.draconx.ca Git - homepage.git/blobdiff - layouts/clickytable.xsl
Consolidate some clicky table label styles.
[homepage.git] / layouts / clickytable.xsl
index f06fef309146d89d90f952db5aacda20204f0daf..cf0fcb2a580738d0e493d8ca719144fcdda3628d 100644 (file)
   </div>
 </xsl:template>
 
+<xsl:template match='xhtml:table[@clicky]/xhtml:thead[*/xhtml:th/@clicky]'>
+  <xsl:copy>
+    <xsl:attribute name='class'>
+      <xsl:if test='@class'>
+        <xsl:value-of select='concat(@class, " ")' />
+      </xsl:if>
+      <xsl:text>clicky</xsl:text>
+    </xsl:attribute>
+    <xsl:apply-templates select='node()|@*[local-name() != "class"]' />
+  </xsl:copy>
+</xsl:template>
+
 <xsl:template match='xhtml:table[@clicky]/xhtml:thead/*/xhtml:th[@clicky]'>
   <xsl:copy>
     <xsl:attribute name='class'>