Page 1 of 1

Xrefs to Steps

Posted: Sat Jul 31, 2021 12:04 am
by jmorales
Hi,
We would like to be able to write things like "Repeat steps 3 through 5," and have the numbers updated automatically if someone adds or removes a step to the task later. We get part of this behavior by using an xref that refers to a step by its ID, as described in https://www.oxygenxml.com/dita/stylegui ... mbers.html. However, this creates an actual clickable xref. Our editors feel that a clickable hyperlink within a topic is overkill. Is there some way to refer to steps, so that the step number updates automatically, without them being clickable hyperlinks? That is,

"Repeat steps 3 through 5"
instead of
"Repeat steps 3 through 5"

Thanks!

Re: Xrefs to Steps

Posted: Mon Aug 02, 2021 6:28 am
by Radu
Hi,

For what output format type do you want this?
Maybe you can add an extra "outputclass" attribute on those xrefs with a certain value, then if for example producing HTML or CSS-based PDF, that outputclass value can be matched in the CSS.
Maybe something like:

Code: Select all

.notLink {
  color: #FFFFFF;
  text-decoration: none;
}
For the PDF produced using XSL-FO maybe again use a custom outputclass attribute value, then with a plugin add an XSLT customization which has xsl:templates matching such elements and changing their style by producing fo:inline instead of fo:link elements.

Regards,
Radu

Re: Xrefs to Steps

Posted: Mon Aug 02, 2021 6:05 pm
by jmorales
Thanks, Radu.