01-24-2013, 02:55 AM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Jan 2013
Device: bookeen Odyssey HD/android tablets
|
some problems
Hi everyone, I'm new here. I'm just learning the basics about Css programming. It's all very interesting but I'm affraid I'm a bit stuck.
Some help would be appreciated... First I have the "element a is not allowed for content model...." <blockquote class="calibre5"> <a class="calibre6" href="../Text/MSF1_split_002.html#filepos496759">chapter one</a> </blockquote> when I replace the "a" with p,h1,h2,div,...., I get following error message: attribute href is not declared for element 'p' (or one of the other options) Another one: "no character data is allowed by content model" <em class="calibre14">Well I don’t want a triumph in the car</em><br class="calibre1" /> I don't get this one either, because ithere are identical lines above and below this one, with only a different text content, but they get no error message. thanks! |
01-24-2013, 04:02 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The <a> must be in a paragraph if I recall correctly. The correct usage would be according to XHTML rules:
Code:
<blockquote class="calibre5"> <p> <a class="calibre6" href="../Text/MSF1_split_002.html#filepos496759">chapter one</a> </p> </blockquote> |
01-24-2013, 04:08 AM | #3 |
Member
Posts: 11
Karma: 10
Join Date: Jan 2013
Device: bookeen Odyssey HD/android tablets
|
And another one while we are at it... It's about an NCX file.
</navLabel> <content src="Text/chapter052.html"/></navPoint> </navPoint> </navMap> </ncx> I keep getting the message: expected end of tag: "navlabel", but if I add </navlabel> anywhere, I just keep on getting "expected end of tag" error messages. |
01-24-2013, 04:31 AM | #4 | |
Member
Posts: 11
Karma: 10
Join Date: Jan 2013
Device: bookeen Odyssey HD/android tablets
|
Quote:
Thanks a lot for your help though!!! It's maybe a stupid question, but the file has a lot of the "element a is not allowed"-errors. Is it possible to auto-change this somewhere for the lot, or does one have to correct them one by one? |
|
01-24-2013, 04:55 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Don't mess with the NCX file unless you know what you are doing. Regenerate it by pushing the 'create TOC by headers' (or something like that). It is the button in the right bottom.
|
01-24-2013, 05:41 AM | #6 |
Member
Posts: 11
Karma: 10
Join Date: Jan 2013
Device: bookeen Odyssey HD/android tablets
|
I dont have that screen on the right, but I assume it's the same as: "tools"> "table of contents">"generate table of contents" (ctr +t)
|
01-24-2013, 06:36 AM | #7 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yup. On the right the TOC should be visible. At least it is by default.
|
01-24-2013, 07:48 AM | #8 | |
A Hairy Wizard
Posts: 3,069
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I have found a good resource is the W3School's reference site. It gives a really good explanation of HTML and CSS with all the different options as well as the ability to "try it yourself" to see what happens. They also have a pretty good tutorial for giving a basic understanding of all the jargon. I reference it all the time! You can find the tutorials here:http://www.w3schools.com/html/default.asp the HTML references here: http://www.w3schools.com/tags/att_link_href.asp And the CSS references here: http://www.w3schools.com/cssref/default.asp I hope that helps! Cheers! |
|
01-24-2013, 09:49 AM | #9 | |
Guru
Posts: 688
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Possibly the real error occurred way above the snippet you qouted. Parsers generally don't flag an error's location until they reach the point where they realize there must have been an error (in this case, it reached the end of the file, and realized it had an unmatched </navLabel> tag, or something.) I realize the above paragraph is clear as mud, but my point is that often the error is not where the parser says it is. Let Sigil generate the toc.ncx, and all should be well. |
|
01-24-2013, 10:57 AM | #10 |
Member
Posts: 11
Karma: 10
Join Date: Jan 2013
Device: bookeen Odyssey HD/android tablets
|
I'm doing NOTHING in the TOC anymore without trying the magic button first!
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Battery Problems? Charger Problems? Frozen KF? Try this... | jsh1120 | Kindle Fire | 27 | 06-11-2013 08:33 PM |
Touch Problems with fw 2.3.1 | Noite | Kobo Reader | 10 | 12-20-2012 11:49 AM |
[Android App] Nexus 7 Problems? Mac Problems? | thetay24 | Devices | 4 | 08-31-2012 04:48 PM |
Some problems | Wherever | Calibre | 4 | 06-08-2011 05:25 PM |
a few problems | kceb10 | Sony Reader | 8 | 03-09-2010 07:09 AM |