ID attribute for elements
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 8
- Joined: Mon Jan 14, 2013 6:28 pm
ID attribute for elements
I use Oxygen as a DITA/XML editor in a tech writing environment. We are automating the conversion of RoboHelp files to DITA via a script. I've noticed that Oxygen automatically assigns certain elements a random ID attribute, such as "choicetable_gtr_fnp_pm" -- this does not happen to all elements, and I'm not sure what the criteria is for assigning these.
More importantly, I'm not exactly sure why Oxygen assigns IDs to certain elements -- I'm guessing so that the element can be used in an xref? Is there any other reason?
I ask so that we know whether we should do the same when running our automatic conversion to DITA.
Thanks!
More importantly, I'm not exactly sure why Oxygen assigns IDs to certain elements -- I'm guessing so that the element can be used in an xref? Is there any other reason?
I ask so that we know whether we should do the same when running our automatic conversion to DITA.
Thanks!
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ID attribute for elements
Hi Jim,
Regards,
Radu
Yes, basically if elements have IDs they are easier to reuse using conrefs and to link to without the user needing to define IDs on them. This is controlled by a setting. If you open a DITA topic in Oxygen in the Author mode, in the DITA main menu you will have an entry called ID Options....I've noticed that Oxygen automatically assigns certain elements a random ID attribute, such as "choicetable_gtr_fnp_pm" -- this does not happen to all elements, and I'm not sure what the criteria is for assigning these.
More importantly, I'm not exactly sure why Oxygen assigns IDs to certain elements -- I'm guessing so that the element can be used in an xref? Is there any other reason?
I don't think it's necessary. Users can also define IDs when they need to link to certain elements.I ask so that we know whether we should do the same when running our automatic conversion to DITA.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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