Looking for a writer-friendly way to capture two-column data
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Looking for a writer-friendly way to capture two-column data
Post by chrispitude »
Hi everyone,
We have legacy ASCII content with "Data Type" sections like this:
This data type content is always two columns, with the second column being a "one-of-N" value of allowed data types.
I would like to convert this content to DITA. Since our writers are used to seeing this information in table form, I tried inserting a <simpletable> by pressing Enter, but interestingly the <strow> elements appear to be invisible in the Oxygen editor by default:
But then I decided that maybe the editing mechanics of tables, even <simpletable>s, is too complicated for such a simple case. For example, now the insertion or deletion of terms requires row manipulation.
Then I thought about making specializations of <dl>, <dlentry>, <dt>, and <dd>:
where I could constrain the allowed values of <dt-type> elements, and use CSS to show the names and types side-by-side as a pseudotable. But even this element structure seems overly complicated. And now I'm thinking maybe a specialization of <simpletable> is the better answer again...
Is there some other DITA element that lends itself well to two-column data entry that I should be considering here?
We have legacy ASCII content with "Data Type" sections like this:
Code: Select all
"Data Types"
from_list list
rise_from_list list
fall_from_list list
to_list list
rise_to_list list
fall_to_list list
minimum_slack float
maximum_slack float
group_name list
delay_type string
max_path_count integer
path_collection collection
I would like to convert this content to DITA. Since our writers are used to seeing this information in table form, I tried inserting a <simpletable> by pressing Enter, but interestingly the <strow> elements appear to be invisible in the Oxygen editor by default:
simpletable_insertion.gif
This seems to maybe be a bug or limitation. If I insert a <simpletable> via the Insert Table context action, then it is prepopulated with rows and entries, and everything is there.But then I decided that maybe the editing mechanics of tables, even <simpletable>s, is too complicated for such a simple case. For example, now the insertion or deletion of terms requires row manipulation.
Then I thought about making specializations of <dl>, <dlentry>, <dt>, and <dd>:
Code: Select all
<dt-list>
<dt-entry>
<dt-name>from_list</dt-name>
<dt-type>list</dt-type>
</dt-entry>
...
</dt-list>
Is there some other DITA element that lends itself well to two-column data entry that I should be considering here?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Looking for a writer-friendly way to capture two-column data
Hi Chris,
Simpletable (or a specialization of) seems like a good fit for me. With a stock Oxygen 23.1 installation when you press ENTER in the Author mode and choose "simpletable", it shows the table wizard dialog, so possibly your DITA framework customization somehow removed our action for inserting a simple table from the content completion window. Also we do not show tags for table rows, so if you have a table with rows but without cells inside rows, they are not visible in the Author mode until you add some cells there.
Other than that, maybe another option if you want something simpler is to use a DITA codeblock and paste the entire thing there.
Regards,
Radu
Simpletable (or a specialization of) seems like a good fit for me. With a stock Oxygen 23.1 installation when you press ENTER in the Author mode and choose "simpletable", it shows the table wizard dialog, so possibly your DITA framework customization somehow removed our action for inserting a simple table from the content completion window. Also we do not show tags for table rows, so if you have a table with rows but without cells inside rows, they are not visible in the Author mode until you add some cells there.
Other than that, maybe another option if you want something simpler is to use a DITA codeblock and paste the entire thing there.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Looking for a writer-friendly way to capture two-column data
Post by chrispitude »
Hi Radu,
This is strange. Even after deleting my Oxygen user settings at
C:\Users\<user>\AppData\Roaming\com.oxygenxml
and creating a fresh Oxygen project, the Insert Table operation in the context menu takes me to the Insert Table wizard, but pressing Enter and choosing table/simpletable does not. Maybe I can try reinstalling Oxygen v23.1 and see if that changes anything.
This is strange. Even after deleting my Oxygen user settings at
C:\Users\<user>\AppData\Roaming\com.oxygenxml
and creating a fresh Oxygen project, the Insert Table operation in the context menu takes me to the Insert Table wizard, but pressing Enter and choosing table/simpletable does not. Maybe I can try reinstalling Oxygen v23.1 and see if that changes anything.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Looking for a writer-friendly way to capture two-column data
Hi Chris,
If you remember this issue:
EXM-47603 Content completion "Replacement for" field does not work in the case of Relax NG based DITA topics
that we added based on your other feedback, it turns out we used the "Replacement for" field in the base DITA framework to replace the DITA "table" content completion item with the table wizard action. And it does not work in 23.1 for RNG based DITA topics.
We fixed EXM-47603 internally and after it is tested it will get incorporated into the next 23.1 minor bug fix release. We'll let you know when a fix is available.
Regards,
Radu
If you remember this issue:
EXM-47603 Content completion "Replacement for" field does not work in the case of Relax NG based DITA topics
that we added based on your other feedback, it turns out we used the "Replacement for" field in the base DITA framework to replace the DITA "table" content completion item with the table wizard action. And it does not work in 23.1 for RNG based DITA topics.
We fixed EXM-47603 internally and after it is tested it will get incorporated into the next 23.1 minor bug fix release. We'll let you know when a fix is available.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Looking for a writer-friendly way to capture two-column data
Post by chrispitude »
Ah ha, mystery solved! Thanks Radu.
No urgency from our side.

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