Word to Oxygen conversion mapping - element hierarchy definition issues

Post here questions and problems related to oXygen frameworks/document types.
rumba7
Posts: 2
Joined: Wed Sep 11, 2024 6:42 pm

Word to Oxygen conversion mapping - element hierarchy definition issues

Post by rumba7 »

Hi everyone,
I'm new to Oxygen.

I'm currently testing the Word to DITA conversion feature.
The current issues I'm having:
- All numbered list items are numbered as Step 1. I see there is some default mapping of ordered lists to ol > li:fresh and I haven't added any custom mapping.

- If there is a code example inside a numbered list item, Oxygen parses the list and the code example as independent elements, so that instead of having:
<ol>
<li>Lorem ipsum
<pre>Code example goes here<pre>
</li>
</ol>

I get:
<ol>
<li>Lorem ipsum
</li>
</ol>
<pre>Code example goes here</pre>

In the mapper I've tried mapping the Word Code style to "ol | ul > li > pre" but the mapper throws an error.

Please, advise what is the right way to resolve the 2 issues I've mentioned.

Thank you in advance!
Cosmin Duna
Site Admin
Posts: 123
Joined: Wed Dec 12, 2018 5:33 pm

Re: Word to Oxygen conversion mapping - element hierarchy definition issues

Post by Cosmin Duna »

Hi,
Could you please attach or send us a small Word sample where these issues can be reproduced? You can send it to support@oxygenxml.com.
For the first issue, are these items part of the same list in the Word document, or are they part of different lists with custom starting numbers?
For the second issue, we need a Word sample to reproduce the problem and provide you with accurate advice.

Best regards,
Cosmin
Cosmin Duna
<oXygen/> XML Editor
http://www.oxygenxml.com
rumba7
Posts: 2
Joined: Wed Sep 11, 2024 6:42 pm

Re: Word to Oxygen conversion mapping - element hierarchy definition issues

Post by rumba7 »

Hi Cosmin,
I hope you are doing well.
Thank you for your response and suggestions!
I'll send a sample document to the specified email address.

My Best Regards,
Roman
Cosmin Duna
Site Admin
Posts: 123
Joined: Wed Dec 12, 2018 5:33 pm

Re: Word to Oxygen conversion mapping - element hierarchy definition issues

Post by Cosmin Duna »

Hi Roman,
Thank you for the sample and for reporting this problem.
I looked into this and it seems to be a problem with the merging strategy applied when list items have other paragraphs between them.
I managed to fix it and sent you a night build of the add-on on email.

I will update this thread when we release a new add-on version that includes this fix.

Best regards,
Cosmin
Cosmin Duna
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply