I'have experienced a weird problem with html footnote. I'm using a Mac with Oxygen 14.2 but whenever I try to produce an html file from an xml snippet like this one, (using the standard HTML docbook 5.0 transformation)

  <para>Il 27 gennaio 1961, al Teatro dell’Opera a Roma, venne proiettato in anteprima un
                film di produzione privata .... <footnote>
            <para>Lanocita A. (Lan) 1961, Rassegna
                    cinematografica, «Corriere della Sera», 11 febbraio, 6.</para>
         </footnote>, commentò il
                «Corriere della Sera». L’ufficialità della pellicola è confermata dai dubbi
                insinuati dalla stampa comunista sul finanziamento governativo della pellicola e
                dalle recensioni elogiative apparse sulla stampa cattolica [Merolla 2004, 131].
              <footnote>
            <para>Centro cattolico cinematografico
                    1961, Viva l’Italia, «Segnalazioni cinematografiche», 28 (XLIX), gennaio.</para>
         </footnote>.</para>


I obtain a footnote link that doesn't work properly

<a href="#ftn.d5e37" class="footnote"><sup class="footnote"><a name="d5e37"></a>[1]</sup></a>

this link refers to 

 <div id="ftn.d5e37" class="footnote"><a href="#d5e37" class="para"><sup class="para">[1] </sup></a> that works.

I think it is strange that this little bug (the anchor <a name="d5e37"></a> has to be moved out of the nested <a>) is still there. May be I am wrong. What can I do to solve this problem? I have to write a customisation stylesheet or there is something easier to do?

Regards

Claudio