conref for navtitle

Post here questions and problems related to editing and publishing DITA content.
MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

conref for navtitle

Post by MyMoon »

Hi!
Please, help.
How to use conref for navtitle? It's just a syntax, I hope...

Code: Select all

    <chapter navtitle="conref="r_00_routines_list.dita#r_00_routines_list/csaa100_desc_ru""> 
doesn't work, of course. I need some proper.

Regards,
Dmitry
Radu
Posts: 9045
Joined: Fri Jul 09, 2004 5:18 pm

Re: conref for navtitle

Post by Radu »

Hi Dmitry,

In general, you cannot use conrefs to reuse attribute values. The only way to do this is with entity references which is not the "DITA" way of doing things.
In this particular case, actually the @navtitle attribute is kind of deprecated, the DITA specification recommends using the <navtitle> element instead:

Code: Select all

    <chapter href="topics/installing.dita" locktitle="yes">
        <topicmeta>
            <navtitle>some content</navtitle>
        </topicmeta>
and because it's an element it can use the @conref attribute.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

Re: conref for navtitle

Post by MyMoon »

Thanks, Radu!
But what to do, if I need the "empty" heading, just to name the chapter?

Code: Select all

    <title>Regulated Rates </title>
    <topicref href="atfa290_taxas_regulamentadas.dita"> </topicref>
    <topicref href="atfa290_opcao_importar.dita"> </topicref>
    <topicref href="atfa290_opcao_exportar.dita"> </topicref>
    <topicref navtitle="Technical Data (or some dynamic heading from conref)">
        <topicref href="atfa290_tabelas.dita"> </topicref>
    </topicref>
Radu
Posts: 9045
Joined: Fri Jul 09, 2004 5:18 pm

Re: conref for navtitle

Post by Radu »

Hi,

About the same as above:

Code: Select all

<topicref>
        <topicmeta><navtitle>Technical Data (or some dynamic heading from conref)</navtitle></topicmeta>
        <topicref href="atfa290_tabelas.dita"> </topicref>
    </topicref>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

Re: conref for navtitle

Post by MyMoon »

Thanks!
Post Reply