RelaxNG/publidoc.rnc
changeset 22 94b8e4454c47
parent 20 79713ffae179
child 24 53a80accc248
equal deleted inserted replaced
21:7c09024d5634 22:94b8e4454c47
   322 align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
   322 align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
   323 colsep.attribute = attribute colsep { "0" | "1" }
   323 colsep.attribute = attribute colsep { "0" | "1" }
   324 rowsep.attribute = attribute rowsep { "0" | "1" }
   324 rowsep.attribute = attribute rowsep { "0" | "1" }
   325 
   325 
   326 # ~~~~~~ thead, tfoot, tbody
   326 # ~~~~~~ thead, tfoot, tbody
   327 thead = element thead { thead.content }
   327 thead = element thead { thead.attributes, thead.content }
   328 tfoot = element tfoot { tfoot.content }
   328 tfoot = element tfoot { tfoot.attributes, tfoot.content }
   329 tbody = element tbody { tbody.content }
   329 tbody = element tbody { tbody.attributes, tbody.content }
   330 
   330 
       
   331 thead.attributes =
       
   332    valign.attribute?
       
   333 tfoot.attributes =
       
   334    valign.attribute?
       
   335 tbody.attributes =
       
   336    valign.attribute?
       
   337 valign.attribute = attribute valign { "top" | "middle" | "bottom" }
       
   338    
   331 thead.content =
   339 thead.content =
   332    row+
   340    row+
   333 tfoot.content =
   341 tfoot.content =
   334    row+
   342    row+
   335 tbody.content =
   343 tbody.content =
   338 # ~~~~~~ row
   346 # ~~~~~~ row
   339 row = element row { row.attribute, row.content }
   347 row = element row { row.attribute, row.content }
   340 
   348 
   341 row.attribute =
   349 row.attribute =
   342    valign.attribute?
   350    valign.attribute?
   343 valign.attribute = attribute valign { "top" | "middle" | "bottom" }
       
   344 
   351 
   345 row.content =
   352 row.content =
   346   entry+
   353   entry+
   347 
   354 
   348 # ~~~~~~ entry
   355 # ~~~~~~ entry