Example: Reusing a sequence of elements of different types
This section is non-normative.
In this scenario, a @conref
and @conrefend
are used
to reference a range of block elements that do not have the same element type.
In the following code sample, we have a library topic that defines several elements,
including paragraphs and lists. Each block element has an @id
attribute,
making it possible to reuse them individually or as ranges.
In the following sample, the referencing element is a paragraph. It references a starting paragraph and an ending paragraph, which defines a range that includes those paragraphs along with everything that falls between them.
In the resolved topic, all list items from the starting paragraph to the ending paragraph are
pulled in to replace the referencing element. The @id
attributes on the
referenced elements are not preserved, but any @id
attributes on intermediate
elements are preserved.