Hello everyone. I am trying to use Sigil to insert endnotes into my epub document. It is very difficult, but I want to figure it out!
As a basis, I'm using
the info I found at this link. If your epub file is all in one html file, then what you see there really works. But once you start breaking it up into chapters (ie, dividing into various html files) then it becomes really complicated. Can anyone lend a hand?
Right now, my specific problem is that I was trying to edit the code and I made a mistake. Now Sigil tells me that "the page contains the following errors: Expected '=', but got ':' " and it doesn't let me back into the code view to change it!

How can I correct my mistake?
When adding endnotes, I think it is important - first thing - to divide the html into chapters BEFORE starting to define endnotes. That way, the chapter number to which each note belongs is determined in advance.
Next, I think it is important to mention that the note anchor numbers do not necessarily correspond to the numbers assigned in the book view. For example, the text might have notes starting at 1 then running to 21. But each one is in a different chapter (for example: 1,2,3 in chapter 1; 4, 5, 6 in chapter 2; 7, 8, 9 in chapter 3...; all endnotes in chapter 8). 2-1 is the first note in section 2 (Section0002.xhtml), but this is displayed as note 4. So, for example, is this right?
CHAPTER 2
<p>This is the text as it would appear in code view. <a href="#fn-2-1" id="fnt-2-1">[4]</a> </p>
CHAPTER 8
<p><a href="#fnt-2-1" id="fn-2-1">1</a> This is what it says in the note. <a href="../Text/Section0002.xhtml#fn-2-1">[return]</a>)</p>
This, at least, is my theory... I have yet to make it work properly, because I keep making mistakes and Sigil won't let me correct them (see above)!
I would really appreciate any suggestions or advice. Thanks very much for your time.