Thomas D. wrote:

Close inspection revealed problems with the otherwise elegant docx ->
dita map -> epub conversion:

-Paragraphs are inside <div class="p"> instead of <p>.

-I get lots of div elements (around subchapters, around tables, around
images).

*I would like to end with an epub that has no <div> tags. How do I get
this result?*

Sorry but there is no (practical) way to change this. (The culprit here is ditac, that is, XMLmind DITA Converter, not W2X).





Currently I have:

/Tools/w2x-eval-1_1_0/bin/w2x -v -p edit.prune.preserve
"p-ProgramListing" -p edit.inlines.convert " c-Code code ! c-Abbrev abbr
" -p edit.blocks.convert "p-Term dt g:id='dl' g:container='dl' !
p-Definition dd g:id='dl' g:container='dl' ! p-ProgramListing span
g:id='pre' g:container='pre'" -p transform.root-topic-id impressum -p
transform2.topic-path map_topics -p transform2.section-depth 1 -o map
zz.docx zz.ditamap

/Tools/ditac-2_6_0/bin/ditac zz.epub  zz.ditamap


I'm sorry but I think you have a showstopper here. It seems that the "dita map -> epub" conversion generates XHTML which while valid, is not adapted to your needs.

You seem to need pure, simple, semantic XHTML, such as the one generated by "w2x -o xhtml1_1", simply you expect this XHTML to be packaged as an EPUB2 file.



--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to