Skip to main content

 PSML

A complete reference of PageSeeder's markup language PSML

<block>

Summary

Labeled block of content.

A block label is generally used to group items which are semantically related.

The equivalent inline label element is <inline>.

Usage context

Element categoryblock
PSML Levelportable
Permitted contentblock and inline content
Permitted parent<fragment>, <block>, <item>
HTML equivalent<div> 
OpenXML equivalent

Attributes

This element includes the following attributes

NameTypeRequiredDescription
labellabelnoLabel of this block

@label

The name of the label for the block.

Examples

A paragraph marked as a note.

<block label="note">
  <para></para>
</block>

Since the <block> is a block-level element, if the content is a single paragraph, it is possible to omit the paragraph element:

<block label="note">Remember this!</block>

Schema

XML Schema

<xs:element name="block">

  <xs:complexType mixed="true">

    <xs:choice minOccurs="0" maxOccurs="unbounded">

      <xs:group ref="block-style-group"
                minOccurs="0" 
                maxOccurs="unbounded"/>

      <xs:group ref="character-style-group"
                minOccurs="0"
                maxOccurs="unbounded"/>
    </xs:choice>

    <xs:attribute name="label" type="label" use="required"/>
  </xs:complexType>
</xs:element>

Relax Schema

element block {
  attribute label { label },
  (character-style-group | block-style-group)*
}

Compatibility

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

This element is the PSML equivalent of PSStandard's <paraLabel> element.

Created on , last edited on