#419 Add class to <col> in <colgroup>

output: HTML
closed-fixed
XSL (399)
5
2010-07-28
2008-11-17
Lars
No

Hello,

the XSL stylesheets which translates to HTML createfor a table already the colgroups:

<table border="1">
<colgroup>
<col align="left"/>
<col align="left"/>
</colgroup>

Would it be possible to add here a class so that I can customizing the table columns by css styles?

Desired output:

<table border="1">
<colgroup>
<col class="col1" align="left"/>
<col class="col2" align="left"/>
</colgroup>

I didn't find a way to do it currently. I checked the available parameters: (http://docbook.sourceforge.net/release/xsl/current/doc/html/).

Best regards, Lars

Discussion

  • Robert Stayton

    Robert Stayton - 2009-12-03
    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
     
  • Robert Stayton

    Robert Stayton - 2009-12-03

    I think it would be better to use colname rather than numbers. That way you could style only those columns to which you assign the colname, rather than all columns by position. So if a colspec has a colname, it becomes a class attribute on the col element.

     
  • Lars

    Lars - 2009-12-04
    • status: pending-fixed --> open-fixed
     
  • Lars

    Lars - 2009-12-04

    Thanks. Colname would be also ok, I just need to have a reference for my style sheet.

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2010-07-28
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.