Xrefs to Steps
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 93
- Joined: Tue Oct 30, 2018 9:47 pm
Xrefs to Steps
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!
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!
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Xrefs to Steps
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:
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
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;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service