View Full Version : Error when checking with ePub-Checker


gers1978
06-04-2013, 06:34 AM
I get the following error for every HTML document when using pagina EPUB-Checker (which uses ePubChecker 3.0.1):

ERROR: <book name>.epub/ops/xhtml/halftitle2.html(7,108): non-standard stylesheet resource 'ops/styles/page-template.xpgt' of type 'application/vnd.adobe-page-template+xml'. A fallback must be specified.

The HTML files look like:


<link href="../Styles/9781439100516.css" rel="stylesheet" type="text/css" />
<link href="../Misc/page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml" />.

FlightCrew reports no problems and neither does the web site http://validator.idpf.org/application/validate, which I believe uses ePubChecker 3.0.

If I use the Calibre plugin "Modify ePub" and choose "Remove Adobe .xpgt files and links", the resulting ePub now validates perfectly in all tools used.

DaleDe
06-04-2013, 04:42 PM
I would suggest you try the techniques list on this link. http://www.hxa.name/articles/content/epub-guide_hxa7241_2007.html

Define the CSS to include the selector shown and see if this resolves the problem. See section 3.

Dale

JSWolf
06-05-2013, 11:29 AM
Use of page-template.xpgt is non-standard and is an Adobe extension to ADE. The solution is to dump page-template.xpgt and the references to it. Set your margins in CSS and you'll be OK.

richam79@
06-07-2013, 07:45 AM
Hi,

Please help me to resolve this issue. New validator gives this error non-standard stylesheet resource 'OPS/xhtml/page-template.xpgt' of type 'application/vnd.adobe-page-template+xml'. A fallback must be specified.

If I remove this line from Html file the the final does not look good in ADE.

Please help.

Jellby
06-07-2013, 08:12 AM
Re-code whatever you had in the xpgt file in the standard CSS, or ignore the error.

richam79@
06-08-2013, 07:02 AM
Should I copy paste code from xpgt file to css? Please guide.

DaleDe
06-08-2013, 11:43 AM
Should I copy paste code from xpgt file to css? Please guide.

did you try the method I pointed you to in my response? You need a selector I think. You should try it before you give up.

Dale

JSWolf
06-08-2013, 05:52 PM
Should I copy paste code from xpgt file to css? Please guide.

Nope. You code the margins as standard margin code in the CSS.

richam79@
06-12-2013, 02:10 AM
Hi Dale,

Please guide me how to select a selector? I am unable to do so.

Regards,
Richa

"Did you try the method I pointed you to in my response? You need a selector I think. You should try it before you give up."

DaleDe
06-12-2013, 11:42 AM
Looking over your work I think the ePubcheck 3.01 is at fault. It is calling an error when it should be calling it a warning. This is not the only thing that ePubcheck calls an error when it should be a warning.

Dale

Achilles77
06-12-2013, 10:55 PM
According to what I read this is a bug in 3.01 based upon http://code.google.com/p/epubcheck/issues/detail?id=271

I've got some experts working on this problem and I'll let you know what they come up with in 24-48 hours.

Achilles77
06-12-2013, 10:58 PM
Check out http://code.google.com/p/epubcheck/issues/detail?id=271.

JSWolf
06-13-2013, 04:24 PM
But when this error in epubcheck 3.0.1 is fixed, please have it flag that there is a page-template file. I don't want one and if it's there, I'll delete it. So having it flag that I forgot to delete it is a good thing.