Ways of expressing subscripted variable names in DITA?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 5
- Joined: Tue Nov 29, 2016 3:38 pm
Ways of expressing subscripted variable names in DITA?
Attempts at naming variables using subscripts will fail. Using TeX notation for illustration, the idea is that X_3 or t_P or TEMP_{hazard} are names of single objects, and I want to represent that in DITA.
and I digress.)
Are there different element types in DITA for me to use, other than resorting to MathML (which I am considering), that users of DITA could kindly suggest? Something that does permit <sub>. My current workaround is introducing <varname> elements in more places than I'd like to, as the single variables do not refer to objects, thus
Code: Select all
<varname>X<sub>3</sub></varname>
The failure is formally expected, and formally correct. Arguably, the DITA model does not reflect subscripted names as meaningful units. (Eventually, the model subsumes <sub> under typography, and what has typography got to do with variable names - I speculateInvalid content was found starting with element 'sub'...

Are there different element types in DITA for me to use, other than resorting to MathML (which I am considering), that users of DITA could kindly suggest? Something that does permit <sub>. My current workaround is introducing <varname> elements in more places than I'd like to, as the single variables do not refer to objects, thus
Code: Select all
<equation-inline><varname>t</varname><sub><varname>P</varname></sub></equation-inline>
<equation-inline><varname>TEMP</varname><sub><keyword>hazard</keyword></sub></equation-inline>
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Ways of expressing subscripted variable names in DITA?
Hi,
Other than what you are doing right now I'm not sure what's the best approach. How about not using <varname> at all or using <b> instead of <varname>?
You could also try to register on the DITA Users List (Yahoo Groups) and ask there, maybe you'll get better feedback from the community.
Regards,
Radu
Other than what you are doing right now I'm not sure what's the best approach. How about not using <varname> at all or using <b> instead of <varname>?
You could also try to register on the DITA Users List (Yahoo Groups) and ask there, maybe you'll get better feedback from the community.
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