That plugin isn’t using JATS Preview stylesheets. It transforms JATS XML to XML and PDF on the fly - they are only displayed on the front-end. The usage is simple, to upload JATS XML to the Galleys (Production Stage) and publish it. For HTML transformation it uses own library, in short, the data are transformed to plain PHP objects and then to PHP DOM. As for PDF transformation, it is based on TCPDF library.
The plugin doesn’t upload generated files as a galleys, it only displays them. I’ve done in deliberately to emphasize that they are just copies of original JATS XML.
If you experience problems, I’m happy to help. Can you describe the problem in more details? What is your current OJS 3 version? When you clicking on XML galley from the user side, is file being displayed or the system simple uploads it? Are there any relevant information in PHP logs?
While converting other xml it’s showing error TCPDF ERROR: Wrong page number on setPage() function: 0.
By default it’s showing notices for every compilation-
PHP Notice: Undefined offset: 0 in /home/rajesh/Desktop/JATS/JATSParser-master/vendor/tecnickcom/tcpdf/tcpdf.php on line 17529
PHP Notice: Undefined offset: 0 in /home/rajesh/Desktop/JATS/JATSParser-master/vendor/tecnickcom/tcpdf/tcpdf.php on line 17982
One more question, Using this plugin it can be generate html with TOC(Nav) or not.
Can you share some sample code to save html with generic style sheet.?