Schema Documentation - DIAGRAM Description Profile
version 1.0

The code variant of the ln element

On this page:

The ln element for the code element represents a single line of code.

The lnum element can be added at the start of the ln for code examples that include line numbers.

Usage Example

<ln>public static void helloWorld()</ln>
    

Allowed parents

code and lngroup

Allowed children

This element may contain text.

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

Content model and additional requirements

optionally the following 2 co-ocurring attributes: @ssml:alphabet and @ssml:ph
a mix of
an optional lnum
one or more of
a choice of
or text
end of choice
end of mix
Note that in addition to restrictions presented in the content model above, use of this element must also respect the following requirements:
  • The ln element must not contain descendant ln elements.
  • The ln 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.

Variants

This element exists in 2 variants. The other variant is the ln variant.

Namespace

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