Additional <subjectHead> breaks <enumerationdef>

Post here questions and problems related to editing and publishing DITA content.
Frank Ralf
Posts: 450
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Additional <subjectHead> breaks <enumerationdef>

Post 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>
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Additional <subjectHead> breaks <enumerationdef>

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 450
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Additional <subjectHead> breaks <enumerationdef>

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Additional <subjectHead> breaks <enumerationdef>

Post by Radu »

Hi Frank,
As an update, Oxygen 25.1 should have a fix for this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 450
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Additional <subjectHead> breaks <enumerationdef>

Post by Frank Ralf »

Hi Radu,

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

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 450
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Additional <subjectHead> breaks <enumerationdef>

Post by Frank Ralf »

The feature does work now as expected. Thanks, Radu!
Frank Ralf
parson AG
www.parson-europe.com
Post Reply