Word to DITA- image names and alt text
Posted: Thu May 15, 2014 9:43 pm
Hi,
Hopefully I have the correct forum group. I'm working on converting a Word .docx document into XML. I followed the instructions by Radu at http://www.oxygenxml.com/forum/post28564.html#p28564 which have been very helpful. I have two questions about getting image info converted correctly:
1) After opening my Word document and viewing the document.xml file via the Archive Browser I see the following entry for an image and the alt text that I input into the Word doc:
<wp:docPr id="249" name="Picture 1" descr="Content Rating Description" title="Content Rating title"/>
After running the DOCX DITA transform the topic has:
<image href="media/image1.png"><alt>media/image1.png</alt></image>
So it doesn't keep the alt title that I had.
I noticed C:\Program Files (x86)\Oxygen XML Editor 15\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\simple2dita.xsl file has this entry which is what I assume I'll need to update, I just don't know what to update it to:
<image href="{$imageUrl}">
<alt><xsl:sequence select="$imageUrl"/></alt>
</image>
Anyone know what I should change this to?
2) Is there a way to get more meaningful names assigned to pictures? In the media folder they are all called image1.png etc. I looked in Word to figure out how to name them but couldn't find anything. We can just manually update them in the folder but was curious if someone had found a way in Word.
Thanks,
Belinda
Hopefully I have the correct forum group. I'm working on converting a Word .docx document into XML. I followed the instructions by Radu at http://www.oxygenxml.com/forum/post28564.html#p28564 which have been very helpful. I have two questions about getting image info converted correctly:
1) After opening my Word document and viewing the document.xml file via the Archive Browser I see the following entry for an image and the alt text that I input into the Word doc:
<wp:docPr id="249" name="Picture 1" descr="Content Rating Description" title="Content Rating title"/>
After running the DOCX DITA transform the topic has:
<image href="media/image1.png"><alt>media/image1.png</alt></image>
So it doesn't keep the alt title that I had.
I noticed C:\Program Files (x86)\Oxygen XML Editor 15\frameworks\dita\DITA-OT\plugins\net.sourceforge.dita4publishers.word2dita\xsl\simple2dita.xsl file has this entry which is what I assume I'll need to update, I just don't know what to update it to:
<image href="{$imageUrl}">
<alt><xsl:sequence select="$imageUrl"/></alt>
</image>
Anyone know what I should change this to?
2) Is there a way to get more meaningful names assigned to pictures? In the media folder they are all called image1.png etc. I looked in Word to figure out how to name them but couldn't find anything. We can just manually update them in the folder but was curious if someone had found a way in Word.
Thanks,
Belinda