I think it'd be helpful if there were a _FILENAME_ placeholder similar to _TARGET_ and _TEXT_ since the_TEXT_ parameter (1, 2, 3, …) might be used in more that one file
I believe that having the option to create the id like this would make it much easier when the user adds the 'back to' link in the end notes
So in chap_01.xhtml when inserting a hyperlink using the template
Code:
<p>text text text more text<a id="chap_01_noteref_.1." href="endnotes.xhtml#endnote_chap_01_.1.">[1]</a> some more text</p>
<p>text text text more text<a id="chap_01_noteref_.2." href="endnotes.xhtml#endnote_chap_01_.2.">[2]</a> some more text</p>
<p>text text text more text<a id="chap_01_noteref_.3." href="endnotes.xhtml#endnote_chap_01_.3.">[3]</a> some more text</p>
and in chap_02.xhtml
Code:
<p>text text text more text<a id="chap_02_noteref_.1." href="endnotes.xhtml#endnote_chap_02_.1.">[1]</a> some more text</p>
<p>text text text more text<a id="chap_02_noteref_.2." href="endnotes.xhtml#endnote_chap_02_.2.">[2]</a> some more text</p>
<p>text text text more text<a id="chap_02_noteref_.3." href="endnotes.xhtml#endnote_chap_02_.3.">[3]</a> some more text</p>
Seems like it would make it easier when generating the 'back to' in Endnotes
Code:
<p><a id="endnote_chap_01_.1." href="chap_01.xhtml#chap_01_noteref_.1.">[1]</a> - Footnote One in Chapter 1</p>
<p><a id="endnote_chap_01_.2." href="chap_01.xhtml#chap_01_noteref_.2.">[2]</a> - Footnote Two in Chapter 1</p>
<p><a id="endnote_chap_01_.3." href="chap_01.xhtml#chap_01_noteref_.3.">[3]</a> - Footnote Three in Chapter 1</p>
<p><a id="endnote_chap_02_.1." href="chap_02.xhtml#chap_02_noteref_.1.">[1]</a> - Footnote One in Chapter 2</p>
<p><a id="endnote_chap_02_.2." href="chap_02.xhtml#chap_02_noteref_.2.">[2]</a> - Footnote Two in Chapter 2</p>
<p><a id="endnote_chap_02_.3." href="chap_02.xhtml#chap_02_noteref_.3.">[3]</a> - Footnote Three in Chapter 2</p>