# Tabellen

    mal_table = element table {
      attribute style { xsd:NMTOKENS } ?,
      attribute * - (mal:* | local:*) { text } *,
      attribute frame {
        "all" | "none" |
        list { ("top" | "bottom" | "left" | "right") * }
      } ?,
      attribute rules {
        "all" | "groups" | "none" |
        list { ("rows" | "rowgroups" | "cols" | "colgroups") * }
      } ?,
      attribute shade {
        "all" | "groups" | "none" |
        list { ("rows" | "rowgroups" | "cols" | "colgroups") * }
      } ?,

      mal_block_title ?,
      mal_block_desc ?,

      ( mal_table_col + |
        mal_table_colgroup +
      ) ?,

      ( mal_table_tr + |
        ( mal_table_thead ?,
          mal_table_tbody +,
          mal_table_tfoot ?
        )
      )
    }

# Inhalt

# Attribute

# Beispiele

## Das `rules`-Attribut

Place rules between each row:

<table frame="all" rules="rows"> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Place rules between each colum:

<table frame="all" rules="cols"> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Place rules between each row group:

<table frame="all" rules="rowgroups cols"> <tbody> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> </tbody> <tbody> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </tbody> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Place rules between each column group:

<table frame="all" rules="rows colgroups"> <colgroup><col/><col/></colgroup> <colgroup><col/><col/></colgroup> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

## Das `shade`-Attribut

Shade alternating rows:

<table frame="all" shade="rows"> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Shade alternating columns:

<table frame="all" shade="cols"> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Shade alternating row groups:

<table frame="all" shade="rowgroups cols"> <tbody> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> </tbody> <tbody> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </tbody> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

Shade alternating column groups:

<table frame="all" shade="rows colgroups"> <colgroup><col/><col/></colgroup> <colgroup><col/><col/></colgroup> <tr> <td><p>Mallard</p></td> <td><p>Anas platyrhynchos</p></td> <td><p>56-65 cm</p></td> <td><p>900-1200 g</p></td> </tr> <tr> <td><p>Eurasian Wigeon</p></td> <td><p>Anas penelope</p></td> <td><p>45-50 cm</p></td> <td><p>680 g</p></td> </tr> <tr> <td><p>Common Teal</p></td> <td><p>Anas crecca</p></td> <td><p>34-43 cm</p></td> <td><p>360 g</p></td> </tr> <tr> <td><p>Northern Pintail</p></td> <td><p>Anas acuta</p></td> <td><p>59-76 cm</p></td> <td><p>450-1360 g</p></td> </tr> </tbody> </table>

Mallard | Anas platyrhynchos | 56-65 cm | 900-1200 g
Eurasian Wigeon | Anas penelope | 45-50 cm | 680 g
Common Teal | Anas crecca | 34-43 cm | 360 g
Northern Pintail | Anas acuta | 59-76 cm | 450-1360 g

# Hinweise zum Design

# Vergleich zu HTML

# Vergleich zu DocBook