Schema Documentation - DIAGRAM Description Profile
version 1.0

The wpart element

On this page:

The wpart element represents a segment of a word.

The wpart element is typically used to distinguish the parts of a word (root, stem and affix), compound word, portmanteau or homograph. It can also be used in grammatical contexts to identify morphemes, graphemes and other divisions and boundaries within a word.

The wpart element additionally can be used in place of soft hyphens to identify line ending break locations, if external formatting options are limited.

The role attribute optionally expresses the semantic nature of the word part. No implicit value is associated with the wpart element.

Usage Example

those <w><wpart role="root">near</wpart><wpart role="stem">est</wpart></w> to the axis
    

Allowed parents

w and wpart

Allowed children

This element may contain text.

This element may contain the following children: ssml:break, char, emph, object, pagebreak, ssml:phoneme, ssml:prosody, its:ruby, ssml:say-as, span, sub, ssml:sub, sup, ssml:token and wpart

Content model and additional requirements

optionally the following 2 co-ocurring attributes: @ssml:alphabet and @ssml:ph
one or more of
a choice of
either wpart
or one or more of
a choice of
or text
end of choice
end of choice
Note that in addition to restrictions presented in the content model above, use of this element must also respect the following requirement:
  • The wpart element must neither be empty nor contain only whitespace.
Such requirements take precedence over any conflicting statements in the content model or in the lists above of allowed children and parents.

Namespace

http://www.daisy.org/ns/z3998/authoring/