sumanthonnavar Posted July 20, 2017 Share Posted July 20, 2017 Hi All,As JRXhtmlExporter is deprecated, I was suggested to use HtmlExporter. Please help me to export the report in XHTML using HtmlExporter class.Thanks in advance,Sumanth Link to comment Share on other sites More sharing options...
darth_fader Posted July 20, 2017 Share Posted July 20, 2017 I don't expect there is direct support for xhtml via the HtmlExporter. As an alternative, you could export to XML (JRXmlExporter) and use an XSLT processor to get the XHTML output you're looking for. Converting from HTML output to XHTML could be more problematic and have less consistent results.According to Jaspersoft:The XhtmlExporter class "is subject to font metric mismatches between client browsers, which can result in text being cut off." I'm assuming this is why they've deprecated the XhtmlExporter. It's rarely a good idea to use deprecated classes; it implies it will be desupported/removed altogether in future releases. Link to comment Share on other sites More sharing options...
hozawa Posted July 21, 2017 Share Posted July 21, 2017 Another reason may be that XHTML does not support HTML5 yet.>In 2009, the W3C allowed the XHTML 2 Working Group's charter to expire, acknowledging that HTML5 would be the sole next-generation HTML standard, including both XML and non-XML serializations.https://en.wikipedia.org/wiki/XHTML Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now