Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2013, 03:36 AM   #1
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
No declaration found for element 'list-holder'

Hi everyone.

I open my epub that I have generated from InDesign in Sigil and I use the validation button to check it. I get a report that there are no problems. This checks with another program I use on my Mac named ePubChecker.

Now, I run a search and replace using Regex and I create an element named "list-holder" which I am using as a wrapper to help me style some list elements.

When I run the validator again, I get three errors:
1. Attribute 'class' is not declared for element 'list-holder'
2. No declaration found for element 'list-holder'
3. Element 'list-holder' is not allowed for content model (and then a series of tags that are valid)

What gives? Are we not able to use any tag we want in the code? How can I define my element 'list-holder' so that it does not cause these errors?

Thanks in advance.
kakkalla is offline   Reply With Quote
Old 05-18-2013, 04:51 AM   #2
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
You'll need to show us your code, both the stylesheet where you define the element and some content where you use it.
exaltedwombat is offline   Reply With Quote
Advert
Old 05-18-2013, 05:03 AM   #3
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
This is a typical entry exported from InDesign:

Code:
<p class="list1-box">
<span class="list1-box">C.	</span>
The binge eating and inappropriate compensatory 
behaviors both occur, on average, at least twice a week for 3 months.</p>
Using Regex, I convert all such entries into this:

Code:
<list-holder class="list1-box">
<list1-box-text><span class="list1-box">C.	</span>
</list1-box-text>
<pp class="list1-box">The binge eating and inappropriate compensatory behaviors both occur, on average, at least twice a week for 3 months.</pp></list-holder>
Here is the CSS for these elements:

Code:
list-holder.list1-ref-sa, list-holder.list1-ref, list-holder.list1-ref-sb{
	display:block;
	width:auto;
	height:auto;
	margin-top:0;
	margin-bottom:3px;
	background:none;
}
list-holder.list1-ref-sa{
	margin-top:6.5pt;
}
list-holder.list1-ref-sb{
	margin-bottom:6.5pt;
}
list1-ref-text{
	-epub-hyphens:none;
	-webkit-hyphens:none;
	font-size:0.833em;
	line-height:1.3;
	float:left;
	width:1em;
	background:none;
}
pp.list1-ref-sa, pp.list1-ref, pp.list1-ref-sb {
	-epub-hyphens:none;
	-webkit-hyphens:none;
	font-family:"Palatino-Roman", serif;
	font-size:0.833em;
	line-height:1.3;
	display:block;
	margin-left:1.75em;
	text-align:left;
	margin-right:3pt;
	background:none;
}
The strange thing is that when I load the epub onto my iPad via Book Proofer, the epub works flawlessly. I don't understand what's going on.

I look forward to your reply, and thanks for taking the time to help me.
kakkalla is offline   Reply With Quote
Old 05-18-2013, 05:22 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,560
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The simple answer is you can't create your own tags. What made you think you could?
DiapDealer is online now   Reply With Quote
Old 05-18-2013, 05:24 AM   #5
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
OK, thanks for the reply.

I thought I could because I normally work in XML.

Thanks again.
kakkalla is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: no declaration found for element 'u' Ripplinger Sigil 6 03-09-2013 08:20 PM
Vox Holder wilbrich Kobo Tablets 0 12-02-2011 11:52 AM
Proper Unicode Declaration Fabe Sigil 9 10-13-2010 01:42 PM
Namespace declaration ChrisI Sigil 1 08-22-2010 06:02 AM
Declaration of Independence bill the smith News 140 10-02-2009 05:01 PM


All times are GMT -4. The time now is 02:34 PM.


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