RelaxNG/publidoc.rnc
changeset 309 b748affd5db2
parent 306 08c4ccd5573f
child 310 13939fb7824a
equal deleted inserted replaced
308:3a1cca4c6acb 309:b748affd5db2
   312 tr = element tr { tr.attributes, tr.content }
   312 tr = element tr { tr.attributes, tr.content }
   313 
   313 
   314 tr.attributes =
   314 tr.attributes =
   315    align.attribute?
   315    align.attribute?
   316  & valign.attribute?
   316  & valign.attribute?
       
   317  & cell.type.attribute?
   317 align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
   318 align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
   318 valign.attribute = attribute valign { "top" | "middle" | "bottom" }
   319 valign.attribute = attribute valign { "top" | "middle" | "bottom" }
       
   320 cell.type.attribute = attribute type { xsd:NCName }
   319 
   321 
   320 tr.content =
   322 tr.content =
   321    (td | th)+
   323    (td | th)+
   322 
   324 
   323 # ~~~~~~ td, th
   325 # ~~~~~~ td, th
   327 td.attributes =
   329 td.attributes =
   328    align.attribute?
   330    align.attribute?
   329  & valign.attribute?
   331  & valign.attribute?
   330  & colspan.attribute?
   332  & colspan.attribute?
   331  & rowspan.attribute?
   333  & rowspan.attribute?
   332  & td.type.attribute?
   334  & cell.type.attribute?
   333 colspan.attribute = attribute colspan { xsd:positiveInteger }
   335 colspan.attribute = attribute colspan { xsd:positiveInteger }
   334 rowspan.attribute = attribute rowspan { xsd:positiveInteger }
   336 rowspan.attribute = attribute rowspan { xsd:positiveInteger }
   335 td.type.attribute = attribute type { xsd:NCName }
       
   336 
   337 
   337 td.content =
   338 td.content =
   338    inlines
   339    inlines
   339  | (p | media)+
   340  | (p | media)+
   340 
   341