Reuse a range from a reusable component does not work

Having trouble installing Oxygen? Got a bug to report? Post it all here.
antoterrence
Posts: 30
Joined: Sat May 04, 2019 5:55 pm

Reuse a range from a reusable component does not work

Post by antoterrence »

When I try to reuse a range from a reusable component, it does not work. The range appears as a single step and all cmd elements from the steps within the range is nested under that one single step.

Code: Select all

<step conref="reuse.dita#ReusableComponent_shc_vfl_g3b/a"
                conrefend="reuse.dita#ReusableComponent_shc_vfl_g3b/b">
                <cmd/>
            </step>
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reuse a range from a reusable component does not work

Post by Radu »

Hi,

Can you also paste in a reply the entire content of the "reuse.dita"?
If the "reuse.dita" was created using Oxygen's "Create reusable component" action, the generated DITA file was intended to store only one reusable component per file. If so you can manually create your own DITA task containing the reusable steps and save it as "reuse.dita".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
antoterrence
Posts: 30
Joined: Sat May 04, 2019 5:55 pm

Re: Reuse a range from a reusable component does not work

Post by antoterrence »

My bad. I panicked and asked this question. Sorry about it. I didn't realize when a range of steps is reused, it has the following structure:

Code: Select all

<step conref="" conrefend="">
<cmd/>
<cmd/>
</step> 
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reuse a range from a reusable component does not work

Post by Radu »

Hi,

I'm sorry but I do not understand, a <step> with two <cmd>s inside is invalid. You need multiple <step>s inside a <steps> element, you need to mark the first step with and @id attribute, set an @id also on the last reused step and then insert the conref range.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply