On 06/21/2016 04:33 PM, Thomas Dumm wrote:
I have an XSLT question where I did not find a solution by searchig the web. In case you can „just type down“ the solution to the question, I would be very happy ☺ I am loooking fort he following xslt to get rid of 2 common unsemantic word formattings: xslt to convert full bold paragraphs to headings: <p><b>xxx yyy </b></p> —> <h6 class=„BOLD">xxx yyy </h6> xslt to convert lists that contain only one item to headings: <ul><li>xxx yyy</li></ul> —> <h6 class=„LIST">xxx yyy</h6> <ol><li>xxx yyy</li></ol> —> <h6 class=„LIST">xxx yyy</h6>
This question is about XSLT and not about our product. Please do not send this kind of question to this mailing list.
I would recommend in the future to consider modifying (that is, tidying up) the source DOCX document using MS-Word prior to running w2x.
Case 1) Add a custom heading style to the corresponding DOCX paragraphs. Case 2) Add numbering to the corresponding DOCX headings.This being said, please find attached to this email an XSLT file which should implement what you want. Note that I have not tested attached XSLT file.
fixes1.xslt
Description: application/xslt
-- XMLmind Word To XML Support List [email protected] http://www.xmlmind.com/mailman/listinfo/w2x-support
