Create DITA content with multiple same conkeyrefs

Post here questions and problems related to editing and publishing DITA content.
taruga
Posts: 5
Joined: Thu Oct 05, 2017 5:20 am

Create DITA content with multiple same conkeyrefs

Post by taruga »

We would like to create DITA content with conkeyref.
conkeyref defines several identical keys,
For example, I would like to control which keys are referred to by filtering with keys such as ditavalref.

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
<booktitle>
<mainbooktitle>Autoring Test</mainbooktitle>
</booktitle>
<frontmatter>
<ditavalref href="ja.ditaval"/>
<topicref keys="IMG" targetDestination="ja" href="cImageDefinition-ja.dita"/>
<topicref keys="IMG" targetDestination="en" href="cImageDefinition-en.dita"/>
</frontmatter>
<chapter navtitle="Image Authoring Test">
<topicref href="cImageAuthoringTest.dita" format="dita"/>
</chapter>
</bookmap>
In the case of inserting an element to be referenced by selecting a key to be reused from the GUI of oXygen,
We seems it is useful to use the Reuse Content window or the DITA Reusable Components view.
However, if more than one same conkey ref key is defined, the Reuse Content window will only refer to the previously defined key.
In the Components tab of the DITA Reusable Components view, all the keys are displayed.

After defining multiple conkeyrefs of the same key, we want to distinguish which key to use,
for example in a way like ditavalref, and display only one of the keys in these views.

ditavalref does not have to be used necessarily.
It is not necessary to use Reuse Content window or DITA Reusable Components view only. We can also use other UI.

Is there a way to display only one of the keys in these views?
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Create DITA content with multiple same conkeyrefs

Post by Radu »

Hi Aruga,

Oxygen does not use ditalref information when gathering keys from the DITA Map. You can specify more than one ditavalref element inside a topicref and this in effect branches the publishing but on the editing side it would be quite unclear how to present keys if for example in the frontmatter you would do this:

Code: Select all

<frontmatter>
<ditavalref href="ja.ditaval"/>
<ditavalref href="en.ditaval"/>
.......
We do have something called "Profiling condition sets".
In the Oxygen Preferences->Editor / Edit Modes / Author / Profiling/Conditional Text page there is a "Profiling Condition Sets" table. You can add a new profiling condition set there are refer to a DITAVAL file from it.
Then if the main DITA Map is opened in the DITA Maps Manager view, there is a funnel-shapped drop down button on the toolbar which allows you to apply a profiling condition set. Oxygen will start gathering keys and presenting based on that applied filter. You can create more than one profiling condition sets, for example one for Japanese and one for English.

https://www.oxygenxml.com/doc/versions/ ... l-set.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
taruga
Posts: 5
Joined: Thu Oct 05, 2017 5:20 am

Re: Create DITA content with multiple same conkeyrefs

Post by taruga »

Hi Radu,

Thank you for your quick reply.
* I forgot to write a greeting in my previous sentence. Sorry.

oXygen Editor is wonderful!
Our problem is solved by "Profiling Condition Sets".
Thank you very much.

Aruga
Post Reply