Page 1 of 1

Additional <subjectHead> breaks <enumerationdef>

Posted: Wed Feb 15, 2023 7:28 pm
by Frank Ralf
Hi,

I have a subject scheme map that is currently only grouped with <subjectHead> elements. To be able to reference the groups in a <enumerationdef> I have wrapped them in additional <subjectdef> elements with a key. Strangely, the referencing on the <enumerationdef> does not work with this nested structure. Is that the expected behavior? Or am I missing something?

Best regards,
Frank

Does not work

Code: Select all

<subjectdef keys="version">
  <subjectHead navtitle="Version">
    <subjectdef keys="ver_A" />
    <subjectdef keys="ver_B"  />
  </subjectHead>
</subjectdef>
Works

Code: Select all

<subjectHead navtitle="Version">
  <subjectdef keys="version">
    <subjectdef keys="ver_A" />
    <subjectdef keys="ver_B"  />
  </subjectdef>
</subjectHead>

Code: Select all

<enumerationdef>
  <elementdef name="series" />
  <attributedef name="product" />
  <subjectdef keyref="version" />
</enumerationdef>

Re: Additional <subjectHead> breaks <enumerationdef>

Posted: Thu Feb 16, 2023 8:23 am
by Radu
Hi Frank,
Thanks for the report, I can reproduce the problem and added an internal issue to look into it, pasting the issue ID below for future reference:
EXM-52463 Subject def keys are not properly gather when extra subject heads are added
We'll update this thread once the problem is fixed.

Regards,
Radu

Re: Additional <subjectHead> breaks <enumerationdef>

Posted: Thu Feb 16, 2023 2:59 pm
by Frank Ralf
Hi Radu,

Thanks for looking into this!

Just for context and background: I want to reuse a Zoomin subject scheme in Oxygen like so:

Code: Select all

<subjectdef keys="version">
    <subjectHead conref="subjectscheme.xml#version" />
</subjectdef>
Interestingly, Zoomin allows a keys attribute on the <subjectHead> element which is against the DITA standard.

Code: Select all

<subjectdef keys="version-outer" navtitle="Version Outer">
  <subjectHead  keys="version-head" navtitle="Version Head">
    <subjectdef keys="ver_A" />
    <subjectdef keys="ver_B"  />
  </subjectHead>
  </subjectdef>
  
Best regards,
Frank

Re: Additional <subjectHead> breaks <enumerationdef>

Posted: Fri Mar 17, 2023 9:57 am
by Radu
Hi Frank,
As an update, Oxygen 25.1 should have a fix for this.
Regards,
Radu

Re: Additional <subjectHead> breaks <enumerationdef>

Posted: Fri Mar 17, 2023 11:39 am
by Frank Ralf
Hi Radu,

Many thanks for the fix. I will test this and report back.

Best regards,
Frank

Re: Additional <subjectHead> breaks <enumerationdef>

Posted: Fri Mar 17, 2023 5:30 pm
by Frank Ralf
The feature does work now as expected. Thanks, Radu!