Skip to content

Commit

Permalink
tweaking comparison script again to cater for tables with only 2 cell…
Browse files Browse the repository at this point in the history
…s in a row
dasch124 committed Jan 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d4bfa79 commit cf0224c
Showing 2 changed files with 328 additions and 328 deletions.
6 changes: 3 additions & 3 deletions 082_scripts_xsl/compare_elan_to_docx.xsl
Original file line number Diff line number Diff line change
@@ -130,11 +130,11 @@
</xsl:if>
</xsl:template>

<xsl:template match="tei:row[normalize-space(tei:cell[2])='']"/>
<xsl:template match="tei:row[count(tei:cell) eq 3][normalize-space(tei:cell[2])='']"/>

<xsl:template match="tei:row[normalize-space(tei:cell[2])!='']">
<xsl:template match="tei:row[count(tei:cell) eq 3][normalize-space(tei:cell[2])!=''] | tei:row[count(tei:cell) eq 2][normalize-space(tei:cell[1])!='']">
<xsl:variable name="utterance-no" select="count(preceding-sibling::tei:row)"/>
<xsl:apply-templates select="tei:cell[2]">
<xsl:apply-templates select="if (count(tei:cell) eq 3) then tei:cell[2] else tei:cell[1]">
<xsl:with-param name="utterance-no" select="$utterance-no" tunnel="yes"/>
</xsl:apply-templates>
</xsl:template>
650 changes: 325 additions & 325 deletions 850_docs/LATEST-Urfa-texts-shawi_22-12-2023 bis Urfa-150-TEI-P5-comp.html

Large diffs are not rendered by default.

0 comments on commit cf0224c

Please sign in to comment.