From 75feaaab1732e5f33b53a532db5cd1389dd519e8 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Wed, 28 Feb 2018 13:17:20 +0100 Subject: [PATCH] Normalisiere @ref auch in <rs> --- resources/xproc/repertorium/oais-tei.xsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/xproc/repertorium/oais-tei.xsl b/resources/xproc/repertorium/oais-tei.xsl index 1f38b761..644d6e27 100644 --- a/resources/xproc/repertorium/oais-tei.xsl +++ b/resources/xproc/repertorium/oais-tei.xsl @@ -18,11 +18,13 @@ </xsl:copy> </xsl:template> - <xsl:template match="@ref[parent::author]"> + <xsl:template match="@ref[starts-with(., '../../register.xml')]"> <xsl:if test="document(.)/idno[@type = 'URI']"> <xsl:attribute name="ref" select="document(.)/idno[@type = 'URI']"/> </xsl:if> - <xsl:attribute name="n" select="document(.)/persName[@type = 'display']"/> + <xsl:if test="parent::author"> + <xsl:attribute name="n" select="document(.)/persName[@type = 'display']"/> + </xsl:if> </xsl:template> <xsl:template match="ref[ends-with(@target, '.xml')]"> -- GitLab