Skip to content

Commit

Permalink
place footnotes in situ
Browse files Browse the repository at this point in the history
Cf. #29
  • Loading branch information
dariok committed Apr 16, 2019
1 parent 864e368 commit 3e4fc12
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@
</field>
</xsl:template>

<xsl:template match="w:r[w:footnoteReference]">
<xsl:variable name="id" select="w:footnoteReference/@w:id"/>
<xsl:variable name="note" select="//w:footnote[@w:id = $id]"/>
<note type="footnote" xml:id="n{$id}">
<xsl:apply-templates select="$note//w:pStyle" />
<xsl:apply-templates select="$note//w:r | $note//w:hyperlink" />
</note>
</xsl:template>
<xsl:template match="w:r[w:footnoteRef]" />

<xsl:template match="w:r">
<T />
</xsl:template>
Expand Down

0 comments on commit 3e4fc12

Please sign in to comment.