initial commit

This commit is contained in:
Oleg Belyaev 2025-03-21 14:14:03 +03:00
parent cee3efab31
commit 71219733bd
31 changed files with 9242 additions and 0 deletions

30
xsl/delete-lang.xsl Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:abv="http://ossetic-studies.org/ns/abaevdict"
exclude-result-prefixes="xs tei"
version="2.0">
<xsl:param name="lang"/>
<!-- XSLT Template to copy anything -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="tei:etym|abv:tr|tei:def|tei:note|tei:bibl|tei:gram">
<xsl:choose>
<!-- <xsl:when test="lang($lang)"></xsl:when>-->
<xsl:when test="@xml:lang = $lang"></xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="tei:biblScope[@xml:lang=$lang]"></xsl:template>
</xsl:stylesheet>