<inline>
Summary
The <inline> element is used to label a span of text.
This is generally used to define specific semantics for some text or an image within a block-level element. The equivalent block-level element is the <block> element.
Usage context
| Element category | character-style |
|---|---|
| PSML level | portable |
| Permitted content | text and character-style elements + images |
| Permitted parent | |
| HTML equivalent | <span> |
| OpenXML equivalent |
Attributes
This element includes the following attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| label | label | no | Name of the label |
@label
The name of the label for the block.
Examples
A paragraph with an inline label to markup the author.
<para>Alice in wonderland was written by <inline label="author">Lewis Carroll</inline>.</para>
This would typically be converted to HTML as:
<p>Alice in wonderland was written by <span class="author">Lewis Carroll</span></p>
Schema
XML Schema
<xs:element name="inline">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="character-style-group"/>
<xs:element ref="image"/>
</xs:choice>
<xs:attribute name="label" type="label" use="required"/>
</xs:complexType>
</xs:element>
Relax Schema
element inline {
attribute label { label },
character-style-and-image
}
Compatibility
This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.