Skip to content

Commit

Permalink
fix(thornton): the merged paragraphs were copied as is without their …
Browse files Browse the repository at this point in the history
…children being processed. So glossed terms were not converted to pop-overs with necessary lookups.
  • Loading branch information
geoffroy-noel-ddh committed May 19, 2024
1 parent d411666 commit 45849f8
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions responses/at-tei-to-tei.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@


<xsl:template match="@*|node()">
<xsl:call-template name="copy-element" />
</xsl:template>

<xsl:template name="copy-element">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
Expand All @@ -30,11 +34,15 @@

<xsl:template match="tei:p[contains(@rend, 'append-following-sibling')]">
<div type="merged-modern-paras">
<xsl:copy-of select="." />
<xsl:copy-of select="./following-sibling::tei:p[1]" />
<xsl:call-template name="copy-element" />
<xsl:apply-templates select="./following-sibling::tei:p[1]" mode="copy-element" />
</div>
</xsl:template>

<xsl:template match="tei:p[contains(@rend, 'append-following-sibling')]/following-sibling::tei:p[1]" mode="copy-element">
<xsl:call-template name="copy-element" />
</xsl:template>

<xsl:template match="tei:p[contains(@rend, 'append-following-sibling')]/following-sibling::tei:p[1]">
<!-- Already copied above -->
</xsl:template>
Expand Down Expand Up @@ -97,18 +105,16 @@

<xsl:template match="tei:term[@ref]">
<!--
<term ref="gloss:p019t01" xml:id="p019t01">quality</term>
<term ref="gloss:p100t03" xml:id="p100t04"><w norm="temporals">Temporalls</w></term>
===
glossary.xml:
<list xml:id="book-of-remembrances" type="gloss">
<item xml:id="p019t01">
<gloss> Quality: ‘rank in society’, <hi rend="italic">OEDO. </hi>
</gloss>
<note type="tagged_text">quality</note>
</item>
<item xml:id="p100t03">
<gloss> Temporal: ‘secular as opposed to sacred,’ <hi rend="italic">OEDO.</hi>
</gloss>
</item>
-->
<xsl:copy>
<xsl:apply-templates select="@*"/>
Expand Down

0 comments on commit 45849f8

Please sign in to comment.