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-11-2013, 07:36 PM   #1
Lola25
Member
Lola25 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2013
Device: none
Validation Error:"The a element must not appear inside a elements"

I received the following validation errors:

ERROR: e_7_book.epub/OEBPS/e_7_ch1-1.xhtml(16,846): report: The a element must not appear inside a elements.

ERROR: e_7_book.epub/OEBPS/e_7_ch3-2.xhtml(38,736): report: The a element must not appear inside a elements.

ERROR: e_7_book.epub/OEBPS/e_7_ch3-2.xhtml(46,338): report: The a element must not appear inside a elements.

ERROR: e_7_book.epub/OEBPS/e_7_ch3-2.xhtml(78,288): report: The a element must not appear inside a elements.

ERROR: e_7_book.epub/OEBPS/e_7_ch3-4.xhtml(16,964): report: The a element must not appear inside a elements.

1. How can I find which lines the errors occurred?
2. What does the error mean?

Thank you in advance

Last edited by Lola25; 11-11-2013 at 07:46 PM.
Lola25 is offline   Reply With Quote
Old 11-11-2013, 07:46 PM   #2
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
Can you open the individual files with a tool you are familiar with? Sigil or perhaps tweak_epub or even 7zip. Open a file by the name e_7_ch1-1.xhtml and search of <a and then look around. Is there a second <a before the closing </a>. If not search again. Find one that matches this description and then select the entire line and post it here. Someone will be able to tell you what is wrong. Once you fix the first one you should know how to fix all the others.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 11-11-2013, 09:46 PM   #3
Lola25
Member
Lola25 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2013
Device: none
Here is one of the lines containing the error:

<p class="mainParagraph"><a id="Anchor-19"></a>Each lunar month the moon undergoes a cycle. When it is full, <a id="idIndexMarker-952"></a><a id="idIndexMarker-946"></a>Yin is at its peak. During the New Moon, when it is barely visible if at all, <a id="idIndexMarker-953"></a><a id="idIndexMarker-947"></a>Yin is at its weakest. Like the moon, women’s hormones cycle each month. Adapting one’s lifestyle according to the <a id="idIndexMarker-671"></a>menstrual cycle is one of the most important measures a woman can take to stay young, normalize weight, and improve her health. (The menstrual cycle is covered in Chapter 2). Additionally, women should perform moon meditation to increase the <a id="idIndexMarker-955"></a><a id="idIndexMarker-954"></a>Yin in their bodies (see <a href="e_7_ch1-2.xhtml#Anchor-2">“<a id="idIndexMarker-616"></a>Exercise 1.13. Moon Meditation (Figure 1.5)”</a>). </p>
Lola25 is offline   Reply With Quote
Old 11-11-2013, 09:58 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Lola25 View Post
Here is one of the lines containing the error:

<p class="mainParagraph"><a id="Anchor-19"></a>Each lunar month the moon undergoes a cycle. When it is full, <a id="idIndexMarker-952"></a><a id="idIndexMarker-946"></a>Yin is at its peak. During the New Moon, when it is barely visible if at all, <a id="idIndexMarker-953"></a><a id="idIndexMarker-947"></a>Yin is at its weakest. Like the moon, women’s hormones cycle each month. Adapting one’s lifestyle according to the <a id="idIndexMarker-671"></a>menstrual cycle is one of the most important measures a woman can take to stay young, normalize weight, and improve her health. (The menstrual cycle is covered in Chapter 2). Additionally, women should perform moon meditation to increase the <a id="idIndexMarker-955"></a><a id="idIndexMarker-954"></a>Yin in their bodies (see <a href="e_7_ch1-2.xhtml#Anchor-2">“<a id="idIndexMarker-616"></a>Exercise 1.13. Moon Meditation (Figure 1.5)”</a>). </p>
You have nested a's
theducks is offline   Reply With Quote
Old 11-11-2013, 09:59 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Look at the end...

<a href="e_7_ch1-2.xhtml#Anchor-2">

<a id="idIndexMarker-616"></a>
Exercise 1.13. Moon Meditation (Figure 1.5)”
</a>
PeterT is offline   Reply With Quote
Advert
Old 11-11-2013, 10:23 PM   #6
Lola25
Member
Lola25 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2013
Device: none
Sorry for my ignorance, but how do I fix it while maintaining the link?
Lola25 is offline   Reply With Quote
Old 11-12-2013, 03:45 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Although not exactly the same:

<a id="idIndexMarker-616"></a><a href="e_7_ch1-2.xhtml#Anchor-2">“Exercise 1.13. Moon Meditation (Figure 1.5)”</a>

It is an empty anchor anyway, so no harm in moving it a little.
Toxaris is offline   Reply With Quote
Old 11-12-2013, 03:45 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
<a id="idIndexMarker-616"></a> is a dummy element, the "id" that works as anchor can be anywhere else. It is indeed more semantic to use it as an empty anchor point than using e.g. a <span>, but as you see, it's not always possible to use it.

I would write:

Code:
see “<a href="e_7_ch1-2.xhtml#Anchor-2"><span id="idIndexMarker-616">Exercise 1.13</span>. Moon Meditation (Figure 1.5)</a>”
(quotes outside the link, and index-span containing the indexed term, which is presumably "Exercise 1.13")
Jellby is online now   Reply With Quote
Old 11-12-2013, 07:53 AM   #9
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
If this is not just a section out of paragraph with something omitted, why so many links into to one paragraph, including two in one sentence? It is not clear why you even need one anchor per sentence. It seems like an automated program indexed just about everything.

Sigil is useful for this because it shows a list of all the anchor points in reports. It would allow you to delete overlapping ones. In this case, the suggested changes move the return link (from what one assumes is some sort of footnote) to just before the jump link, rather than trying to wrap up the link that jumps to the footnote. As Toxaris said, it is not the same, but a real person should be just fine ending up just before it, especially since you can't wrap one up in the other anyway.
mrmikel is offline   Reply With Quote
Old 11-12-2013, 07:28 PM   #10
Lola25
Member
Lola25 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2013
Device: none
Thank you, the fixes worked, however when I ran the epubcheck there were over 20 new errors. I am using windows and dreamweaver as my editor. I rename my epub to a zip, extract all, then open the files in dreamweaver. When I'm finished I use ePubPack to convert the zip back into an epub. The errors must have occurred during the reconversion process. Is there a better method?
Lola25 is offline   Reply With Quote
Old 11-12-2013, 08:34 PM   #11
Lola25
Member
Lola25 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2013
Device: none
I used tweak epub (http://www.atlantiswordprocessor.com...tweak_epub.htm) to open my epub files in dreamweaver and it worked just fine. Thank you all so much!
Lola25 is offline   Reply With Quote
Reply

Tags
a element, epub 3, validation error


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub validation error help "attribute border is not declared for element img bmacklin ePub 12 11-06-2015 11:00 AM
Help with validation error(s): "reacheable" not in <manifest> + others bubism Sigil 17 07-09-2013 02:39 AM
Error message "No SD card inside" James Bryant Ectaco jetBook 10 04-01-2012 12:25 PM
ePub validation error: 'element "span" not allowed here' nannygoats ePub 5 11-30-2011 08:47 AM
"Unfinished Element" Error spatel6549 Sigil 3 03-04-2011 04:31 PM


All times are GMT -4. The time now is 06:16 AM.


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