PSML

A complete reference of PageSeeder's markup language PSML

<hcell>

Summary

The <hcell> element is used for header cells within a table.

Warning!

This element is being considered for deprecation! From PSML Beta 7, there is a better mechanism to identity header cells at the row or column level using the @part attribute.

Usage context

Element categorytable
PSML levelportable
Permitted content
Permitted parent<row> 
HTML equivalent<th> 
OpenXML equivalent<w:tc>
PSStandard equivalent<hcell>

Attributes

Same as <cell> element, see below.

Element <cell>: attributes

Examples

Schema

XML Schema

             <xs:element   name="hcell" 
                      type="cell-style">
              <xs:complexType>

             <xs:attribute  name="role"
                            type="role"/>
            <xs:attribute  name="align">
              <xs:simpleType>
       <xs:restriction base="xs:string">
           <xs:enumeration value="left" />
         <xs:enumeration value="center" />
          <xs:enumeration value="right" />
        <xs:enumeration value="justify" />
               </xs:restriction>
             </xs:simpleType>
           </xs:attribute>
   
           <xs:attribute  name="valign">
              <xs:simpleType>
       <xs:restriction base="xs:string">
            <xs:enumeration value="top" />
         <xs:enumeration value="middle" />
         <xs:enumeration value="bottom" />
       <xs:enumeration value="baseline" />
               </xs:restriction>
              </xs:simpleType>
             </xs:attribute>

             <xs:attribute name="width">
                <xs:simpleType>
                  <xs:restriction 
                       base="xs:string">
                   <xs:pattern 
                value="[0-9\.]+(px|%)?"/>
               </xs:restriction>
             </xs:simpleType>
          </xs:attribute>

          <xs:attribute name="colspan"
                     type="xs:NMTOKEN"/>
          <xs:attribute name="rowspan"
                     type="xs:NMTOKEN"/>
    </xs:complexType>
</xs:element>

Relax Schema

element hcell {
   attribute role { role }?,
   attribute colspan { NMTOKEN }?,
   attribute rowspan { NMTOKEN }?,
   attribute align { "center" | "justify" | "left" | "right"}?,
   attribute valign { "top" | "middle" | "bottom" | "baseline"}?,
   attribute width { text {pattern: "[0-9\.]+(px|%)?" } }?,
   (character-style-group | list | nlist | para | block | blockxref | image | preformat)*
}

Compatibility

This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.

Warning!

As it is being considered for deprecation, it may not longer be supported in future versions of PageSeeder.

See also

Elements: <cell>, <table>

Created on , last edited on