[yelp-xsl] mal2html-table.xsl: Extra HTML class based on @style



commit c12e23e4947a4ebbf5a118bc9f6e04237660cd0a
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Feb 17 09:57:06 2011 -0500

    mal2html-table.xsl: Extra HTML class based on @style
    
    I should do this for lots of elements. But I need this one
    right now.

 xslt/mallard/html/mal2html-table.xsl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-table.xsl b/xslt/mallard/html/mal2html-table.xsl
index d8d76f5..62b1f6c 100644
--- a/xslt/mallard/html/mal2html-table.xsl
+++ b/xslt/mallard/html/mal2html-table.xsl
@@ -165,9 +165,9 @@ REMARK: Describe this module
   <div>
     <xsl:attribute name="class">
       <xsl:text>table</xsl:text>
-      <xsl:if test="not(preceding-sibling::*)">
-        <xsl:text> first-child</xsl:text>
-      </xsl:if>
+      <xsl:for-each select="str:tokenize(@style)">
+        <xsl:value-of select="concat(' style-', .)"/>
+      </xsl:for-each>
     </xsl:attribute>
     <xsl:apply-templates mode="mal2html.block.mode" select="mal:title | mal:desc"/>
     <table class="table">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]