Skip to main content

 Element reference

PSML elements from <author> to <xref>

<nlist>

Summary

Auto-numbered list.

Use the <list> element for unordered lists.

Usage context

Element categoryblock
PSML levelportable
Permitted content<item>
Permitted parent
HTML equivalent<ol>
OpenXML equivalent

Attributes

This element includes the following attributes:

NameTypeRequiredDescription
startxs:positiveIntegernoNumber to start the list at
typelist-typenoType of prefix to display before each item
rolerolenoCustom value that can be used for formatting

@start

This attribute can manually override the first item in the list so the prefix value is not “1”.

@type

Defines the incrementing values that prefix the list items. Possible values are the following:

  • arabic (default)
  • loweralpha
  • upperalpha
  • lowerroman
  • upperroman

@role

This attribute can store a semantic or formatting value that can be used for processing, validation or presentation.

Examples

Nested, numbered lists using the default settings:

<nlist>
  <item>First</item>
  <item>Second
    <nlist>
      <item>more</item>
      <item>even more</item>
    </nlist>
  </item>
  <item>third</item>
  <item>fourth</item>
</nlist>

It renders in HTML as:

  1. first
  2. second
    1. more
    2. even more
  3. third
  4. fourth

Schema

XML Schema

<xs:element name="nlist">
  <xs:complexType>
    <xs:sequence maxOccurs="unbounded">
      <xs:element ref="item"/>
    </xs:sequence>

    <xs:attribute name="start" type="xs:positiveInteger"/>
    <xs:attribute name="type" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration  value="arabic"/>
          <xs:enumeration value="upperalpha"/>
          <xs:enumeration value="loweralpha"/>
          <xs:enumeration value="upperroman"/>
          <xs:enumeration value="lowerroman"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="role" type="role"/>
  </xs:complexType>
</xs:element>

Relax Schema

element nlist {
   attribute type { "arabic" | "upperalpha" | "loweralpha" | "upperroman" | "lowerroman" }?,
   attribute start { xs:positiveInteger }?,
   attribute role { role }?,
   element item+
}

Compatibility

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

Created on , last edited on