Untangling Tables

cals.table =
   element table {
      attribute frame {
         "all"
       | "bottom"
       | "none"
       | "sides"
       | "top"
       | "topbot" }?,
      cals.tgroup
   }

cals.tbody =
   element tbody { cals.row+ }