\def\text:footnote{text:note}
\:CheckOption{endnotes}\if:Option
\def\text:note:class{text:note-class="endnote" }
\else
\def\text:note:class{text:note-class="footnote" }
\Log:Note{for end notes instead of footnotes,
use the command line option ‘endnotes’}
\fi
-_-_-