Issue with copy-to on sub-topics with locktitles

axhxu
Posts: 25
Joined: Thu Aug 27, 2015 9:28 pm

Issue with copy-to on sub-topics with locktitles

Post by axhxu » Fri Oct 04, 2019 3:40 pm

The topic should use the navtitle defined in the map when @locktitle=yes.

Instead topic is using the title of the first instance of the topic when topic is referenced as a sub-topic.

Note: @copy-to and @locktitle works when used at the same level as the original topic.

Sample map:

Code: Select all

<topicref class="- map/topicref " ixia_locid="5" keys="axk1425415118966"
    href="axk1425415118966.xml" type="task">
    <topicmeta class="- map/topicmeta ">
        <navtitle class="- topic/navtitle " ixia_locid="7">Performing reading tasks</navtitle>
        <linktext class="- map/linktext " ixia_locid="8">Performing reading tasks</linktext>
        <shortdesc class="- map/shortdesc ">Whether dictating with online speech recognition,
            digital dictation, or typing reports, you report on studies by way of reading tasks.
            A single reading task can contain one or more studies for which you create a single
            report.</shortdesc>
    </topicmeta>
</topicref>
<topicref class="- map/topicref " copy-to="second-axk1425415118966.xml" ixia_locid="11"
    keys="second-axk1425415118966" locktitle="yes" href="axk1425415118966.xml" type="task">
    <topicmeta class="- map/topicmeta ">
        <navtitle class="- topic/navtitle " ixia_locid="12">Arron Testing Copy-to and
            Locktitle</navtitle>
        <linktext class="- map/linktext " ixia_locid="13">Arron Testing Copy-to and
            Locktitle</linktext>
        <shortdesc class="- map/shortdesc ">Whether dictating with online speech recognition,
            digital dictation, or typing reports, you report on studies by way of reading tasks.
            A single reading task can contain one or more studies for which you create a single
            report.</shortdesc>
    </topicmeta>
    <topicref class="- map/topicref " copy-to="third-axk1425415118966.xml" ixia_locid="14"
        keys="third-axk1425415118966" locktitle="yes" href="axk1425415118966.xml" type="task">
        <topicmeta class="- map/topicmeta ">
            <navtitle class="- topic/navtitle ">Arron 2 Testing Copy-to and
                Locktitle</navtitle>
            <linktext class="- map/linktext " ixia_locid="16">Arron 2 Testing Copy-to and
                Locktitle</linktext>
            <shortdesc class="- map/shortdesc ">Whether dictating with online speech
                recognition, digital dictation, or typing reports, you report on studies by way
                of reading tasks. A single reading task can contain one or more studies for
                which you create a single report.</shortdesc>
        </topicmeta>
    </topicref>
</topicref>
<topicref class="- map/topicref " copy-to="fourth-axk1425415118966.xml" ixia_locid="14"
    keys="fourth-axk1425415118966" locktitle="yes" href="axk1425415118966.xml" type="task">
    <topicmeta class="- map/topicmeta ">
        <navtitle class="- topic/navtitle ">Arron 3 Testing Copy-to and
            Locktitle</navtitle>
        <linktext class="- map/linktext " ixia_locid="16">Arron 3 Testing Copy-to and
            Locktitle</linktext>
        <shortdesc class="- map/shortdesc ">Whether dictating with online speech
            recognition, digital dictation, or typing reports, you report on studies by way
            of reading tasks. A single reading task can contain one or more studies for
            which you create a single report.</shortdesc>
    </topicmeta>
</topicref>
Is this a bug or something we are doing wrong?

Thanks
Arron

radu_pisoi
Posts: 348
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Issue with copy-to on sub-topics with locktitles

Post by radu_pisoi » Wed Oct 09, 2019 12:04 pm

Hi,

I rather think this bug is related with the DITA-OT publishing engine where you have already recorded an issue:
https://github.com/dita-ot/dita-ot/issues/3372

As workaround, it seems you can remove the locktitle attribute from sub-topics, case when the value from parent element is used.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply