view etc/schema/xhtml-table.rnc @ 99002:b232f24c023c

(Visiting): Document find-file-confirm-nonexistent-file. (Version Control): Add VC Directory Mode and VC Directory Commands to the submenu. (Why Version Control?): Use table format. (Version Control Systems): Note that Meta-CVS support is gone. (VCS Concepts): Note precisely when VC started supporting filesets. Remove bogus xref to CVS Options node. (Types of Log File): Copyedits. (VC Mode Line): Document tooltips and mouse-1 on VC indicator. (Basic VC Editing): Content moved from Selecting A Fileset and Doing The Right Thing. (Selecting A Fileset, Doing The Right Thing): Nodes deleted. (Log Buffer): Reorganize node, putting C-c C-c description first. (Old Revisions): Use CVS for example, not RCS. (Secondary VC Commands): Remove VC Directory Mode and VC Directory Commands from the submenu, putting them under Version Control. (VC Directory Mode): Move node contents here from vc1-xtra.texi; we need to include it in the manual unconditionally, since it is now crucial to using distributed version control systems.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 21 Oct 2008 20:50:54 +0000
parents 309bef8b751c
children
line wrap: on
line source

# Tables Module

# This builds on the basic tables module, unlike with the DTD
# implementation.

include "xhtml-btable.rnc" {
  table =
    element table {
      table.attlist,
      caption?,
      (col* | colgroup*),
      ((thead?, tfoot?, tbody+) | tr+)
    }
  th = element th { th.attlist, Flow.model }
  td = element td { td.attlist, Flow.model }
  CellHAlign.attrib =
    attribute align {
      "left" | "center" | "right" | "justify" | "char"
    }?,
    attribute char { Character.datatype }?,
    attribute charoff { Length.datatype }?
  CellVAlign.attrib =
    attribute valign { "top" | "middle" | "bottom" | "baseline" }?
  scope.attrib =
    attribute scope { "row" | "col" | "rowgroup" | "colgroup" }?
}
table.attlist &=
  attribute width { Length.datatype }?,
  attribute border { Pixels.datatype }?,
  frame.attrib,
  rules.attrib,
  attribute cellspacing { Length.datatype }?,
  attribute cellpadding { Length.datatype }?
col = element col { col.attlist }
col.attlist =
  Common.attrib,
  attribute span { Number.datatype }?,
  attribute width { MultiLength.datatype }?,
  CellHAlign.attrib,
  CellVAlign.attrib
colgroup = element colgroup { colgroup.attlist, col* }
colgroup.attlist =
  Common.attrib,
  attribute span { Number.datatype }?,
  attribute width { MultiLength.datatype }?,
  CellHAlign.attrib,
  CellVAlign.attrib
tbody = element tbody { tbody.attlist, tr+ }
tbody.attlist = Common.attrib, CellHAlign.attrib, CellVAlign.attrib
thead = element thead { thead.attlist, tr+ }
thead.attlist = Common.attrib, CellHAlign.attrib, CellVAlign.attrib
tfoot = element tfoot { tfoot.attlist, tr+ }
tfoot.attlist = Common.attrib, CellHAlign.attrib, CellVAlign.attrib
frame.attrib =
  attribute frame {
    "void"
    | "above"
    | "below"
    | "hsides"
    | "lhs"
    | "rhs"
    | "vsides"
    | "box"
    | "border"
  }?
rules.attrib =
  attribute rules { "none" | "groups" | "rows" | "cols" | "all" }?