toggle quoted messageShow quoted text
This looks like a bug to me.
How about if you explicitly specify the topic ID when definining
the "topic_2" key?
Oxygen XML Editor
On 2/25/21 19:16, Chris Papademetrious
According to the DITA spec at
a conref/conkeyref can target:
- A referenced element within a DITA map
- A referenced element within a DITA topic
- An entire DITA map
- An entire DITA
We have a need to replace a boilerplate topic in a reused map with
a product-specific topic. I created the following test map (topics
1-3 would actually be in the reused map):
<topicref href="topic_2_replacement.dita" processing-role="resource-only"
conkeyref="topic_2" conaction="pushreplace" />
<topicref href="topic_1.dita" keys="topic_1"/>
<topicref href="topic_2.dita" keys="topic_2"/>
<topicref href="topic_3.dita" keys="topic_3"/>
but the DITA-OT issues the following error:
[DOTJ041E][ERROR] The attribute conref="topic_2.dita" uses
invalid syntax. The value should contain '#' followed by a topic
or map ID, optionally followed by '/elemID' for a sub-topic
It doesn't seem to want to operate on an entire topic. I was able
to approximate the behavior by moving the pushes into the
replacement topic <title> and <body> elements, but
this is fragile and awkward.
Are entire-topic (and entire-map) operations not supported after
all? Thanks in advance for any help!