Skip to content

Commit

Permalink
Merge pull request #688 from rvdb/jTEI-fix-name
Browse files Browse the repository at this point in the history
skip //name, since it is not supported in the OpenEdition schema
  • Loading branch information
HelenaSabel committed Jul 22, 2024
2 parents c30704a + eb536a1 commit 0aee6b3
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions profiles/jtei/openedition/to.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
</hi>
</xsl:template>

<xsl:template match="tei:orgName">
<xsl:template match="tei:orgName[not(@rendition)]" priority="0">
<xsl:apply-templates/>
</xsl:template>

Expand All @@ -810,6 +810,14 @@
</hi>
</xsl:template>

<xsl:template match="*[@rendition]" priority="-.5">
<hi>
<xsl:apply-templates select="@*"/>
<xsl:call-template name="get.rendition"/>
<xsl:apply-templates/>
</hi>
</xsl:template>

<!-- only highlight //title[@level = ('m', 'j')] -->
<xsl:template match="tei:title[@level = ('m', 'j')]">
<hi>
Expand Down Expand Up @@ -841,7 +849,7 @@
</xsl:template>

<!-- skip all other titles in the text -->
<xsl:template match="tei:text//tei:title[not(@level = ('a','u', 'm', 'j'))]">
<xsl:template match="tei:text//tei:title[not(@level = ('a','u', 'm', 'j'))][not(@rendition)]" priority="0">
<xsl:apply-templates/>
</xsl:template>

Expand All @@ -850,7 +858,7 @@
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="tei:idno[not(ancestor::tei:teiHeader)][not(parent::tei:bibl)]">
<xsl:template match="tei:idno[not(ancestor::tei:teiHeader)][not(parent::tei:bibl)][not(@rendition)]">
<xsl:apply-templates/>
</xsl:template>

Expand Down Expand Up @@ -978,11 +986,15 @@
</xsl:copy>
</xsl:template>

<xsl:template match="tei:text//tei:date" priority="0">
<xsl:template match="tei:text//tei:date[not(@rendition)]" priority="0">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="tei:text//tei:email[not(@rendition)]" priority="0">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="tei:text//tei:email">
<xsl:template match="tei:name[not(@rendition)]" priority="0">
<xsl:apply-templates/>
</xsl:template>

Expand Down

0 comments on commit 0aee6b3

Please sign in to comment.