Skip to content

Commit

Permalink
Fix bug with state/label/orgName/@xml:lang=en.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomazErjavec committed Aug 22, 2023
1 parent d81ea99 commit 1934bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/ches-tsv2tei.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
<xsl:sort select="tei:cell[@type = 'year']"/>
<xsl:variable name="from" select="tei:cell[@type = 'year']"/>
<xsl:variable name="to" select="$ches-interval/tei:date[@from = $from]/@to"/>
<orgName full="abb" from="{$from}" to="{$to}" xml:lang="en">
<orgName full="abb" from="{$from}" to="{$to}">
<xsl:value-of select="tei:cell[@type = 'ches_id']"/>
</orgName>
</xsl:for-each>
Expand All @@ -214,7 +214,7 @@
<xsl:for-each-group select="$names/tei:orgName" group-by=".">
<xsl:variable name="from" select="current-group()[1]/self::tei:orgName/@from"/>
<xsl:variable name="to" select="current-group()[last()]/self::tei:orgName/@to"/>
<orgName full="abb" from="{$from}" to="{$to}">
<orgName full="abb" xml:lang="en" from="{$from}" to="{$to}">
<xsl:value-of select="current-grouping-key()"/>
</orgName>
</xsl:for-each-group>
Expand Down

0 comments on commit 1934bcf

Please sign in to comment.