Is there a list to show what XHTML tags and CSS attributes are supported by docx4j XHTML importer?
Thanks.
Is there a list to show what XHTML tags and CSS attributes are supported
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
*Disclosure: I wrote the docx4j code in question *
There is no definitive list. However, there is support for at least:
There is no support for font color right now, nor u (underline).
Support is a 2 phase affair:
Flying Saucer (XHTMLRenderer) needs to support it
FS supports pretty much all of CSS 2.1; see What_XHTML CSS_features_does_Flying_Saucer_currently_support
docx4j needs to convert the relevant Flying Saucer construct to WordML
If in doubt, just try it on the XHTML of interest to you.