I'm recently using the XHTMLImporterImpl to transform HTML into DOCX, and I meet a small problem, I'm not sure whether it is a small bug.
What I want is to convert some or all combination of bold, italic, underline, and strike into DOCX, but I failed in many cases.
For example, if I have a following string :
String xhtml="<b><i><u><s>2014</s></u></i></b>"; and if I convert this into DOCX, the third tag for underline, namely <u></u> will not be transformed into DOCX. However, if I remove the internal tag <s></s>, then everything will be OK. That is : Underline in <b><i><u>2011</u></i></b> can be converted.
And the same thing as <b><i><s><u>2014</u></s></i></b>, now in this case, also the third one, the strike style <s></s> can't be converted into DOCX. But without <u></u>, <b><i><s> can be converted.
Also by <u><s>2014</s></u>, the underline will be ignored after converting, but <s> remains. For <u>2014</u> and <s>2014</s>, nothing will happen in DOCX, instead <b>2014</b> and <i>2014</i> can be done into DOCX.
Maybe there are some other similar cases also containing the same problem, so I don't know why some styles are missing after the transformation into DOCX.
Thanks a lot