Schema Documentation - Book Profile
version 1.0

The code variant of the lngroup element

On this page:

The lngroup element for code represents a grouping of ln code elements.

Lines of code may be grouped to show a section of a coded message, a computer program, methods within a program, to separate programs from sample input/output, etc.

Usage Example

<code>
    <lngroup>
        <ln>public static void helloWorld() {</ln>
        <ln>    Console.Write("Hello World!");</ln>
        <ln>}</ln>
    </lngroup>
</code>
    

Allowed parents

code

Allowed children

This element must not contain text.

This element must contain the following children: ln

This element may contain the following children: pagebreak

Content model

a mix of
one or more of ln
zero or more of pagebreak
end of mix

Variants

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

Namespace

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