Skip to main content


A complete reference of PageSeeder's markup language PSML



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

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>


Same as <cell> element.



XML Schema

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

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

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

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

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)*


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

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

See also

Elements: <cell>, <table>

Created on , last edited on