Hi Rajesh,

It would be something along the lines of unzipping the epub file with 
xdmp:zip-manifest and xdmp:zip-get (assuming no encryption and such), and then 
running code to apply xsd and xslt appropriately (which you’d have to provide 
yourself). There are many ways to do so, but a few lines in QC could already 
get you started.

If your aim is to thoroughly validate epub, I’d recommend 
https://github.com/IDPF/epubcheck, but that runs in Java. It does consistency 
checks that go beyond XSD validation..

For your interest, Norm Walsh created an epub reader app on top of MarkLogic a 
few years ago: https://github.com/ndw/epubreader

Cheers,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Rajesh Kumar <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Monday, November 21, 2016 at 8:05 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] validate epub file using XSD

Hi Team,

Is there any way to validate ePUB file using XSD in MarkLogic? and transfrom 
using XSLT?

Kindly let me know if there is any sample available.

Regards,
Rajesh
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to