Setting up a URL as a variable in a map

Post here questions and problems related to editing and publishing DITA content.
matt_k
Posts: 45
Joined: Mon Aug 17, 2020 7:16 pm

Setting up a URL as a variable in a map

Post by matt_k »

Hi there

We have a series of maps that reuse a large amount of shared content.

One of the topics contains conrefs to some shared content, one of which has a paragraph with an xref to our website. What we would like to do is is set up a variable in each map with a unique xref to a different page in each map.

For example map A should have an xref to www.xyz.com/first_page and map B would have an xref to www.xyz.com/second_page, and so on.

I know that it is not possible to add an xref to a keydef, but I wondered if there is another way to do this.

The paragraph in question reads: "This is available on each product webpage, accessible from the products webpage." - products webpage contains the xref.

If you have any questions, please let me know.

Many thanks

Kind regards

Matt
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Setting up a URL as a variable in a map

Post by Radu »

Hi Matt,

I would probably prefer to do this with an <xref keyref> as you mentioned.
You could also do this with profiling conditions like:

Code: Select all

<p> check this link out <xref href="a.html" scope="external" product="map1"/><xref href="b.html" scope="external" product="map2"/></p>
and apply various profiling attributes depending on the published DITA Map.
Or with conref and again profiling filters..

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
matt_k
Posts: 45
Joined: Mon Aug 17, 2020 7:16 pm

Re: Setting up a URL as a variable in a map

Post by matt_k »

Thanks Radu, I used profiling attributes for each link.
Post Reply