diff --git a/resources/xproc/repertorium/oais-tei.xsl b/resources/xproc/repertorium/oais-tei.xsl
index 5d20b3a799176b6da589dda102f81d26b737af17..1f38b7614cffd80003befe2189755e9b1b4f1e07 100644
--- a/resources/xproc/repertorium/oais-tei.xsl
+++ b/resources/xproc/repertorium/oais-tei.xsl
@@ -18,10 +18,11 @@
     </xsl:copy>
   </xsl:template>
 
-  <xsl:template match="@ref[starts-with(., '../../register.xml')]">
+  <xsl:template match="@ref[parent::author]">
     <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:template>
 
   <xsl:template match="ref[ends-with(@target, '.xml')]">