|
|
#1 |
|
Zealot
![]() ![]() 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. |
|
|
|
|
|
#2 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Zealot
![]() ![]() 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> 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> 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;
}
I look forward to your reply, and thanks for taking the time to help me. |
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,937
Karma: 207302948
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?
|
|
|
|
|
|
#5 |
|
Zealot
![]() ![]() 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. |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error: no declaration found for element 'u' | Ripplinger | Sigil | 6 | 03-09-2013 09:20 PM |
| Vox Holder | wilbrich | Kobo Tablets | 0 | 12-02-2011 12:52 PM |
| Proper Unicode Declaration | Fabe | Sigil | 9 | 10-13-2010 02:42 PM |
| Namespace declaration | ChrisI | Sigil | 1 | 08-22-2010 07:02 AM |
| Declaration of Independence | bill the smith | News | 140 | 10-02-2009 06:01 PM |