
xml.schema.z3998-book-1.0-latest.schemadoc.subfiles.e-wpart01.html Maven / Gradle / Ivy
Schema Documentation: the wpart element
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
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
optional attributes: @about,
@by,
@class,
@content,
@continuation,
@datatype,
@desc,
@its:dir,
@its:translate,
@property,
@rel,
@resource,
@rev,
@role,
@sel:selid,
@ssml:onlangfailure,
@typeof,
@xml:base,
@xml:id,
@xml:lang and
@xml:space
one or more of
a choice of either wpart
or one or more of
a choice of either one of the 14 elements: char, emph, its:ruby, object, pagebreak, span, ssml:break, ssml:phoneme, ssml:prosody, ssml:say-as, ssml:sub, ssml:token, sub or sup
or textend 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/