Xrefs to Steps

Post here questions and problems related to editing and publishing DITA content.
jmorales
Posts: 93
Joined: Tue Oct 30, 2018 9:47 pm

Xrefs to Steps

Post 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!
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Xrefs to Steps

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jmorales
Posts: 93
Joined: Tue Oct 30, 2018 9:47 pm

Re: Xrefs to Steps

Post by jmorales »

Thanks, Radu.
Post Reply