Basic Question-XML/DTD

Questions about XML that are not covered by the other forums should go here.
jumblerr
Posts: 1
Joined: Wed Apr 25, 2012 6:53 pm

Basic Question-XML/DTD

Post by jumblerr »

Hello,

I have downloaded the trial version of XML Editor.

All I am trying to accomplish is to take a Word document file (.docx) and create an xml file that conforms to a certain DTD. The myriad of choices in the Editor is confusing me.

How would I do this? The videos don';t seem to clarify this too well.

Thanks so much!!
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Basic Question-XML/DTD

Post by adrian »

Hello,

Currently(v13.2) Oxygen does not provide a specialized (wizard-like) import from Word document files (.docx).
However, there are at least two generic means of importing content from Word documents into Oxygen:

1. You can copy content directly from Word (the application) and paste it in Oxygen in the Author mode. Here's a video demonstration showcasing this:
Smart Paste: Copy/Paste from Web and Office Documents to DITA, DocBook, TEI, XHTML Documents

2. You can apply an XSLT stylesheet on the inner document.xml from inside the .docx document. There's a video demonstration for this as well:
Extract from Word

Let us know if you need additional assistance.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
xmluser
Posts: 2
Joined: Sat Jan 11, 2020 2:39 am

Re: Basic Question-XML/DTD

Post by xmluser »

Screen Shot 2020-01-10 at 3.44.44 PM.png
Screen Shot 2020-01-10 at 3.44.44 PM.png (153.59 KiB) Viewed 1534 times
HI, my Word document imports fine, but when I click transformation scenarios to DOCxDITA, it gives me an error that says no protocol for ditamap. Can anyone please advise on how to get the ditamap to work when I import the Word doc? Thanks! Image
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: Basic Question-XML/DTD

Post by Radu »

Hi,

This particular Word to DITA conversion you are using is based on the DITA For Publishers plugins created by Eliot Kimber and we are not very familiar with them:

http://www.dita4publishers.org/d4p-user ... lugin.html

Maybe in the case of your particular Word document the conversion does not manage to produce a DITA Map. You can try to look inside the "out" folder located near the docx file to see what the conversion managed to produce.
As an alternative we have an Oxygen Batch Converter add-on which can generate a DITA topic from one or more Word documents:

https://github.com/oxygenxml/oxygen-resources-converter

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply