PSML

A complete reference of PageSeeder's markup language PSML

<nlist>

Summary

Auto-numbered list.

Usage context

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

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:

  • 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:

first

second

more

even more

third

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.

See also

Unordered lists <list> or <item>.

Created on , last edited on