Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2015, 09:47 AM   #1
ChuckH
Member
ChuckH began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2012
Location: NW Indiana
Device: iPad
iFrame not well-formed so doesn't pass ePubcheck

In my books I include a front matter section which lists my other books. I've been doing this with a plain old list, but I would like to use an iFrame to do this instead, since it will look nicer.

However, the iframe doesn't pass ePubcheck 3 (it says it is not well-formed). This really has me stumped. I've tried using a shortened URL from Google's URL shortening service to do this, and it works, but does not display the iFrame properly. I would appreciate any help you guys could offer on this, as to how to get the xhtml to be well-formed so it can pass epubcheck.

Here's the iframe content:

<iframe src="https://widgets.itunes.apple.com/widget.html?c=us&brc=FFFFFF&blc=FFFFFF&trc=FFFFFF& tlc=FFFFFF&d=Offered for Sale on the iBooks Store.&t=Books by Chuck Humbertson&m=ebook&e=ebook&w=325&h=370&ids=8426951 29,614718023,659890470,604012761,821462742,6425525 59,736639241,851008587,975864229,767351429,1020080 855,865892272,945325935,674999946,993170315,728952 369,667869073,1035526405,668573287,1049393933&wt=p laylist&partnerId=&affiliate_id=&at=1000l7AC&ct=" frameborder=0 style="overflow-x:hidden;overflow-y:hidden;width:325px;height: 370px;border:0px"></iframe>

Here it is with a shortened Google URL:

<iframe src="https://goo.gl/hpGy1P"></iframe>

Last edited by ChuckH; 11-10-2015 at 09:49 AM. Reason: Fixed URL.
ChuckH is offline   Reply With Quote
Old 11-10-2015, 03:16 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Mmm, possibly, now here's a thought -- the iframe itself is the problem?

I would really advise you not to use iframes.
It'll probably work -- in apps that simply embed webkit.
But elsewhere (as in most places)?

Why, exactly, do you say an iframe looks nicer? What about it is "nicer"?


Also, that will only work when a device is connected to the internet, which might make people slightly peeved. You know, the general idea of making content only available through live streaming?

Last edited by eschwartz; 11-10-2015 at 03:19 PM.
eschwartz is offline   Reply With Quote
Advert
Old 11-10-2015, 03:20 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Are the lines wrapping themselves or are you doing it? Let them wrap on their own. While it won't matter for this error you should also make p laylist into playlist.

Dale
DaleDe is offline   Reply With Quote
Old 11-10-2015, 04:51 PM   #4
ChuckH
Member
ChuckH began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2012
Location: NW Indiana
Device: iPad
Quote:
Originally Posted by eschwartz View Post
Mmm, possibly, now here's a thought -- the iframe itself is the problem?

I would really advise you not to use iframes.
It'll probably work -- in apps that simply embed webkit.
But elsewhere (as in most places)?

Why, exactly, do you say an iframe looks nicer? What about it is "nicer"?

Also, that will only work when a device is connected to the internet, which might make people slightly peeved. You know, the general idea of making content only available through live streaming?
I was just considering that an iframe would take a small footprint on a page, whereas a list keeps getting longer if more books are added to it. It is just something I was considering, my main point was how to make the URL well-formed. It seems to me that I can't escape anything, since the server expects it to appear as-is. These book list widgets are supposed to work with epubs, as far as I know,; it was something I was trying to do as a challenge rather than a requirement.

Last edited by ChuckH; 11-10-2015 at 04:55 PM.
ChuckH is offline   Reply With Quote
Old 11-10-2015, 04:53 PM   #5
ChuckH
Member
ChuckH began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2012
Location: NW Indiana
Device: iPad
Quote:
Originally Posted by DaleDe View Post
Are the lines wrapping themselves or are you doing it? Let them wrap on their own. While it won't matter for this error you should also make p laylist into playlist.

Dale
Yes, the code above is a cut and paste job so the lines are breaking from the text editor.
ChuckH is offline   Reply With Quote
Advert
Old 11-17-2015, 02:35 AM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
In proper HTML, you can't use unencoded ampersands even in a URL. You need to encode them as &amp;. See also my rant about unencoded ampersands in Apple's (and everybody else's) affiliate program link generators and click "show details" for further explanation.

As soon as you make that change everywhere, it should pass validation.

With that said, iBooks may still not load the external content. YMMV.

Last edited by dgatwood; 11-17-2015 at 02:48 AM.
dgatwood is offline   Reply With Quote
Old 11-19-2015, 12:01 PM   #7
ChuckH
Member
ChuckH began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2012
Location: NW Indiana
Device: iPad
Thanks, I'll check it out.
ChuckH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub3 iframe Zeynep ePub 2 07-15-2013 05:08 AM
epubcheck doesn't like <div>s marciarampart ePub 8 11-27-2011 03:13 AM
epubcheck, any software can pass its validiation check? droople ePub 96 08-16-2011 01:38 PM
Sigil conversion doesn't pass Flight Crew mrmikel Sigil 1 11-07-2010 05:53 AM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 09:53 PM


All times are GMT -4. The time now is 07:59 AM.


MobileRead.com is a privately owned, operated and funded community.