Skip to content

Commit

Permalink
Merge pull request dariok#14 from peterstadler/patch-1
Browse files Browse the repository at this point in the history
add support for sic/corr
  • Loading branch information
dariok committed Apr 21, 2020
2 parents b7f5923 + 13f57ec commit 44f8228
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion page2tei-0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,16 @@
</abbr>
</choice>
</xsl:when>
<xsl:when test="@type = 'sic'">
<choice>
<corr><xsl:value-of select="replace(map:get($custom, 'correction'), '\\u0020', ' ')"/></corr>
<sic>
<xsl:call-template name="elem">
<xsl:with-param name="elem" select="$elem" />
</xsl:call-template>
</sic>
</choice>
</xsl:when>
<xsl:when test="@type = 'date'">
<date>
<!--<xsl:variable name="year" select="if(map:keys($custom) = 'year') then format-number(xs:integer(map:get($custom, 'year')), '0000') else '00'"/>
Expand Down Expand Up @@ -694,4 +704,4 @@
<xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 44f8228

Please sign in to comment.