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.
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
a mix of
•
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 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.