stepsection resets numbering for xref

mdslup
Posts: 157
Joined: Tue Mar 06, 2018 1:34 am

stepsection resets numbering for xref

Post by mdslup » Tue Feb 23, 2021 11:24 pm

Using Oxygen 22.1. In a task topic, I have a table at the top with step numbers. These step numbers are xrefs that link to steps with IDs in the same file. The xref just displays the step number, which is what I want.

However, putting in a stepsection causes this numbering to reset. Is this a known bug?

Radu
Posts: 7538
Joined: Fri Jul 09, 2004 5:18 pm

Re: stepsection resets numbering for xref

Post by Radu » Wed Feb 24, 2021 8:18 am

Hi,

Can you paste maybe a small sample DITA task as an example?
Also please tell us if this is a problem related to editing (and how Oxygen computes link texts in the Author visual mode) or to publishing (and to what output format).

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

EvanHOlson
Posts: 1
Joined: Tue Mar 29, 2011 12:39 am

Re: stepsection resets numbering for xref

Post by EvanHOlson » Thu May 20, 2021 1:58 am

I'm getting the same issue. I am using the Mac version of Oxygen Author v23.1.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="stepsection_example">
	<title>Test Task</title>
	<prolog>
		<metadata>
			<prodinfo>
				<prodname>Product Name</prodname>
				<vrmlist>
					<vrm modification="Issue 1, Month Year" version="Release X.X.X"/>
				</vrmlist>
				<prognum>0000-0000-000</prognum>
			</prodinfo>
		</metadata>
	</prolog>
	<taskbody>
		<context>
			<p>This is an example of stepsection messing up cross references.</p>
		</context>
		<steps id="steps_jst_qz1_rpb">
			<step id="step_01">
				<cmd>First step.</cmd>
			</step>
			<step id="step_02">
				<cmd>Second step. The following is a link to Step 3 but the stepsection causes the links to reset at Step 1. Refer to <xref href="#stepsection_example/step_03"/>.</cmd>
			</step>
			<stepsection>We call stepsection elements "Procedural Notes".</stepsection>
			<step id="step_03">
				<cmd>Third step.</cmd>
			</step>
			<step id="step_04">
				<cmd>Fourth step.</cmd>
			</step>
			<step id="step_05">
				<cmd>Fifth step.</cmd>
			</step>
		</steps>
	</taskbody>
</task>

Radu
Posts: 7538
Joined: Fri Jul 09, 2004 5:18 pm

Re: stepsection resets numbering for xref

Post by Radu » Thu May 20, 2021 8:05 am

Hi Evan,

Thanks for the sample, all clear for me now. I added an internal issue and we'll update this forum thread when the issue is fixed.

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

Post Reply