validate files within ePub

Oxygen general issues.
cgorton
Posts: 2
Joined: Thu Jan 20, 2011 6:06 pm

validate files within ePub

Post by cgorton »

I am aware that I can batch validate ePub's by adding them to a project and then using "validate all project files" to invoke the ePubCheck engine on all ePub's. But- is there a way to validate the individual files (especially xhtml files) within the ePub's? ePubCheck does a limited number of checks against these files, but I'd like each file's DTD to be used to check that file.
Thanks,
Craig
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: validate files within ePub

Post by adrian »

Hi,

Unfortunately, currently(v12.2) there is no way to batch validate the individual files from the EPUB file. We have considered that ePubCheck already covers the validation of all inner files.
Note however that you can validate them one by one by opening them in the editor and manually validating each one. But I'm guessing this isn't exactly what you were looking for.

I'll log this to our issue tracking tool as a feature request. This will be analyzed and if found appropriate it will be implemented in a future version of Oxygen.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
cgorton
Posts: 2
Joined: Thu Jan 20, 2011 6:06 pm

Re: validate files within ePub

Post by cgorton »

Thanks Adrian.

ePubCheck does some file-level checks, but does not "fully" check each file against its DTD. (I'm not an expert on this stuff, so forgive me if my terminology is incorrect.)

A lesser request would be for a way to validate all (or some) of the files within an archive. So, I open an ePub archive and choose "validate all archive files". Or, I select all the xhtml files and "validate selected."

Is there a way to do that without first unzipping the archive?

Thanks again,
Craig
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: validate files within ePub

Post by adrian »

Craig,

Unfortunately the only simple way to achieve this now(v12.2) is to unzip the archive. Then you can add the directory with the expanded files to the Project. Right click on the project root node(or another logical folder) and from the popup menu choose Add Folder and pick your folder.
Once added to the project, you can batch validate all the files(or selectively) by selecting them in the Project view, right clicking on the selection and choosing from the popup menu Validate > Validate.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply