Hi,

I have been puzzling over how to typeset footnotes in a HTML document, most elements have been relatively easy to typeset but I'm stumped with footnotes.  I have been studying the the xml manual in particular Chapter  7.4 Cross Referencing, but I'm still struggling to get xmlsetups which come anywhere near working. Any hints  to a solution would be greatly appreciated.

Best Wishes

Keith McKay

%%%%%%%%%%%%%%%%%%%

Here is a snippet of the HTML document with footnotes

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
<head>
  <title></title>
</head>
<body>
  <p class="import-Normal">‘What is a weed? A plant whose virtues have not been discovered,’ wrote Ralph Waldo Emerson<span class="footnote"><span class="footnote-indirect" data-fnref="53-1"></span></span>. Those delicate crucifers with their manifold faces of four pink or lilac petals striated with veins of deeper lavender are the perfect introduction to flowers for children. So delicate and yet hardy.</p>   <p class="import-Normal">I spend some of April abroad, travelling by road from an unseasonably snowy Austria (‘dieses Wetter ist verrückt!’<span class="footnote"><span class="footnote-indirect" data-fnref="53-2"></span></span> as an elderly lady exclaimed to me) to northern France, and when I come home, it’s to a landscape responding to substantially increased light levels and temperatures.</p>   <p class="import-Normal">This was the early sixties. Like many thousands, we were rehoused from Maryhill in the heart of urban Glasgow to this peripheral housing scheme which completely changed the character of what had been a village. Within a decade those glasshouses were abandoned, glass broken in the frames, and a row of shops that included a chippy and a betting shop soon replaced them, betting ‘off’ licensed race-tracks having become legal in 1961.<span class="footnote"><span class="footnote-indirect" data-fnref="75-1"></span></span></p>
  <div class="footnotes">
    <hr/>
    <div id='53-1'>
      Emerson, R.W. (1878) <em>Fortune of the Republic</em>, p.3 quoted in <em>Oxford Dictionary of Quotations</em>, Rev Fourth Edition (1996).
    </div>
    <div id='53-2'>
      ‘Crazy weather!’
    </div>
    <div id='75-1'>
      <a class="rId10" href="http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html"; data-url="http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html";><span class="import-Hyperlink">http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html</span></a> [accessed 11 Dec 2017]
    </div>
  </div>
</body>
</html>

%%%%%%%%%%%%%%%%%%

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to