conref for navtitle

MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

conref for navtitle

Post by MyMoon » Tue Jul 16, 2019 12:25 pm

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: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: conref for navtitle

Post by Radu » Tue Jul 16, 2019 2:53 pm

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 » Wed Jul 17, 2019 4:11 pm

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: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: conref for navtitle

Post by Radu » Thu Jul 18, 2019 7:50 am

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 » Thu Jul 18, 2019 11:52 am

Thanks!

Post Reply