Dear list, Here is what I consider as a bug in w2x, a really nice tool! When I convert my documents into DocBook, I saw that I lost line feeds in code area (those that are transformed into <pre> in HTML). After quite a while, I eventually found that the culprit is in the DocBook style sheet: the line feeds are converted into <br/>s after the XED scripts, and the XSLT style sheet gets rid of them. My fix is thus rather simple:
<xsl:template match="h:br">
<xsl:text>
</xsl:text>
</xsl:template>
Maybe this could be made better by only having line feeds (i.e. 
) if
within <programlisting> and similar tags. I attach a sample DOCX file for
those willing to reproduce the thing (and this file was generated by XFC --
yes, I'm working on a round-trip solution between DocBook and DOCX).
I hope this could be included in some next version of w2x!
Thibaut Cuvelier
CPLEX.docx
Description: MS-Word 2007 document
-- XMLmind Word To XML Support List [email protected] http://www.xmlmind.com/mailman/listinfo/w2x-support
