Skip to content

Commit

Permalink
add revisionDesc status generated to header
Browse files Browse the repository at this point in the history
  • Loading branch information
rausch-supola committed Nov 15, 2024
1 parent d289bfe commit 785c6b2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 082_scripts_xsl/mergeHeaderAndTranscription.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@
and not just overwrite it with the corpus header -->
<xsl:template match="tei:teiHeader">
<xsl:param name="teiHeaderFromCorpus" tunnel="yes"/>
<xsl:sequence select="$teiHeaderFromCorpus"/>
<xsl:element name="{name($teiHeaderFromCorpus)}">
<xsl:copy-of select="$teiHeaderFromCorpus/@*"/>
<xsl:for-each select="$teiHeaderFromCorpus/*">
<xsl:sequence select="."/>
<xsl:if test="name() = 'profileDesc'">
<revisionDesc status="generated"/>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:template>

<xsl:template match="node() except text()| @*">
Expand Down

0 comments on commit 785c6b2

Please sign in to comment.