Example: Reusing a range with @conkeyref
This section is non-normative.
In this scenario, a @conkeyref
is used to define the start of a range
and @conrefend
is used to define the end of a range.
In the following sample, the key xmp is defined as the first topic in the file examples.dita.
To reuse these list items by using the key, the
@conkeyref
attribute combines
the key itself with the sub-topic id first to define the start of the
range. The @conrefend
attribute defines a default high-level object along with
the sub-topic id last that ends the
range: <li conkeyref="xmp/first"
conrefend="default.dita#default/last"/>
The @conkeyref
attribute uses a key to reference the first topic in
examples.dita, so the range begins with the object
examples.dita#examples/first
. The high-level object in the
@conrefend
attribute (default.dita#default
) is replaced
with the object represented by the key (the first topic in
examples.dita), resulting in a range that ends with the object
examples.dita#examples/last
.