Skip to main content

 Element reference

PSML elements from <author> to <xref>

<item>

Summary

Item in a list or a numbered list.

Usage context

Element categorylist
PSML levelportable
Permitted content
Permitted parent<list> <nlist>
HTML equivalent<li>
OpenXML equivalent<w:p> with <w:numPr> property

Attributes

This element does not have any attributes.

Examples

A list item in the context of a list:

<list>
  <item>apples</item>
  <item>oranges</item>
​</list>

This would generally be transformed in HTML as:

<ul>
  <li>apples</li>
  <li>oranges</li>
</ul>

Schema

XML Schema

<xs:element name="item">
  <xs:complexType mixed="true">

    <xs:choice  minOccurs="0" maxOccurs="unbounded">
      <xs:group ref="character-style-group"/>     
      <xs:element ref="list"/>
      <xs:element ref="nlist"/>
      <xs:element ref="para"/>
      <xs:element ref="block"/>
      <xs:element ref="blockxref"/>
      <xs:element ref="image"/>
      <xs:element ref="preformat"/>
      <xs:element ref="table"/>
    </xs:choice>

  </xs:complexType>
</xs:element>

Relax Schema

element item {
   ( character-style-group
   | list | nlist | para | block | blockxref | image | preformat | table)*
}

Compatibility

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

Created on , last edited on