Page 1 of 1

Reuse a range from a reusable component does not work

Posted: Mon Jul 01, 2019 8:57 am
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>

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

Posted: Mon Jul 01, 2019 12:02 pm
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

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

Posted: Thu Jul 04, 2019 2:02 am
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> 

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

Posted: Thu Jul 04, 2019 8:49 am
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